Jump to content

Trying to create Levels


Recommended Posts

So im kinda new to skript plugin so i just wanna know if i could
make levels like when the player reaches 500 exp he level up by 1 level and the exp resets to 0 i made that along time ago but i can't remember how to do this again by using cmd blocks and scoreboard so i came here to see if skript can actually make levels and exp, thank you

Link to post
Share on other sites

i mean custom ones if skript can't do that u can tell me how to do it by using scoreboard and command blocks here is  a simullar command i used before to create the levels and the exp system

/scoreboard objectives add Level dummy
/scoreboard objectives add Exp dummy


execute @a[lm=1,l=1,score_Exp_min=500,score_Level=1]
execute @a[lm=1,l=1,score_Level_min=500,score_Level=0] 
its was something like that when the players reaches 500 exp the exp resets to 0 and the players gain 1 level and so on so yeah and when the players reaches level 500 if he gain another level the level reset to level 0 again so please i want to make this so bad

Link to post
Share on other sites

You would have to use a variable for experience and another one for levels.

Ex: {experience::%player's uuid%} and {level::%player's uuid%}

Then whenever you add to the exp variable you would have to check if the new value is greater than or equal to 500. A few useful tutorials for simple scripts like these can be found here and here.

[VIP] 2019

[JR.MOD] 10/29/2019

[MOD] 12/30/2019

nerd3.png

ok.png

sure.png

q.png

Link to post
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...