on rightclick:
if "%lore of player's tool%" contains "&d&lHealer":
cancel event
if {tlsmp.mana.%uuid of player%.CurrentMana} > 49:
set {_tempmana.%uuid of player%} to 50
remove {_tempmana.%uuid of player%} from {tlsmp.mana.%uuid of player%.CurrentMana}
different skript
#This slowly regenerates mana over time.
every 2 seconds:
loop all players:
if {tlsmp.mana.%uuid of loop-value%.CurrentMana} < {tlsmp.mana.%loop-value's uuid%.maxMana}:
add 1 to {tlsmp.mana.%uuid of loop-value%.CurrentMana}
else if {tlsmp.mana.%uuid of loop-value%.CurrentMana} = {tlsmp.mana.%loop-value's uuid%.maxMana}:
stop
No errors, but mana doesn't regenerated. Any idea why?