Hey gang, got help to make a little movement = mana loss system and it is working good. Uh, I noticed no easy way to do a "generic unit event" that would detect when any unit is at 1/4 mana or 0 mana and then use a dummy to apply a negative effect.
Also using Bribe's Unit Indexer and Movement detection.
Also using Bribe's Unit Indexer and Movement detection.
-
Mana Zero
- Events
- Conditions
-
Actions
- -------- Loop Through registered Units --------
-
Unit Group - Pick every unit in ManaZero_Group and do (Actions)
-
Loop - Actions
- Set ManaZero_Individual_Location = (Position of (Picked unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Integer((Mana of (Picked unit)))) Less than or equal to ((Integer((Max mana of (Picked unit)))) / 4)
- ((Picked unit) has buff Cripple) Equal to False
-
Then - Actions
- Unit - Create 1 Dummy for Player 9 (Gray) at ManaZero_Individual_Location facing Default building facing degrees
- Unit - Order (Last created unit) to Undead Necromancer - Cripple (Picked unit)
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Else - Actions
-
If - Conditions
-
Loop - Actions