Don’t know why it is not working:
Block code of the popup
Wire from counter to popup
Counter page
Property
Trigger (Two)
Button (1 for now)
Counter 2
Popup
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.
Slim
October 4, 2024, 3:14pm
4
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.
Slim
October 4, 2024, 3:20pm
6
What is the target value?
VALUEX
October 4, 2024, 3:20pm
7
What sends out the message on channel “2”?
First counter target is
Second is
And when reached it broadcasts STOP O2 Disaster
Popup sends 1 and 2
but counter only goes to 1 so triggers send 1 on 2
VALUEX
October 4, 2024, 3:24pm
10
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.
VALUEX
October 4, 2024, 3:26pm
12
What updates the property “numba”? Is it only the block code or something else?
Slim
October 4, 2024, 3:27pm
13
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!
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.
Slim
October 4, 2024, 3:29pm
16
Target value reached >>> wire repeater w/ 0.1 delay
wire repeater w/ 0.1 delay >>> Run popup code
1 Like
VALUEX
October 4, 2024, 3:41pm
19
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…