- Joined
- Apr 20, 2013
- Messages
- 36
Hey guys
i have made my maps killing and dying system and it worked good till now .....
if 2 heros kill each other at the same time .... only one of them will revive
how to show my trigger here ???
Edit: oh sry ... here it is :
i have made my maps killing and dying system and it worked good till now .....
if 2 heros kill each other at the same time .... only one of them will revive
how to show my trigger here ???
Edit: oh sry ... here it is :
-
Battle
-
Events
- Unit - A unit Dies
- Conditions
-
Actions
- Set TempLoc = (Random point in (Playable map area))
- Set Hero[1] = (Killing unit)
- Set Hero[2] = (Triggering unit)
-
For each (Integer C) from 1 to 10, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of Hero[1]) Equal to (Player(C))
-
Then - Actions
- Game - Display to (Player group((Triggering player))) the text: ((You have been Killed by |cffff0000 + (Name of (Player(C)))) + (|r + Dont forget to use |cff00ff00"-rev"|r command to revive your hero ;)))
- Game - Display to (Player group((Player(C)))) the text: ((You have Killed |cffff0000 + (Name of (Triggering player))) + |r. |cffffcc0050 Bonus Gold added|r)
- Set Kills[C] = (Kills[C] + 1)
- Set Deaths[(Player number of (Triggering player))] = (Deaths[(Player number of (Triggering player))] + 1)
- Player - Add 50 to (Player(C)) Current gold
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Events
Last edited: