- Joined
- Feb 17, 2009
- Messages
- 291
So I've got an item that restores a flat amount of health every few seconds when carried. This causes problems for a specific two heroes who happen to use a mirror image ability. When the images die, it starts to subtract that amount of health instead of healing it. So you get numbers like "+-900" on the combat text, resulting in being completely unable to continue playing.
What should I do? As you can see below I tried using the built in boolean exception and it does nothing.
What should I do? As you can see below I tried using the built in boolean exception and it does nothing.
-
Events
-
Time - Every 4.00 seconds of game time
-
-
Conditions
-
Actions
-
Set AA_LEAK_UnitGroups = (Units in (Playable map area))
-
Unit Group - Pick every unit in AA_LEAK_UnitGroups and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) has an item of type |c0000ffffCure Ring|r) Equal to True
-
((Picked unit) is an illusion) Equal to False
-
((Picked unit) is A Hero) Equal to True
-
(Picked unit) Not equal to King Piccolo 0090 <gen>
-
(Picked unit) Not equal to Sabin 0028 <gen>
-
-
Then - Actions
-
Unit - Set life of (Picked unit) to ((Life of (Picked unit)) + ((Real(CureRingNew2015[(Player number of (Owner of (Picked unit)))])) x 300.00))
-
Floating Text - Create floating text that reads ((+ + (String((CureRingNew2015[(Player number of (Owner of (Picked unit)))] x 300)))) + <Empty String>) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency
-
Floating Text - Change (Last created floating text): Disable permanence
-
Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
-
Floating Text - Change the fading age of (Last created floating text) to 0.10 seconds
-
Floating Text - Set the velocity of (Last created floating text) to 90.00 towards 90.00 degrees
-
Custom script: call DestroyGroup(udg_AA_LEAK_UnitGroups)
-
-
Else - Actions
-
-
-
-