Can you make trigger block code RNG increment and decrement a counter?

Basically, I have an Random Number Generator within trigger block code, but is there a way to make it increment or decrement a counter?

2 Likes

Why do you need 6 options?
Make one option send a channel to increment.
Another option to send to channel to decrement.

2 Likes

Probably should have mentioned this before, my fault completely, but the point is I need to know how to make it increment and decrement by 10, 5, 1, etc.

2 Likes

uhhhh, problem is that a counter can only increment/decrement by 1.

I guess try channeling up to some repeaters that will then decrement the counter.
90% chance there’s an easier way tho.

3 Likes

If you don’t want to use block code you can just wire the trigger to the counter “When Triggered”-“Increment Counter”, and a wire repeater with a delay to repeat for a countdown.

4 Likes

What do you mean. When the trigger is triggered then it randomly does what?

1 Like

Ohhh, oh oh oh, I know exactly what you mean (I think, lol) You shouldn’t need a randomizer for this at all. Grab a property, and have that counter update the property. Then, when you want it to decrease/increase, just do the block code:

Set Property: [The Property You Just Made]
Value: [ [Get Property - Property You Just Made] + [5] ]

Or -5
Whichever you’re trying to do. Just have the block code run whenever you want the counter decremented or incremented.

Hope this helps, let me know if this isn’t exactly what you’re looking for. If not, go into a bit more detail on this whole mechanisms purpose.

2 Likes