I want to set player's experience level to variable.

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Hexa

Member
Jan 21, 2018
11
0
0
25
I created a variable. Like when I do /set 1000

It saves 1000 as {game.number}

I want to give {game.number} as the experience level of player when he joins.

I used %% but still the same.

It says

" the level of the player can't be set to "%{game.number}%" because the latter is not a number"
 
j1q5wx
 
You might use a code like this:
code_language.skript:
command /thiscommandisjustfortest:
    trigger:
        set {game.number} to the level of the player
 
code_language.skript:
if {game.type} is "Lobby":
        set the player's level to "%{game.number}%"
 
Status
Not open for further replies.