- Joined
- Jul 9, 2012
- Messages
- 159
Hello hive members
I have alot of trouble with an annoying easy trigger.
The spell this trigger is based on is Endurance Aura. The spell has 100 levels. It should increase his attack speed by 1% for every 1% health he is missing (yeah, boring work!). But at some point this trigger won't increase the spells level?
2000-1500 = 500
500/2000 = 0.25
0.25x100 = 25%.
I have alot of trouble with an annoying easy trigger.
The spell this trigger is based on is Endurance Aura. The spell has 100 levels. It should increase his attack speed by 1% for every 1% health he is missing (yeah, boring work!). But at some point this trigger won't increase the spells level?
-
Rage
-
Events
- Time - Every 0.03 seconds of game time
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Morogar the Crusher 0052 <gen> is alive) Equal to True
-
Then - Actions
- Unit - Set level of Rage for Morogar the Crusher 0052 <gen> to ((((Integer((Max life of Morogar the Crusher 0052 <gen>))) - (Integer((Life of Morogar the Crusher 0052 <gen>)))) / (Integer((Max life of Morogar the Crusher 0052 <gen>)))) x 100)
-
Else - Actions
- Trigger - Turn off (This trigger)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
2000-1500 = 500
500/2000 = 0.25
0.25x100 = 25%.