Trigger:
- Untitled Trigger 010
- Events
- Time - Duel expires
- Conditions
- Actions
- Set team1[(Team number of Player 1 (Red))] = (Units in (Playable map area) matching (((Matching unit) belongs to an ally of Player 1 (Red)) Equal to True))
- Set team2[(Team number of Player 5 (Yellow))] = (Units in (Playable map area) matching (((Matching unit) belongs to an ally of Player 5 (Yellow)) Equal to True))
- Set random = (Random unit from team1[0])
- Unit - Move random instantly to (Center of arena1 <gen>), facing Default building facing degrees
- Unit Group - Remove random from team1[0]
- Set random = (Random unit from team2[0])
- Unit - Move random instantly to (Center of arena2 <gen>), facing Default building facing degrees
- Unit Group - Remove random from team2[0]
- Events
So basically that's my trigger. I didn't expect it to work when I made it and ofc it didn't work. I'm just wondering what have gotten wrong.
What I want the trigger to do is to take 1 random hero from each team and make them duel each other in the arena. The other players that don't get to duel will have their hero spectating the duel and when its over they will be ported back to their original position.
I "know" I did something wrong with the
"Set team1[(Team number of Player 1 (Red))]......" so maybe that could be the only problem hopefully
"Duel" is my timer to countdown to the duels btw.
And this trigger which I think should be working but I could use a second opinion.
Trigger:
- Untitled Trigger 011
- Events
- Unit - A unit Dies
- Conditions
- ((Killing unit) is A Hero) Equal to True
- (Number of units in (Units in arena <gen>)) Equal to 1
- Actions
- Wait 5.00 seconds
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Killing unit) is in team1[0]) Equal to True
- Then - Actions
- Unit - Move (Killing unit) instantly to (Center of spawn 1 <gen>)
- Else - Actions
- Unit - Move (Killing unit) instantly to (Center of spawn 2 <gen>)
- If - Conditions
- Countdown Timer - Start Duel as a One-shot timer that will expire in 30.00 seconds
- Events