> No... Just look at my example, it is all in the math
>
> EarnedLives:
>
> int(global('EarnedExp') / 20000)+1
>
That method won't work properly. Since the amount of lives you have is directly tied to the amount of experience(or points) you have, losing lives won't work properly. You'll just gain back any lives you lost the instant that expression is used again.
Doppel's method is the best. However, the more conventional way of using modulus in this case would be:
If Score % 20000 = 0
Actually my expression works great. When you RP you need to know the MAX lives for a a set Experience lever so. But you also set a TempLives up.
This way you can subtract TempLives, but say you get a potion to gain lives back. My way you will still see the ceiling for how may lives you can gain back.