BlahBlahh Posted July 18, 2021 Share Posted July 18, 2021 so I am trying to make a token skript but all I get is this annoying error What I am trying to do is to add argument to variable to argument (player argument) uuid I am so confused, lol Link to comment Share on other sites More sharing options...
BlahBlahh Posted July 18, 2021 Author Share Posted July 18, 2021 also here is the code command /tokens [<string>] [<player>] [<number>]: aliases: "/token" permission: "tokens.sk" trigger: if arg-1 is "give": give arg-3 to {tokens::%player%} send "&6Added %arg-3% to %arg-2%" to player Link to comment Share on other sites More sharing options...
StarBunnie Posted July 18, 2021 Share Posted July 18, 2021 15 minutes ago, BlahBlahh said: also here is the code command /tokens [<string>] [<player>] [<number>]: aliases: "/token" permission: "tokens.sk" trigger: if arg-1 is "give": give arg-3 to {tokens::%player%} send "&6Added %arg-3% to %arg-2%" to player If you want to add a number to a variable use add add arg 3 to {tokens::%player%} As you see you also wrote player in your variable which is always the player that executes the command to change that use arg 2 here instead add arg 3 to {tokens::%arg 2%} Another thing is you're only using player or now arg 2 this means it will use their name. The issue is if they change their name all their progress is gone : ( add arg 3 to {tokens::%arg 2's uuid%} That's why you should use uuid instead this stays forever Here is a quick overview of how it looks for skript: {tokens::%player%} -> {tokens::starbunnie} {tokens::%player's uuid%} -> {tokens::aaaaaaaaaa-bbbbbb-cccc-dddd-eeeeee} 2 Feel free to add me on discord if you: need help with plugins need help with skripts need to vent about something >[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]< Link to comment Share on other sites More sharing options...
BlahBlahh Posted July 19, 2021 Author Share Posted July 19, 2021 3 hours ago, StarBunnie said: If you want to add a number to a variable use add add arg 3 to {tokens::%player%} As you see you also wrote player in your variable which is always the player that executes the command to change that use arg 2 here instead add arg 3 to {tokens::%arg 2%} Another thing is you're only using player or now arg 2 this means it will use their name. The issue is if they change their name all their progress is gone : ( add arg 3 to {tokens::%arg 2's uuid%} That's why you should use uuid instead this stays forever Here is a quick overview of how it looks for skript: {tokens::%player%} -> {tokens::starbunnie} {tokens::%player's uuid%} -> {tokens::aaaaaaaaaa-bbbbbb-cccc-dddd-eeeeee} Thanks for your help! 1 Link to comment Share on other sites More sharing options...
fuzzy5576 Posted July 22, 2021 Share Posted July 22, 2021 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now