- Joined
- Oct 16, 2010
- Messages
- 194
-
CreepsBounty
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
Actions
-
For each (Integer A) from 0 to NumberOfBuildings, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Unit-type of (Dying unit)) Equal to UnitType[(Integer A)]
-
-
Then - Actions
-
Set TempInteger = (Player number of (Owner of (Killing unit)))
-
Set TempInteger2 = UnitBounty[(Integer A)]
-
Set TempPlayer = (Owner of (Killing unit))
-
Player - Add UnitBounty[(Integer A)] to (Player(TempInteger)) Current gold
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
TempInteger2 Not equal to 0
-
-
Then - Actions
-
Custom script: call showUnitTextPlayer (GetDyingUnit(), "+" + I2S(udg_TempInteger2), 100.00, 77.00, 0.00, ConvertedPlayer(udg_TempInteger))
-
-
Else - Actions
-
-
-
Else - Actions
-
-
-
-
-