Check if a variable gets updated???

I'm creating an event that the player can interact with which causes the event to be deactivated, however I want the event to be re-activated when a variable gets increased, but I have no clue how to check for if the variable was updated. So could there be a way to check if the variable was updated? (also the variable can get increased multiple times, and each time it does increase, I need the event re-activate.)
Set a second variable equal to the main variable's original value.


If it can happen any time during gameplay, set up a parallel common event with a conditional branch that checks whether the second variable's value is still equal or lower to the original value. Otherwise, just link the event that updates the original variable to the branch to check if it's still the same or not, and then re-set both variables so it can be used again.
much simpler: you as the developer decide where and when the variable gets updated.


So go to that code where the variable gets updated, and add another command there to activate the event again.


no need to check or store variable values or parallel processes
Do you have multiple places where you change the variable?


If so, consider calling a common event there instead, and create common event with the code @Andar talks about.

Original thread: https://forums.rpgmakerweb.com/threads/check-if-a-variable-gets-updated.70942/