Trying to disable / enable an event with variables

So I'm trying to have this event stop happenning when I change a variable / switch.

What this event does is that it calls a common event that uses a plugin command.

This is the event I'm dealing with :

1595977197569.png

1595977223569.png



And the common event it's calling (the command basically stops everyone from moving while my player is not moving) :
1595977266672.png



I want to be able to enable / disable this event when I want but it doesn't seem to work.
Anyone have some insight here ?
It should work - IF the variable is handled correctly.
where do you change the variable? that is the important event, and you didn't include that in your post.
If you can use a switch instead of a variable, why don't you put a parallel common event with a switch condition?
So if the switch is on, you execute your condition statement. When it's off, the event will simply not run.

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-disable-enable-an-event-with-variables.124652/