Tower
Events
Unit - A unit Dies
Conditions
And - All (Conditions) are true
Conditions
Unit Type of (Triggering unit) Equal to xxxxx
((Killing unit) belongs to an ally of Player 1 (Red)) equal to True
Actions
For each (Integer A) from 1 to 6, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(PlayerArray[(Integer A)] slot status) Equal to Is playing
Then - Actions
Player - Add 550 to PlayerArray[(Integer A)] Current gold
Set Group_Array[(Integer A)] = (Units owned by PlayerArray[(Integer A)] matching (((Matching unit) is A Hero) Equal to True))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((First unit of group Group_Array[(Integer A)]) is alive) Equal to True
Then - Actions
Sound - Play ReceiveGold <gen> at 100.00% volume, attached to (First unit of group Group_Array[(Integer A)])
Floating Text - Create floating text that reads +550 above (First unit of group Group_Array[(Integer A)]) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 0.00%), and 0.00% transparency
Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 1.00 seconds
Floating Text - Change the fading age of (Last created floating text) to 0.50 seconds
Else - Actions
Do nothing
Custom script: call DestroyGroup(udg_Group_Array[bj_forLoopAIndex])
Else - Actions