- Joined
- Jul 19, 2010
- Messages
- 99
Hello, so i am creating a survival map and it requires a trigger that if your mana is equal to 0 and/or your food is equal to zero your health would begin to drop. So far I am stumped. I don't want to use separate triggers to drain health because then it would double drain and kill your hero almost instantly. I would like it to be under one trigger if possible (Note: I do not know how to use JASS or any of that other crap haha). Thanks! =)
-
HealthDrain
-
Events
-
Time - Every 15.00 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in (Units of type Survivor) and do (Actions)
-
Loop - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
RedFood Equal to 0
-
(Integer((Mana of (Picked unit)))) Equal to 0
-
-
Then - Actions
-
Unit - Set life of (Picked unit) to ((Percentage life of (Picked unit)) - ((Real((Strength of (Picked unit) (Exclude bonuses)))) + 1.00))%
-
-
Else - Actions
-
Do nothing
-
-
-
-
Last edited: