#how to make it so it shows every player display name on a text in a room
1 messages · Page 1 of 1 (latest)
If you don’t care about brackets and commas
Get all players > to string
If you do it’s more complicated
how do you want it formatted?
PlayerA, PlayerB, PlayerC
PlayerA
PlayerB
PlayerC```?
The 2nd one that has
A
B
C
First, lets create a String Variable and rename it to PlayerNames
When we start, lets set PlayerNames to a blank string
After, we are going to run a For Each on Get All Players
On "Loop", check if PlayerNames is equal to a blank string
If PlayerNames is equal to a blank string, we are going to set it to "Item" converted to a string using To String
If PlayerNames is not equal to a blank string, we are going to set it to itself concatted with "Item" converted to a string using To String, with a separator of a new line
On "Done", PlayerNames will contain every players name assorted vertically (You can even turn this into a list with String Split if you wanted)
You can optimize this by instead of using If and Equals, using Value String Switch with a Default input and a blank input (If match is blank, use first value, else use second value)
@jaunty mural where blank string
jesus christ
what does the word "blank" mean
Empty?
yeah
""
Quote nothing Quote == empty string or blank string. Basically a string with nothing in it.
I have a free invention that builds the player name / account name lists and strings: https://rec.net/invention/4715871314229296441
@neat loom how u get it to connect to a text?
Either of the 2 string outputs, as inputs to Set Text.
You have to send power to the Exec to get it to process whatever thing you have connected to Player List. You can grab by role, or all players, or "people in trigger volume", etc.
Blank string means this " " the thing in the quotes
It's not that hard to read if you don't understand it read it a couple of times
It's a bit outdated but use this and a 30hz make sure the text us unsynced
#1098396612759396413 message
Also if you can't figure simple text out learn more cv2 before asking
Asking is a great way to learn things. No valid question should be mocked.
Get a to string a get all players a text and a event receiver on update 30hz connect get all players to the white port on the to string connect the purple port on the to string to the other purple port on the text and put the set text to the event receiver