- Joined
- Mar 16, 2008
- Messages
- 1,032
This is more of a cosmetic trigger but when player's hero gets defeated I want it to go to "heaven" zone. I put 20 points in this region and had it pick a random point to go to, but sometimes it does not work because that place is already occupied by another slain hero. Can anyone help me devise a way to prevent this? Here's my current trigger that only works sometimes.
-
... Dies
-

Events
-


Unit - ... Dies
-
-

Conditions
-

Actions
-


...
-


...
-


...
-


Set VariableSet Rezing_Hero_Hev_Var = (Dying unit)
-


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


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


Unit - Make Rezing_Hero_Hev_Var Invulnerable
-


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


Unit - Change color of Rezing_Hero_Hev_Var to Snow
-


...
-


...
-


...
-
-





