- Joined
- Feb 8, 2013
- Messages
- 1,479
-
Events
-
Time - Every 0.03 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in ManaBar_group and do (Actions)
-
Loop - Actions
-
Set ManaBar = (Load (Key ManaBar) of (Key (Picked unit)) in ManaHashIf the label is not found, this function returns NULL.)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is dead) Equal to True
-
-
Then - Actions
-
Unit Group - Remove (Picked unit) from ManaBar_group
-
Floating Text - Destroy ManaBar
-
Hashtable - Clear all child hashtables of child (Key (Picked unit)) in ManaHash
-
-
Else - Actions
-
Set ManaStatus = (((Mana of (Picked unit)) / (Max mana of (Picked unit))) x (Real((Length of StateString))))
-
Floating Text - Change text of ManaBar to (((|c001414FF + (Substring(StateString, 1, (Integer(ManaStatus))))) + |r) + ((|c00000000 + (Substring(StateString, (Integer((ManaStatus + 1.00))), (Length of StateString)))) + |r)) using font size 4.00
-
Set tempp1 = (Position of (Picked unit))
-
Set tempp2 = (tempp1 offset by (-40.00, 0.00))
-
Floating Text - Change the position of ManaBar to tempp2 with Z offset 167.00
-
Custom script: call RemoveLocation(udg_tempp2)
-
Custom script: call RemoveLocation(udg_tempp1)
-
-
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(ManaBar_group is empty) Equal to True
-
-
Then - Actions
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-