Hey! , I made this up on my own And its like a heating system, This uses properties as stats. This guide gives Information to make it so that if it depletes to 0% you Go to the team spectator and if you’re near a fire It I’ll warm you up and increase. Some other Info will be included
All Devices
Zone
A couple of triggers
Property
Game overlay
A lifecycle
Checker
Team switcher
First Place down a zone, then click on it and find “when player enters zone transmit on” and put in there “Heat increase” Next go right below it and Put “Heat decrease”
Next Place down two triggers, Click on one and put under “Trigger when receiving on” Heat increase. Right above it Put 'Heat increase #2"
Go over to the other Trigger and put for the top 2 “Heat increase #2” and make the delay every one second Once you’ve done that place down a property Rename it to Heat and change it to Number instead of text and set the default to 100.
Go to that 2nd trigger again and find blocks in the top right corner of the screen, Once you find that click the first box and copy the following blocks below
Place down the game overlay and find “Overlay text” and set it to “Heat: 100%” (Emoji is optional) and make sure the type is set to text!
Go to the same game overlay (if you’re not already there) and find “blocks” click that and find the first box and click it, and set the channel to Heat decrease . Now with that copy the following blocks below.
First place down a lifecycle that listens for the game start and make it transmit on “Start Game”
Now it’s time for it to actually go down, Place down 2 triggers, click on one and find “When triggered transmit on” and put there “Heat decrease”, right below it put “Start Game”. and make sure the delay is 1 second. Go to the other trigger and put for both top 2 bars put “Heat decrease” and make it deactivate when receiving on Heat increase. And make it activate when receiving on
“Heat decrease”. Back to trigger that makes it go up the 2nd trigger and make it activate when receiving on “Heat increase” and deactivate when receiving on “Heat decrease”.
And now for the 2nd to last step, the cap! this will just make sure that the stat wont go over 100%
First grab a checker and make it so that it checks for the value of a property and if its greater than 100 and for if the check passes make it transmit on “Check Passes” make it check when receiving on repeat.
Then grab a trigger that triggers when receiving on “Start Game” And when triggered transmit on “Repeat” Now place down another trigger that Triggers on "Repeat and When triggered transmits on “Repeat” with no delay as well.
After you’ve done that Place down one more trigger that triggers when receiving on Check Passes
And find blocks click it find the first box and click it and then copy the blocks below.
And the final step is the part where if it goes to 0 you Become a spectator!
First place down a trigger that Triggers on “Start Game” and when triggered transmit on “Repeat #2” Place down one more trigger and then for the top two put “Repeat #2”
After that create a team switcher And make it switch the team when receiving on “Spectator” the team to be switched to will be spectator
Then go back to the 2nd trigger and go to blocks and copy the following blocks.
And lastly wire up the zone for where if they leave it triggers it to the 1st trigger that makes it go down.
Now you’re done! it should rise once you’re in the zone and deplete once you’re out! and should not go over 100% and you’ll Go on spectator team once it hits 0%
You can also change “Heat” to whatever you want I just used it for an example.
This took a long time to make so I hope this helped!