Help me no-one has given solution help

Don’t know why it is not working:

Block code of the popup
Screenshot 2024-10-04 11.01.18 AM

Wire from counter to popup

Counter page

Property

Trigger (Two)
Screenshot 2024-10-04 11.02.05 AM

Button (1 for now)

Counter 2

Popup
image
Screenshot 2024-10-04 11.22.07 AM
At first its header is 1

There is other code, but this is the part the is not working, I tested it and the other part should work.

For now I just have the button solution at admin.

The other code is two repeaters (I don’t want conflict about this) And then 1 counters that count to 30 end game and make barrier flash, everything resets on STOP O2 Disaster there are some triggers and wires that reset it on STOP O2 Disaster if reset on something else also.

This should be enough info please help I don’t understand.

2 Likes

What guide are you using? (If you are using a guide)

Not using a guide. I usually try being the lone wolf.

It (usually) works better.

What are you trying to do? Check if the number picked equals a random number?

It is trying to make it so after the impostor sabotages you press the buttons right six times and catastrophe… avoided.

What is the target value?

What sends out the message on channel “2”?

First counter target is
image

Second is
image
And when reached it broadcasts STOP O2 Disaster

Popup sends 1 and 2

Screenshot 2024-10-04 11.22.07 AM
but counter only goes to 1 so triggers send 1 on 2

When does the block code run? On a channel(if so which)?

It is on run wire pulse from counter one when target value reached.

What updates the property “numba”? Is it only the block code or something else?

So I think the problem is in the first counter. You can only have one target, so you need to figure out what button was pressed.

For the first counter, the target value should be one. The starting value of both the property and counter is 0.

When one button is pressed, it increments it 1 time. When the other is pressed, increment it 2 times.

When the target value is reached, set a 0.1 delay so it has time to increment 2 times if it needs to, then the if block runs,

If numba == 1, elif numba == 2. This will determine weather one is pressed over the other.

Hope you understand this! :smiley:

1 Like

Numba is created in the block code.

Wait so I need to set a 0.1 delay? where

Edit: Also while going through I found a copying mistake of counter 2 I am going to fix it also updates 1or2? going to see if this changes anything.

Target value reached >>> wire repeater w/ 0.1 delay

wire repeater w/ 0.1 delay >>> Run popup code

1 Like

Okay will test.

Doesn’t work…

What are the settings of the property “1or2?”?

There is not one I can set that, I realize though it kicks you out of the popup and makes you open it again and it will have the same number every time…