how to run a common event automaticly whenever a variable changes

Hi,

I want to meke a few common events run automaticly when some variables change.

For example, when the variable[1] changes, the common event[1] will be triggered,

and when the variable[2] changes, the common event[2] will be triggered.

There are many places where these variables will change, so I wan to use a plugin to achieve this.

I tried to use the plugin CTB_onChangeVariable, but the plugin only run the last event in its list. (Perhaps it's because I didn't use this plugin correctly)

So anyone knows how to achieve it with/without plugin?
You could do this without a plugin by having a parallel process common event which sets an array of variable IDs to monitor, checks whether any of those variable values are different from a "last value" key-value object where the key is the variable ID and the value is the value, if they are then calls the common event with a matching ID, and then sets the last value of each variable in the object to its current value.
Could you try his ObjectsEx plugin? I think it's newer

Otherwise I have a Japanese plugin that will do it

Original thread: https://forums.rpgmakerweb.com/threads/how-to-run-a-common-event-automaticly-whenever-a-variable-changes.159749/