#detect if a number goes up

1 messages · Page 1 of 1 (latest)

rapid pagoda
#

Whenever u reward number or have an event receiver 30hz make a “equal to”

#

Or a “greater or equal to” chip

#

Then put the result into an if chip

#

Do it over and over or if u want it so that whenever they get let’s say 3 it sends an exec to what 3 shud do use an “execution int switch” I pretty sure it’s called

#

So u want add 1

#

Use an add chip

#

I don’t think I do

patent tree
#

Okay so

rapid pagoda
#

Ok I get u

#

So if it goes down u want something else to happen

patent tree
#

In a nutshell:

2 int variables
Save the Current into Last
Check if Current is Greater Than Last
If so, then do this
If not, then do this

patent tree
#

Connect the output int from Current, to the input int from Last

#

When you execute Last, it will what Current is into Last

#

On the output execution from Last, check an If for if the Current is Greater Than Last

#

Variable names..

#

Yes, cause they are 2 separate Int Variables

#

Whenever you want to check if the next number is bigger than the Current

#

By executing it?

fervent field
#

cant you just use the event reciver on int variable changed then a if and a equals

patent tree
rapid pagoda
#

@split verge u want to make an “int variable” and set it to 0 when room loaded.
Then clone that variable and connect the output int into the less or equal in the bottom half

After the if is ran into the ja variable u want to execute into another clone of that int variable and link the connect “get count” into the input int

patent tree
#

But in a nutshell for events:

Event Defintion with an Int
Event Sender to send Int
Event Reciever to recieve

On Reciever, check if the int added onto your Variable is Greater Than the Variable, if so, then Add to Variable

rapid pagoda
#

@split verge want me to join and do it cuz explaining it here is so confusing

#

@Mosq1 is @

#

Give me a min to hop on

patent tree
hollow crater
#

Dude don’t do any of this 🤦‍♂️

#

It’s literally so simple

#

look for an event in a event reciever that looks like this “(INT VARIABLE NAME HERE) Changed”

#

obviously put your variable name for the “INT VARIABLE NAME HERE” part

patent tree
#

@hollow crater That just sends an execution for whenever the variable changes number. They want to know how to check if the Variable has increased.