Hello everyone,
I previously had a problem with my PvP Event trigger, now I have got it to work but it teleports every Hero from each team instead of 1 Hero from each team, any ideas of how I can do this please?
Here is my trigger:
I think the red bits are the problem, i just cant think of how to get around this.
Thank you and Respect,
(*$malli$*)
I previously had a problem with my PvP Event trigger, now I have got it to work but it teleports every Hero from each team instead of 1 Hero from each team, any ideas of how I can do this please?
Here is my trigger:
Code:
PVP Event 1
Events
Time - Elapsed game time is 20.00 seconds
Conditions
Actions
Unit - Pause all units
For each (Integer A) from 1 to (Number of players), do (Actions)
Loop - Actions
Visibility - Create an initially Enabled visibility modifier for (Player((Integer A))) emitting Visibility across PVP Visibility <gen>
For each (Integer A) from 1 to (Number of players), do (Actions)
Loop - Actions
Camera - Pan camera for (Player((Integer A))) to (Center of PVP Visibility <gen>) over 0.00 seconds
Game - Display to (All players) the text: In 60 Seconds an it...
Wait 1.50 game-time seconds
Game - Display to (All players) the text: The winner of this ...
Wait 1.00 game-time seconds
[COLOR="Red"] Set PlayerGroup2 = (All allies of Player 11 (Dark Green))
Set PlayerGroup3 = (All allies of Player 12 (Brown))[/COLOR]
Unit Group - Pick every unit in (Units in (Entire map)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A Hero) Equal to True
((Picked unit) is A structure) Not equal to True
((Picked unit) is Summoned) Not equal to True
Then - Actions
[COLOR="Red"]Unit - Move (Random unit from (Units in Players West <gen> owned by (Random player from PlayerGroup2))) instantly to (Center of West PVP player <gen>)[/COLOR]
Unit - Set life of (Picked unit) to 100.00%
Unit - Set mana of (Picked unit) to 100.00%
Unit - Unpause (Picked unit)
Else - Actions
Unit Group - Pick every unit in (Units in (Entire map)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A Hero) Equal to True
((Picked unit) is A structure) Not equal to True
((Picked unit) is Summoned) Not equal to True
Then - Actions
[COLOR="Red"]Unit - Move (Random unit from (Units in Players East <gen> owned by (Random player from PlayerGroup3))) instantly to (Center of East PVP player <gen>)[/COLOR]
Unit - Set life of (Picked unit) to 100.00%
Unit - Set mana of (Picked unit) to 100.00%
Unit - Unpause (Picked unit)
Else - Actions
Custom script: call DestroyForce(udg_PlayerGroup2)
Custom script: call DestroyForce(udg_PlayerGroup3)
Wait 60.00 game-time seconds
Unit - Unpause all units
Item - Create Circlet of Nobility at (Center of Item Spawn <gen>)
I think the red bits are the problem, i just cant think of how to get around this.
Thank you and Respect,
(*$malli$*)