- Joined
- Nov 4, 2006
- Messages
- 132
I am having trouble with a trigger of mine that is supposed to revive your hero after (hero level x 6 seconds) has past. The hero is supposed to revive at one of the basepoints (1-61) as well as creating a zombie if killed by player 11 or 12.
For some reason the hero sometimes does not repawn at all and this basicly forces the player to leave.
I have posted the trigger below and if you think you need the whole map could you please tell me
I would like to have this be done in only 1 or 2 triggers and not be in JASS as I dont know JASS
Probably end up being something really simple I overlooked
Thanks in Advance
For some reason the hero sometimes does not repawn at all and this basicly forces the player to leave.
I have posted the trigger below and if you think you need the whole map could you please tell me
I would like to have this be done in only 1 or 2 triggers and not be in JASS as I dont know JASS
Probably end up being something really simple I overlooked
Thanks in Advance
-
Hero Dies
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
((Dying unit) is A Hero) Equal to True
-
Or - Any (Conditions) are true
-
Conditions
-
(Triggering unit) Equal to playerhero[1]
-
(Triggering unit) Equal to playerhero[2]
-
(Triggering unit) Equal to playerhero[3]
-
(Triggering unit) Equal to playerhero[4]
-
(Triggering unit) Equal to playerhero[5]
-
(Triggering unit) Equal to playerhero[6]
-
(Triggering unit) Equal to playerhero[7]
-
(Triggering unit) Equal to playerhero[8]
-
-
-
(Evacuation Point 0067 <gen> is alive) Equal to True
-
-
Actions
-
Game - Display to (All players) the text: ((|c00640000 + (((Name of (Owner of (Dying unit))) + 's ) + (Name of (Dying unit)))) + ( has been killed by + ((Name of (Owner of (Killing unit))) + |r)))
-
Game - Display to (All players matching ((Owner of (Dying unit)) Equal to (Matching player))) the text: (|c00FFFF00Your Hero will revive in + ((String((6 x (Level of (Dying unit))))) + seconds))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Killing unit)) Equal to Player 11 (Dark Green)
-
(Owner of (Killing unit)) Equal to Player 12 (Brown)
-
-
-
-
Then - Actions
-
Set temp_point = (Position of (Dying unit))
-
Unit - Create 1 Infected Hero for (Owner of (Killing unit)) at temp_point facing Default building facing degrees
-
Unit - Order (Last created unit) to Attack-Move To basepoints[(Random integer number between 1 and 61)]
-
Special Effect - Create a special effect at temp_point using Abilities\Spells\Undead\DarkRitual\DarkRitualTarget.mdl
-
Custom script: call RemoveLocation(udg_temp_point)
-
-
Else - Actions
-
Do nothing
-
-
-
Wait (6.00 x (Real((Level of playerhero[(Player number of (Owner of (Dying unit)))])))) seconds
-
Set temp_point = basepoints[(Random integer number between 1 and 61)]
-
Hero - Instantly revive playerhero[(Player number of (Owner of (Triggering unit)))] at temp_point, Show revival graphics
-
Camera - Pan camera for (Owner of (Triggering unit)) to temp_point over 0.00 seconds
-
Custom script: call RemoveLocation(udg_temp_point)
-
Unit - Make playerhero[(Player number of (Owner of (Triggering unit)))] Invulnerable
-
Wait 5.00 seconds
-
Unit - Make playerhero[(Player number of (Owner of (Triggering unit)))] Vulnerable
-
-