Help with player leave

tork

New Member
Reaction score
2
How can you make it so when a player leave it says they left and there name is the color of that player.
ex.)Player 2 Leaves. Its says (players Name and the color so for player 2 that would be blue) has left the game.?

Thanks for your help:)
 
Reaction score
341
Trigger:
  • Events
    • Player - Leaves the game
    • Conditions
    • Actions
      • Game - Display to all players the text (PlayerName(TriggeringPlayer()) + Has left the game


For the color you need to store all the players colors in a variable then add it to the string.
 

tork

New Member
Reaction score
2
For the color you need to store all the players colors in a variable then add it to the string.

How Would i do this:nuts:
sorry kinda new to this
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Here:
NOTE: This is only for eight players;
For more, use this to get the players color codes.

Trigger:
  • Variable Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set inGamePlayers = (All players matching ((((Matching player) slot status) Equal to (==) Is playing) and (((Matching player) controller) Equal to (==) User)))
      • -------- Player Color Settings --------
      • Set colorGold = |cffffcc00
      • Set colorPlayers[1] = |c00FF0303
      • Set colorPlayers[2] = |c000042FF
      • Set colorPlayers[3] = |c001CE6B9
      • Set colorPlayers[4] = |c00540081
      • Set colorPlayers[5] = |c00FFFC01
      • Set colorPlayers[6] = |c00fEBA0E
      • Set colorPlayers[7] = |c0020C000
      • Set colorPlayers[8] = |c00E55BB0

Trigger:
  • Player Leaves
    • 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
    • Conditions
    • Actions
      • Player Group - Remove (Triggering player) from inGamePlayers
      • Set tempGroup = (Units owned by (Triggering player))
      • Unit Group - Pick every unit in tempGroup and do (Actions)
        • Loop - Actions
          • Unit - Remove (Picked unit) from the game
      • Custom script: call DestroyGroup(udg_tempGroup)
      • Game - Display to inGamePlayers the text: (colorPlayers[(Player number of (Triggering player))] + ((Name of (Triggering player)) + (|r + (colorGold + has left the game!|r))))
 

Aiden

Member
Reaction score
0
Trigger:
  • Events
    • Player - Leaves the game
    • Conditions
    • Actions
      • Game - Display to all players the text (PlayerName(TriggeringPlayer()) + Has left the game


For the color you need to store all the players colors in a variable then add it to the string.

Sound so easy :) !
but i cant add + Has left in the action, anyone know?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top