- Joined
- Apr 23, 2010
- Messages
- 312
Like the title says, the below revival trigger only works for Player 1 and only creates the window with the players name for everyone else. Am I missing something simple or is this just messed up altogether?
-
Set Revival
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


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

Actions
-


Set temp_point = (Position of (Triggering unit))
-


Special Effect - Create a special effect at temp_point using Abilities\Spells\Human\MarkOfChaos\MarkOfChaosTarget.mdl
-


Custom script: call RemoveLocation(udg_temp_point)
-


Set R_PlayerNumber = (Player number of (Owner of (Triggering unit)))
-


Set R_Unit[R_PlayerNumber] = (Triggering unit)
-


Set R_Wait[R_PlayerNumber] = (((Real((Hero level of (Triggering unit)))) x 2.00) + 3.00)
-


Countdown Timer - Start R_Timer[R_PlayerNumber] as a One-shot timer that will expire in R_Wait[R_PlayerNumber] seconds
-


Countdown Timer - Create a timer window for R_Timer[R_PlayerNumber] with title (Name of (Owner of (Triggering unit)))
-


Set R_Player[R_PlayerNumber] = (Last created timer window)
-


Countdown Timer - Show R_Player[R_PlayerNumber]
-
-
-
Revive
-

Events
-


Time - R_Timer[1] expires
-


Time - R_Timer[2] expires
-


Time - R_Timer[3] expires
-


Time - R_Timer[4] expires
-


Time - R_Timer[5] expires
-


Time - R_Timer[6] expires
-
-

Conditions
-

Actions
-


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



Loop - Actions
-




Set R_MUI = (Integer A)
-




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





If - Conditions
-






(R_Unit[R_MUI] is dead) Equal to True
-
-





Then - Actions
-






If (((Owner of R_Unit[R_MUI]) is an ally of Player 10 (Light Blue)) Equal to True) then do (Set temp_point = (Random point in Humans <gen>)) else do (Do nothing)
-






If (((Owner of R_Unit[R_MUI]) is an ally of Player 11 (Dark Green)) Equal to True) then do (Set temp_point = (Random point in Orcs <gen>)) else do (Do nothing)
-






Hero - Instantly revive R_Unit[R_MUI] at temp_point, Hide revival graphics
-






Unit - Set life of R_Unit[R_MUI] to ((Max life of R_Unit[R_MUI]) x 0.25)
-






Unit - Set mana of R_Unit[R_MUI] to ((Max mana of R_Unit[R_MUI]) x 0.25)
-






Selection - Select R_Unit[R_MUI] for (Player(R_MUI))
-






Camera - Pan camera for (Owner of R_Unit[R_MUI]) to temp_point over 0.50 seconds
-






Special Effect - Create a special effect at temp_point using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
-






Special Effect - Destroy (Last created special effect)
-






Countdown Timer - Destroy R_Player[R_MUI]
-






Custom script: call RemoveLocation(udg_temp_point)
-
-





Else - Actions
-
-
-
-
-
Last edited:

















