#I can't prestige :(
1 messages · Page 1 of 1 (latest)
I was looking through it for a bit and then found >=
Maybe replace that with is greater than or equal to.
Wdym no?
= is the symbols for greater or equal to. and it works in skript
So it has to be something else… hmmm
Idrk if he is trying to make it if he has exactly 20 rebirths then prestige or if he wants it to be more than 20 and exactly 20 aswell
Debug
I solved it nevermind but thank you so much for trying to help me 🙂
I was trying to make it 10 them add 10 rebirth each time but I created a new script and it works much better than this one
command /prestige-confirm:
trigger:
set {prestige::%player%} to 0 if {prestige::%player%} is not set
set {_p} to {prestige::%player%}
set {_p} to 0 if {_p} is not set
set {_rebirthRequired2p} to 10
if {_p} >= 1:
add {_p}*10 to {_rebirthRequired2p}
if {rebirth::%player%} >= {_rebirthRequired2p}:
add 1 to {prestige::%player%}
set {rebirth::%player%} to 0
set {balance::%player%} to 0
play sound "entity.experience_orb.pickup" with volume 1 to the player
broadcast "&7%player% has prestiged %{prestige::%player%}% times!"
clear player's inventory
else:
send "&cYou do not have enough rebirths, you need &b%{_rebirthRequired2p}%!"
is the new code for anyone who wants to see
what did you mean by debug
ok
ok so debuging means that you need to figure where and what in your code does not work
cmds don't work in forums