Jump to content

Need help with running a variable


TheSckwadbros999

Recommended Posts

Send the full code, we need context. Also include the full error.

Founder - Minehut.xyz

The leading Minehut support website. We aim to provide top quality tutorials, provide answers to top questions, and help in any way we can. Our site is community driven, and we will continue to make it better and better.

Support | 28/08/20 -13/09/20

Senior Support | 13/09/20 - 19/10/20

 

forums.gif.5d3db2db4a05c9465b84fa9bf0293df4.gif

Link to comment
Share on other sites

15 hours ago, TheSckwadbros999 said:

all I have is 

if {xp::%player's uuid%} is 500:
    remove 500 from {xp::%player's uuid%}
    add 1 to {levels::%player's uuid%}

 

I've tried >= doesnt work I wonder if its not running

 

Error message:

Can't understand this event: if {xp::%player's uuid%} is 500

That is not how skript works. A skript needs an event to trigger the following code.

For example an event is stuff like:

on break:

on place:

command /test:
 trigger:

These are events that tell skript one the code below is supposed to run. So in order to use the if you have there you need a trigger since you already have an on break: event because you add xp when breaking an ore just add it to that.

tumblr_lqahoaPLkC1ql1l0v.gif

Feel free to add me on discord if you:

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with plugins

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with skripts

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need to vent about something

tumblr_lqahoaPLkC1ql1l0v.gif

>[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]<

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...