- Joined
- Oct 27, 2008
- Messages
- 1,176
theres a bug with my map with one hero
it has a skill that makes a clone of its self but its a hero
i want to make it that the clone isnt revived by this trigger
it has a skill that makes a clone of its self but its a hero
i want to make it that the clone isnt revived by this trigger
-
Hero Reviving
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


((Triggering unit) is A Hero) Equal to True
-
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




((Dying unit) is A Hero) Equal to True
-
-



Then - Actions
-




Player - Add ((Level of (Dying unit)) x 10) to (Owner of (Killing unit)) Current gold
-
-



Else - Actions
-
-


Countdown Timer - Start Herorevivingtimer[(Player number of (Owner of (Dying unit)))] as a One-shot timer that will expire in 20.00 seconds
-


Set Herorevivingtimer[(Player number of (Owner of (Dying unit)))] = (Last started timer)
-


Countdown Timer - Create a timer window for Herorevivingtimer[(Player number of (Owner of (Dying unit)))] with title (Name of (Triggering player))
-


Set HeroRevivingTimerWindow[(Player number of (Owner of (Dying unit)))] = (Last created timer window)
-


Countdown Timer - Show HeroRevivingTimerWindow[(Player number of (Owner of (Dying unit)))]
-


Wait 20.00 seconds
-


Countdown Timer - Destroy HeroRevivingTimerWindow[(Player number of (Owner of (Dying unit)))]
-


For each (Integer A) from 1 to 5, do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Owner of (Dying unit)) Equal to (Player((Integer A)))
-
-





Then - Actions
-






Set Points[5] = (Center of Region 015 <gen>)
-






Hero - Instantly revive (Dying unit) at Points[5], Hide revival graphics
-






Custom script: call RemoveLocation( udg_Points[5])
-
-





Else - Actions
-
-
-
-


For each (Integer A) from 6 to 10, do (Actions)
-



Loop - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Owner of (Dying unit)) Equal to (Player((Integer A)))
-
-





Then - Actions
-






Set Points[6] = (Center of Region 018 <gen>)
-






Hero - Instantly revive (Dying unit) at Points[6], Hide revival graphics
-






Custom script: call RemoveLocation( udg_Points[6])
-
-





Else - Actions
-
-
-
-
-


