How do I have a text box change with # of players?

On a part of my map I have an arena where I want it to calculate how many players are in the arena. So when 0 players are in arena its going to say 0. When there is 1 player the text box says 1 player.
I need text box to say: (# of players) Players Remaining in Tournament
So when a player leaves or unalives that number goes down.
Could anyone help me out?

Sure, I can help!

You’re going to need to use the Blocks section within your text device. It should update when receiving on “start”, which should transmit from a lifecycle. Got it? Sorry if this sounds rushed, it’s how I talk.
Next, you’ll want to play down blocks so they look like this:

Set text | Create text with | get property | "players"
                            | " Players Remaning in Tournament"

Anything in quotes is a text block. Now, get a property device and name the property “players”. Now read this guide to finish setting up the player counter, and you’re all set!

Feel free to ask any questions and if you really need screenshots of the block code somebody will get those to you I’m just kinda lazy don’t take it personally.
Hope this helps!

5 Likes

For the player counter link there are no pictures and I don’t know what to do now. I don’t need any screenshots for block code as I have that down. Is there a way someone can provide screenshots for the live counter step?

update a overlay block code that is connected to a property which is connected to a counter (tell me if you want images for settings or have questions) Oh and have a zone in the arena area that updates the counter

Guide

The end result should look like this (you can easily change the overlay to a text box or remove it all together and just have the counter)

(You can also change all the channels and names as long as the corresponding channel or name also gets changed.)

Zone:

Counter:



Property:

Overlay:
The settings can be whatever but the code matters

5 Likes

Images will be best please.

And You don’t need the trigger loop

These are all great ideas but I need a text device to
update with # of players not an overlay.

Then you could just substitute the text for the overlay by using this block code in the textL


(It is literally the same thing)

How would you track the amount of players left

What do you mean?

1 Like

how are you tracking how many players are still alive in the arena where do you get that value

You have a zone in the arena that corresponds to a counter because whenever a player enter it increases and when a player leaves (KOed) it decreases therefore giving a accurate value of how many people are in the arena

you can always make a live player counter.

1 Like

That link has no pictures and I don’t know what I am making.

1 Like

Yikes. I would go into my map but it’s locked since I don’t have the season ticket anymore. I can TRY to make it again…

1 Like

You do the same thing that I did with the overlay but with the text (the block code is the same and you can mess around with the settings)

1 Like

I just tried to make what you suggested but as soon as a player unalived within the zone the # stayed the same. It did not go back down to zero.

1 Like

Just attach a wire repeater loop to the system. The lifecycle should wire to a wire repeater, which should wire to another wire repeater that wires to the relay that makes the text change again. The second wire repeater should also wire back to the original wire repeater.

2 Likes

That’s wierd 'cause when I tested it if a player get koed then it goes back to 1

1 Like

Hold on I don’t think you mentioned a relay in your first reply…
Edit: No It doesn’t look like it.

2 Likes