List players

D.K.

New Member
Reaction score
11
I need a trigger that lists all the players that is sharing units with a specific player. However, I want it to list with commas instead of a long list going down.

Ex: Red, yellow, and green has control of blue

Then it will game display this:

"Blue is currently controlled by: red, yellow, green."
 

thewrongvine

The Evolved Panda Commandant
Reaction score
506
Uh, when does it show this? At the game start? or like when you actually share control...
 

Chao

Setting sail for fail in the sea of lame.
Reaction score
63
That's not that hard, actually!
Use .... oh gosh.. I don't have WorldEdit in front of me...
But basically what I do is use the command to add an additional string and add the number you need, accounting for minor puncuation (you'll need an additional string at the end for punctuation, for example).
For what you have their you'll need strings for:

Blue (Convert player name to string)
Text (is currently controlled by: )
Red (is currently controlled by: )
Text (punctuation)
Yellow (is currently controlled by: )
Text (punctuation)
Green (is currently controlled by: )
Text (punctuation)

I know that my message is a little obscure, but whenever you're using text, just take into account how many strings you need. In your case, 8!
 

Chao

Setting sail for fail in the sea of lame.
Reaction score
63
Like I said, if I were at home, yes...
It's contacenate strings, or something like that!
You need one every time you want to add something to a string.
 
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