Hi,
I would like to make a trigger for my RPG map.
What it is about:
Every third level my Hero gains, I wish him to gain a token of permanent bonus damage.
I have tried to make an integer that counts the amounts of levels gained.
Then I wished to divide them into 3, making it count how many tokens the Hero needs to achieve.
But the thing with integers is, if I have gained 5 levels from the same kill and I divide those into 3, I will give 1,66 = 2 integers. And by doing so, I might end up with more damage at max level, than supposed to.
Any suggestions on how to make a simple JASS trigger on how to give a Hero a permanent bonus damage token, for each third level?
It also has to be MUI. But each player has only 1 Hero, so it actually just has to be MPI tbh.
I would like to make a trigger for my RPG map.
What it is about:
Every third level my Hero gains, I wish him to gain a token of permanent bonus damage.
I have tried to make an integer that counts the amounts of levels gained.
Then I wished to divide them into 3, making it count how many tokens the Hero needs to achieve.
But the thing with integers is, if I have gained 5 levels from the same kill and I divide those into 3, I will give 1,66 = 2 integers. And by doing so, I might end up with more damage at max level, than supposed to.
Any suggestions on how to make a simple JASS trigger on how to give a Hero a permanent bonus damage token, for each third level?
It also has to be MUI. But each player has only 1 Hero, so it actually just has to be MPI tbh.