- Joined
- Sep 20, 2024
- Messages
- 31
Hi, I have a bug where 2 players that have the "new" player colors peach and emerald are not being added to a player group. All other colors such as blue, teal and light blue work perfect.
In Map Initialization I add all players to the "Players" player group:
For instance when someone leaves, peach and emerald don't receive resources from leavers:
Trigger when someone leaves game:
In Map Initialization I add all players to the "Players" player group:
-
Player Group - Pick every player in (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing)).) and do (Actions)
-

Loop - Actions
-


Player Group - Add (Picked player) to Players
-
-
-
Intro End
-

Events
-

Conditions
-

Actions
-


Player Group - Remove Player 18 (Peach) from Players.
-


Player Group - Remove Player 23 (Emerald) from Players.
-


Set VariableSet UnitGroup2 = (Units in (Playable map area) matching (((Owner of (Matching unit)) Equal to Neutral Passive) and ((Race of (Matching unit)) Equal to Human)))
-


Unit Group - Pick every unit in UnitGroup2 and do (Actions)
-



Loop - Actions
-




Unit - Change ownership of (Picked unit) to (Random player from Players) and Change color
-
-
-


Custom script: call DestroyGroup(udg_UnitGroup2)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Player 18 (Peach) slot status) Equal to Is playing
-
-



Then - Actions
-




Player Group - Add Player 18 (Peach) to Players
-
-



Else - Actions
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Player 23 (Emerald) slot status) Equal to Is playing
-
-



Then - Actions
-




Player Group - Add Player 23 (Emerald) to Players
-
-



Else - Actions
-
-
-
For instance when someone leaves, peach and emerald don't receive resources from leavers:
Trigger when someone leaves game:
-
Player Group - Pick every player in Players and do (Actions)
-

Loop - Actions
-


Player - Add (((Triggering player) Current gold) / (Number of players in Players)) to (Picked player).Current gold
-


Player - Add (((Triggering player) Current lumber) / (Number of players in Players)) to (Picked player).Current lumber
-
-
-
Player Group - Pick every player in Players and do (Actions)
-

Loop - Actions
-


Unit - Grant shared vision of Boss to (Picked player)
-
-
-
Player Group - Pick every player in Players and do (Actions)
-

Loop - Actions
-


Camera - Pan camera for (Picked player) to Point18 over 0.00 seconds
-
-
Last edited:





