#List offline people with a group in GUI?

1 messages · Page 1 of 1 (latest)

silent plume
#

Hi!

I want to create a list of my current team. How can I save their names to show them in a GUI without looping all offline player?

inner dome
#

save all the player names in a list when the team is created

#

{team.%team_name%::*} or something similar for a list ( the :: indiciates it being a list and the * signifies all values within the list

From there I'd assume you'd just display each value in the list as a head or text

silent plume
near sorrel
#

send the list?

#

if by "different chat messages", you mean separating the players into different chat messages

#

either loop the list and send each value (loop {_list::*}: send "Name: %loop-value%")

#

or if its a string, split it into a list then do the same

silent plume
dry wigeon
#

use uuids

#

then parse as offline players

dry wigeon
#
# addto team

loop {team::*}:
  loop {team::%loop-index-1%::*}:
    broadcast "%loop-value-2 parsed as offline player% is on the %loop-index-1% team!"```
#

you can skip to just looping {team::potato::*}, but i looped {team::*} first so that if there were multiple teams for this example i would get the names of the teams

#

it basically

  • goes through each team (loop 1)
  • goes through each player in the team (loop 2)
silent plume
#

command /seeteam:
trigger:
send "1"
loop {team::}:
send "2"
loop {team::%loop-index-1%::
}:
send "3"
broadcast "%loop-value-2 parsed as offline player% is on the %loop-index-1% team!"

#

That´s my code rn

#

And there´s nothing happening after "2"