- Joined
- Jan 17, 2019
- Messages
- 163
Hello, so in my map 4 players play as random hero monsters. From a pool of 10 initially but an 11th mini-boss is added to the pool later. I'm trying but I cant seem to get the randomly selected trigger to work. Should be fairly simple, when their monster dies 30 seconds later a random monster that is not the one they just had spawns for them and the one that died is returned to the gallery (Imgur). I can't do random integer 1-10 because it could select one of the other players controlled monsters from the same pool.
Here is what I've cooked up but I am either missing something or doing it wrong. Any help would be greatly appreciated.
Here is what I've cooked up but I am either missing something or doing it wrong. Any help would be greatly appreciated.
-
Heretic Rez
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Dying unit) is in HereticSelectorVariable[0].) Equal to True
-
-
Then - Actions
-
Game - Display to (All players controlled by a ((Owner of (Dying unit)) controller) player) the text: |cff800080You will ...
-
Wait 30.00 seconds
-
Unit Group - Pick every unit in (Random 1 units from HereticSelectorVariable[0]) and do (Actions)
-
Loop - Actions
-
Unit Group - Remove (Picked unit) from HereticSelectorVariable[0].
-
Unit - Move (Picked unit) instantly to (Random point in Region 155 <gen>)
-
Unit - Change ownership of (Picked unit) to (Owner of (Dying unit)) and Change color
-
Unit - Make (Picked unit) Vulnerable
-
Game - Display to (All players controlled by a ((Owner of (Dying unit)) controller) player) the text: |cff800080Your new ...
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Picked unit) Equal to Prince of Agony 0007 <gen>
-
-
Then - Actions
-
Game - Display to (All players) the text: |cff800080THE PRINC...
-
Sound - Play QuestFailed <gen>
-
-
Else - Actions
-
Do nothing
-
-
-
-
-
Wait 30.00 seconds
-
Unit Group - Add (Dying unit) to HereticSelectorVariable[0]
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Dying unit) Equal to Crypt Guard 0083 <gen>
-
-
Then - Actions
-
Hero - Instantly revive Crypt Guard 0083 <gen> at (Center of Region 891 <gen>), Show revival graphics
-
Unit - Change ownership of Crypt Guard 0083 <gen> to Neutral Passive and Change color
-
Unit - Make Crypt Guard 0083 <gen> Invulnerable
-
Unit - Make Crypt Guard 0083 <gen> face 270.00
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Dying unit) Equal to Potion Master 0016 <gen>
-
-
Then - Actions
-
Hero - Instantly revive Potion Master 0016 <gen> at (Center of Region 891 Copy <gen>), Show revival graphics
-
Unit - Change ownership of Potion Master 0016 <gen> to Neutral Passive and Change color
-
Unit - Make Potion Master 0016 <gen> Invulnerable
-
Unit - Make Crypt Guard 0083 <gen> face 270.00
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Dying unit) Equal to Heretic 0039 <gen>
-
-
Then - Actions
-
Hero - Instantly revive Heretic 0039 <gen> at (Center of Region 891 Copy 2 <gen>), Show revival graphics
-
Unit - Change ownership of Heretic 0039 <gen> to Neutral Passive and Change color
-
Unit - Make Heretic 0039 <gen> Invulnerable
-
Unit - Make Heretic 0039 <gen> face 270.00
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Dying unit) Equal to Feast Bringer 0000 <gen>
-
-
Then - Actions
-
Hero - Instantly revive Feast Bringer 0000 <gen> at (Center of Region 891 Copy 3 <gen>), Show revival graphics
-
Unit - Change ownership of Feast Bringer 0000 <gen> to Neutral Passive and Change color
-
Unit - Make Feast Bringer 0000 <gen> Invulnerable
-
Unit - Make Feast Bringer 0000 <gen> face 270.00
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Dying unit) Equal to Bride of Lament 0102 <gen>
-
-
Then - Actions
-
Hero - Instantly revive Bride of Lament 0102 <gen> at (Center of Region 891 Copy 4 <gen>), Show revival graphics
-
Unit - Change ownership of Bride of Lament 0102 <gen> to Neutral Passive and Change color
-
Unit - Make Bride of Lament 0102 <gen> Invulnerable
-
Unit - Make Bride of Lament 0102 <gen> face 270.00
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Dying unit) Equal to Black Mass 0231 <gen>
-
-
Then - Actions
-
Hero - Instantly revive Black Mass 0231 <gen> at (Center of Region 891 Copy 5 <gen>), Show revival graphics
-
Unit - Change ownership of Black Mass 0231 <gen> to Neutral Passive and Change color
-
Unit - Make Black Mass 0231 <gen> Invulnerable
-
Unit - Make Black Mass 0231 <gen> face 270.00
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Dying unit) Equal to Shade Sister 0803 <gen>
-
-
Then - Actions
-
Hero - Instantly revive Shade Sister 0803 <gen> at (Center of Region 891 Copy 6 <gen>), Show revival graphics
-
Unit - Change ownership of Shade Sister 0803 <gen> to Neutral Passive and Change color
-
Unit - Make Shade Sister 0803 <gen> Invulnerable
-
Unit - Make Shade Sister 0803 <gen> face 270.00
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Dying unit) Equal to Blade Dancer 0443 <gen>
-
-
Then - Actions
-
Hero - Instantly revive Blade Dancer 0443 <gen> at (Center of Region 891 Copy 7 <gen>), Show revival graphics
-
Unit - Change ownership of Blade Dancer 0443 <gen> to Neutral Passive and Change color
-
Unit - Make Blade Dancer 0443 <gen> Invulnerable
-
Unit - Make Blade Dancer 0443 <gen> face 270.00
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Dying unit) Equal to Bone Caller 0127 <gen>
-
-
Then - Actions
-
Hero - Instantly revive Bone Caller 0127 <gen> at (Center of Region 891 Copy 8 <gen>), Show revival graphics
-
Unit - Change ownership of Bone Caller 0127 <gen> to Neutral Passive and Change color
-
Unit - Make Bone Caller 0127 <gen> Invulnerable
-
Unit - Make Bone Caller 0127 <gen> face 270.00
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Dying unit) Equal to Flesh Hound 0056 <gen>
-
-
Then - Actions
-
Hero - Instantly revive Flesh Hound 0056 <gen> at (Center of Region 891 Copy 9 <gen>), Show revival graphics
-
Unit - Change ownership of Flesh Hound 0056 <gen> to Neutral Passive and Change color
-
Unit - Make Flesh Hound 0056 <gen> Invulnerable
-
Unit - Make Flesh Hound 0056 <gen> face 270.00
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Dying unit) Equal to Prince of Agony 0007 <gen>
-
-
Then - Actions
-
Hero - Instantly revive Prince of Agony 0007 <gen> at (Center of Region 891 Copy 10 <gen>), Show revival graphics
-
Unit - Change ownership of Prince of Agony 0007 <gen> to Neutral Passive and Change color
-
Unit - Make Prince of Agony 0007 <gen> Invulnerable
-
Unit - Make Prince of Agony 0007 <gen> face 270.00
-
Unit Group - Remove Prince of Agony 0007 <gen> from HereticSelectorVariable[0].
-
Wait 180.00 seconds
-
Unit Group - Add Prince of Agony 0007 <gen> to HereticSelectorVariable[0]
-
-
Else - Actions
-
-
-
Else - Actions
-
Do nothing
-
-
-
-