- Joined
- Jun 12, 2009
- Messages
- 38
Hey there, excuse me if I'm posting in the wrong section (I believe that I'm not doing it anyway..) and for the dumb question may be, but that thing is becoming too annoying to me for quite a long time already..
So.. the title explains it pretty much, a bit more detailed:
I have a spellbook that's added to a hero after he learns a specific skill. The spellbook has 3 spells at all levels, 2 of the abilities in it have no levels, and one of them has 10 levels. The ability that the hero learns is based on Immolation (so it's turn on/turn off), and I want to make the trigger to work like that:
The hero activates the ability; his current HP is saved to a variable (or at least I think it has to be that way); and for every 2% of missing HP the level of the 10-leveled ability in the spellbook is increased by one level. The problem is that I do not know (.. sad, it's probably pretty simple as most of these things) how to calculate exactly each of the 2% missing HP from the hero's HP at the moment of the activation of the ability (not his maximum HP) and level up the spell in the spellbook according to them as long as the Immolation-based ability is turned on...
So, If I'm doing wrong by posting this question here - I'm sorry, it's my first time asking for help about such stuff..
So.. the title explains it pretty much, a bit more detailed:
I have a spellbook that's added to a hero after he learns a specific skill. The spellbook has 3 spells at all levels, 2 of the abilities in it have no levels, and one of them has 10 levels. The ability that the hero learns is based on Immolation (so it's turn on/turn off), and I want to make the trigger to work like that:
The hero activates the ability; his current HP is saved to a variable (or at least I think it has to be that way); and for every 2% of missing HP the level of the 10-leveled ability in the spellbook is increased by one level. The problem is that I do not know (.. sad, it's probably pretty simple as most of these things) how to calculate exactly each of the 2% missing HP from the hero's HP at the moment of the activation of the ability (not his maximum HP) and level up the spell in the spellbook according to them as long as the Immolation-based ability is turned on...
So, If I'm doing wrong by posting this question here - I'm sorry, it's my first time asking for help about such stuff..