I have a question about something confusing

Is there any way that you can make if a counter has a higher value than the other counter, the property that it is managing can be shown in a text?

You could use a checker to see which property is higher (I think).

(wowow navy liked me for the first time I think)

4 Likes

Let me check, but would it show in the text is the real question

What do you mean? It’s displayed in a text somewhere?

Yes, the one with the highest value , the name of the property is shown in a text

New idea that I should have thought of before: use a trigger (or whatever block-code device you want) to compare two properties, and depending on which is bigger, smaller, or equal, it broadcasts to a channel.

2 Likes

You can use the set text (get property_) block to display properties in text. Have two separate blocks with different properties that trigger on different channels.

1 Like

Let me test it out rn4

Could you show me a picture, @wingwave ? (Im terrible at blocks)

image

2 Likes

ok so I did the blocks, @NavyCatZ and @wingwave but im confused what to do next. Do I wire it or smthing

Did you do the two blocks I mentioned in my comment?

1 Like

No, I didnt, I’ll do it rn!

Could you show me how that works in a picture, @NavyCatZ ?

image
Create two separate blocks with this same blockcode that are triggered on different channels. In the second block, type in the second property in the text block. The channel that triggers when property 1 is greater than property 2 should trigger the first blockcode that sets the text to property 1, and vice versa.

After you’ve finished with that, I’m assuming you want the text device to keep updating forever. Since you are using counters, you probably have property devices for both properties. Make both devices transmit on a channel when the property is updated, and make the trigger trigger when receiving on that channel.

1 Like

what do you mean by that? I have nothing that triggers it.

image
Press this button, set the channel to the one that sends if property 1 is greater than property 2. Put the blockcode in it, exit it, then press that button again and make it the channel that sends if property 2 is greater than property 1. Both of those channels are sent by the trigger.

that’s what i’m saying, @NavyCatZ . I don’t have a “channel to the one that sends if property 1 is greater than property 2”

It was in the first block code you made in the trigger.
image
Let’s assume the first property in the if statement is property 1. The first channel would broadcast on “set text to prop 1.” The second one would broadcast on “set text to property 2.”

1 Like

could you explain this more?
(sry my brain is not functioning today)