I’ll help you out by creating a visual representation.
ok, Thanks!
Did every body leave?
I’m working on it don’t worry
oh yeah he is, he is just replying
by the way, the damage booster has a built in duration setting but I already assume you knew that.
Ok, not good. Anyhow, let me explain how I would go about doing this. @HiMoThYjustgoated welcome to this community! Seems like you are using a sort of psuedo-way of doing things. Here’s another way that I would prefer (but it is a little harder).
First
Get a game overlay device. Make it so it is in the top left, or wherever it should be. Next, set it so that it is not active on game start. Now, find blocks and go in the section called “Wire Pulse” Look under the tab called “For this device only” Find the “set text” block and drag it onto the main area. Next, get a block under the text section called “Convert numbers to text with commas” Now, get the subtraction block under the math tab and connect the two. In the first slot of the subtraction block, drag a get property block. To your right, type something like “timerprop” Now, in the second slot, put the number 1 (use the block in the math tab for it). That is all the block code you will need! Looks something like this:
Wait! That should be a one not a 20.
Second
Now, have a repeater that runs 20 times, once every second. Have a ko manager or lifecycle to determine when a player knocks someone else out. Other than that being connected to the counter, have it connect to the game overlay, looking something like:
When event occurs → Wire pulse
Third
Make sure your counter has a target of 0. When target reached, broadcast “nomoretimer” Then, have a trigger receive that channel, and in blocks, make something that says: Set property (timerprop) Value: 20. Finally, get a property device. Set it to be a number with a default of 20. Make sure the name is “timerprop”.
That should be all! Sounds a lot harder than it is.
yeah, put a duration of 20 seconds
Counter
Repeater
Wire
Overlay
click the ‘blocks’ button under the Options button to the left of the menu
I hope this isn’t too overwhelming!
Please mark any of these as a solution once you find one that you like!
oh wow, thats a lot!
Yeah, sorry! Just try and take it piece by piece, starting by laying out all the devices shown in the first image, ignore the damage booster
ok I will just put a solution
This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.