- Joined
- Mar 16, 2008
- Messages
- 1,010
So this runs when players are defeated and moves their heroes to 'heaven' - more of a cosmetic thing. However seems "Rezing_Hero_Hev_Var" got rewrote half way through the trigger. I thought only 1 trigger could run at a time? Is the solution to just make more variables? thanks for any feedback.
-
Heroes Hev Rez Red
-

Events
-


Time - Royal_Hev_Rez_Timer[1] expires
-
-

Conditions
-

Actions
-


Trigger - Turn off Red King Stay in <gen>
-


Trigger - Turn off AI Hero Dies Red <gen>
-


Set VariableSet Ran_Num_Rez_Var = (Random integer number between 1 and Rez_Pt_Count)
-


Set VariableSet Rezing_Hero_Hev_Var = Red_King
-


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



Loop - Actions
-




Hero - Drop the item from slot (Integer A) of Rezing_Hero_Hev_Var.
-
-
-


Hero - Instantly revive Rezing_Hero_Hev_Var at Rez_Pt_Var[Ran_Num_Rez_Var], Show revival graphics
-


Unit - Move Rezing_Hero_Hev_Var instantly to Rez_Pt_Var[Ran_Num_Rez_Var]
-


Custom script: call RemoveLocation(udg_Rez_Pt_Var[udg_Ran_Num_Rez_Var])
-


Unit - Make Rezing_Hero_Hev_Var Invulnerable
-


Unit - Change ownership of Rezing_Hero_Hev_Var to Neutral Passive and Retain color
-


Unit - Change color of Rezing_Hero_Hev_Var to Snow
-


Custom script: call SetUnitPropWindow(udg_Rezing_Hero_Hev_Var, 0.00)
-


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



If - Conditions
-




Ran_Num_Rez_Var Not equal to Rez_Pt_Count
-
-



Then - Actions
-




Set VariableSet Rez_Pt_Var[Ran_Num_Rez_Var] = Rez_Pt_Var[Rez_Pt_Count]
-
-



Else - Actions
-
-


Set VariableSet Rez_Pt_Count = (Rez_Pt_Count - 1)
-


Set VariableSet Ran_Num_Rez_Var = (Random integer number between 1 and Rez_Pt_Count)
-


Set VariableSet Rezing_Hero_Hev_Var = Red_Prince
-


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



Loop - Actions
-




Hero - Drop the item from slot (Integer A) of Rezing_Hero_Hev_Var.
-
-
-


Hero - Instantly revive Rezing_Hero_Hev_Var at Rez_Pt_Var[Ran_Num_Rez_Var], Show revival graphics
-


Unit - Move Rezing_Hero_Hev_Var instantly to Rez_Pt_Var[Ran_Num_Rez_Var]
-


Custom script: call RemoveLocation(udg_Rez_Pt_Var[udg_Ran_Num_Rez_Var])
-


Unit - Make Rezing_Hero_Hev_Var Invulnerable
-


Unit - Change ownership of Rezing_Hero_Hev_Var to Neutral Passive and Retain color
-


Unit - Change color of Rezing_Hero_Hev_Var to Snow
-


Custom script: call SetUnitPropWindow(udg_Rezing_Hero_Hev_Var, 0.00)
-


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



If - Conditions
-




Ran_Num_Rez_Var Not equal to Rez_Pt_Count
-
-



Then - Actions
-




Set VariableSet Rez_Pt_Var[Ran_Num_Rez_Var] = Rez_Pt_Var[Rez_Pt_Count]
-
-



Else - Actions
-
-


Set VariableSet Rez_Pt_Count = (Rez_Pt_Count - 1)
-
-

