- Joined
- Jul 18, 2007
- Messages
- 111
-
Essence of Darkness
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
(|c00FFFF00Moria 0391 <gen> is alive) Equal to True
-
-
Actions
-
Set temp_group = (Units in Essence of Darkness <gen>)
-
Unit Group - Pick every unit in temp_group and do (Actions)
-
Loop - Actions
-
Set varUnit = (Picked unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Life of varUnit) Less than (Max life of varUnit)
-
(varUnit belongs to an ally of Player 8 (Pink)) Equal to True
-
-
Then - Actions
-
Set tempInteger = (Integer((Life of varUnit)))
-
Unit - Set life of varUnit to ((Real(tempInteger)) + 4.00)
-
Custom script: call UnitAddAbility(udg_varUnit,'B02A')
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
Custom script: call DestroyGroup (udg_temp_group)
-
-
Point was to make a rect targeted regeneration, i.e. units in a rect get a certain life regeneration ability, but I was having trouble removing it if they're not in it. This would also have to add a sorta dummy buff. Well, got it to work, except it doesn't show the buff, and need to find a way to put a timer on it maybe. Any ideas?