- Joined
- Aug 11, 2009
- Messages
- 605
I want to make a triggered mana regeneration for my Heroes but here is my issue:
Event - Every 1 sec of the game.
Action - Set mana of HERO to (0.25 + 0.02x Intelligence of HERO)
Obviously not all triggers are there, but that is not the issue, the issue is when the mana gained each sec is less than 1, the Hero never regenerates mana. In addition, only whole numbers like 1, 2, 3 etc counts towards the mana regeneration, not the numbers after the . like 1.25 only gives 1 mana per sec.
So my question is:
Is there an easy way to fix this or do i need timers or something? If so, could someone help me create the necessary triggers?
P.S.
The reason why I want triggered mana regeneration is because some Heroes use the formula above to regenerate mana, some Heroes regenerate (3 + 0.05x Intelligence) per sec and some Heroes have no mana regeneration but have some spells that generates mana and some that consumes.
Would be very grateful fr some help, +rep ofc!
Event - Every 1 sec of the game.
Action - Set mana of HERO to (0.25 + 0.02x Intelligence of HERO)
Obviously not all triggers are there, but that is not the issue, the issue is when the mana gained each sec is less than 1, the Hero never regenerates mana. In addition, only whole numbers like 1, 2, 3 etc counts towards the mana regeneration, not the numbers after the . like 1.25 only gives 1 mana per sec.
So my question is:
Is there an easy way to fix this or do i need timers or something? If so, could someone help me create the necessary triggers?
P.S.
The reason why I want triggered mana regeneration is because some Heroes use the formula above to regenerate mana, some Heroes regenerate (3 + 0.05x Intelligence) per sec and some Heroes have no mana regeneration but have some spells that generates mana and some that consumes.
Would be very grateful fr some help, +rep ofc!