#Check if all have tag

1 messages · Page 1 of 1 (latest)

fair steeple
#

I have a room and I'm modifing it rn, how to I make it so it checks if any player in the room has a tag then the text will say something for everyone if true, and something else if false.

radiant scaffold
#

[Event Reciever] on CheckPlayers ->
[Boolean Variable] on TagPresent = false ->
[Get All Players] -> [For Each]

on the Loop exec: [Player Has Tag] -> [If]
True -> [TagPresent] = true
Else -> nothing
[If Value] on [TagPresent] -> [Player Show Subtitle]

On the Finished Exec: do nothing.

#

That will display a message for each player that is synchronized, but the message sent will be different if TagPresent is true.

#

You can make it display an asynchronous message to each player based on their tag by removing the [If Value] on [TagPresent] and the [TagPresent] variable entirely, turning the [If] into an [If Value] on [Player Has Tag] and connecting that to the [Player Show Subtitle]

leaden ember
#

Or you can save much, much more CPU with this:

#

@radiant scaffold @fair steeple

#

You can even just configure the first Event to "All" and attach the Subtitle to the Then