- Joined
- May 15, 2009
- Messages
- 192
Hey everyone. Im trying to make a passive spell that increases your strength by 1/2/3 points(depending on the level of the ability) per percentage missing health. So if you have 1 level of the spell, and you are missing 40% health, you should have 40 extra strength.
My problem is that the bonus stops after it has increased just once. Heres the trigger as of now:
(Btw I know that there is a leak, but I will fix that when/if the trigger works)
My problem is that the bonus stops after it has increased just once. Heres the trigger as of now:
-
Unyielding Onslaught
-
Events
- Time - Every 0.01 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Riftwalker)) and do (Actions)
-
Loop - Actions
- Set UO_PercenHealth = (100.00 - (Percentage life of (Picked unit)))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Percentage life of (Picked unit)) Less than 100.00
-
Then - Actions
- Hero - Modify Strength of (Picked unit): Set to ((20 + ((Level of (Picked unit)) x 4)) + (((Level of Unyielding Onslaught for (Triggering unit)) x 1) x (Integer(UO_PercenHealth))))
-
Else - Actions
- Hero - Modify Strength of (Picked unit): Set to (20 + (4 x (Level of (Picked unit))))
-
If - Conditions
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Unit-type of (Matching unit)) Equal to Riftwalker)) and do (Actions)
-
Events
(Btw I know that there is a leak, but I will fix that when/if the trigger works)