crazyperson
New Member
- Reaction score
- 0
Trigger:
- controlleave
- Events
- Player - Player 1 (Red) leaves the game
- Player - Player 2 (Blue) leaves the game
- Player - Player 3 (Teal) leaves the game
- Player - Player 4 (Purple) leaves the game
- Player - Player 5 (Yellow) leaves the game
- Player - Player 6 (Orange) leaves the game
- Player - Player 7 (Green) leaves the game
- Player - Player 8 (Pink) leaves the game
- Player - Player 9 (Gray) leaves the game
- Player - Player 10 (Light Blue) leaves the game
- Conditions
- Actions
- Set TempGroup = (Units in (Playable map area) owned by (Triggering player))
- Set TempPGroup = (All players matching ((((Matching player) slot status) Equal to Is playing) and ((((Matching player) controller) Equal to User) and ((Matching player) Equal to (Random player from (All allies of (Triggering player)))))))
- Unit Group - Pick every unit in TempGroup and do (Actions)
- Loop - Actions
- Unit - Change ownership of (Picked unit) to (Random player from TempPGroup) and Change color
- Loop - Actions
- Custom script: call DestroyGroup(udg_TempGroup)
- Custom script: call DestroyForce(udg_TempPGroup)
- Events
Here is the problem with the trigger:
The trigger is suppose to randomly assign ownership of the leaver's building to the remaining players beside 11,12. But it only assigns it to one person.
I would also like the trigger to only affect buildings not units like hero/builders.
Thanks in advance.