How do you make 2 counters compare there numbers and then the greater number causes something to happen?

I need this to make a voting system. Pls help if you can. I looked at other tutorials, but they don’t show how or don’t work.

To do something like this, it would require block codes and such.

When do you want them to be compared?

1 Like

Welcome to the community @MapleTree !
Make sure to read the FAQ and rules.
Ooh read this too!
How about a couple more! pew and pew

Here is another one of my mini guides for help topics

Equipment

2x property, each 10 memory (20 memory total)
2x counter, each 25 memory (50 memory total)
1x trigger, with block code 500 memory total (without block code 40 memory)

Total memory 570

Properties

Property 1


What it should look like
Screenshot 2025-05-15 8.41.06 PM

Property 2


What it should look like
Screenshot 2025-05-15 8.41.12 PM

Counters

Counter 1


What it should look like
Screenshot 2025-05-15 8.42.27 PM

Counter 2


What it should look like (the same as the last one)
Screenshot 2025-05-15 8.42.27 PM

Trigger

Settings


What it should look like
Screenshot 2025-05-15 8.44.20 PM

How to get to block code in a trigger (if you need it)


Block code

Compressed block code (suggest you use this instead)

Well, if your problem has been solved please mark a solution!
We just encourage people to mark a solution to clear the clutter in topics and avoid off topic discussions but feel free to ask questions or anything else!

How to mark a solution (if you need it)

5 Likes

I set a timer for 10 seconds for the vote, so 10 seconds.

2 Likes

Ok…
Do you know how to make a timer?
Assuming that you do when the counter reaches 10(target) broadcast “check counters”

Yes I know how to make a timer.

Ok, are you using a counter in the system too?

yes, so the counter will show how much seconds are left in the vote.

Oh, ok, so when the counter reaches 0(make that the target value) broadcast “check counters”

what do you mean by that

In the counter device there is a section called “Target” ok?
Go there and make the target “0” since you said how much time is left, which includes decrementing.
Then in the place where it says “when target reached broadcast” put in “check counters”

1 Like

@SeamlessMoon, if you mind me asking, so what if the voting system is large. like the block code you shared is so large if we used like 9 properties, i would suggest making another property called highest, and then write like so

if get property1 > highest
set highest to property1

something like that, wait i have block code.

just a question and a suggestion.

2 Likes

… cant you make property scope individual for everyone and compare them seperately to highest?

ok… well (I may or have understood you correctly) it could be like that, but the OP just requested for 2 counters to be compared… That’s all

@MapleTree If you have found a solution, please mark it

Could this maybe be closed instead?

…..
No seriously though, why would you send a guide that completely relies on its images except it doesn’t have any?
Also it’s basically solved except the op is not marking a solution