#Separate list objects

30 messages · Page 1 of 1 (latest)

quick belfry
#

How do I separate list objects to be displayed as a list instead of all in one line. I'm trying to list all players with a certain role.

manic token
#

To String just converts a list to [Index 1, Index 2, Index 3, Index 4, Index.....]

orchid grove
#

Man they changed that

manic token
#

they did recently

#

no longer outputs that garbage

orchid grove
#

It used to be ListObject358342732486

#

yeah

manic token
#

it still doesnt compare to just arranging the list yourself

orchid grove
#

true

manic token
#

whats cooler?

"[Player A, Player B, Player C]"
or
"3 Players in party
Player A
Player B
Player C"

quick belfry
manic token
#

You basically have iterate over each item and convert it to a string

#

All it is, is a For Each loop

quick belfry
#

Gimme a few and I'll get back in my room and I'll get a picture

#

I tried the for each loop but it just kept changing the text from player a to player b

manic token
#

you will need a way to format the player names

#

use a String Variable and String Concat

quick belfry
#

I have string format

#

Ok

#

I was reading about the concat when I was researching this

#

I'll give it a shot and see what I can learn

quick belfry
#

This is what I have

#

Ok, with the string concat I define the separator? Is that similar to the string split?

crude moat
#

It will add the separator in between both the string inputs

#

For example:

Input 1: Hello
Input 2: World

Separator: .

Result: Hello.World

You can place a space in there as well