Off and on common event

Basically I am trying to create a common event that checks if a switch is on. And if it is on turns it off. Or if it is off turns it on. Basically light on. Light off. I have used conditional branches but I can't seem to get it to work wondering if anyone has a working example or a script call
How are you using the common event? If you are using it wrong you might cause it to just constantly turn the switch ON and OFF... EDIT: Post screenshots 😀
You might want to look up some eventing tutorials on YouTube and follow through them, because what you're asking is extremely basic - in fact, it's exactly what you said in your post:
Conditional Branch -> Switch Light is ON
--Control Switch -> Light -> OFF
Else
--Control Switch -> Light -> ON

So I'm not sure what you were missing there or why you might need a script call for that 😉

Good point from rpgLord, if that's what you have, then your logic is correct and you need to doublecheck whether you're calling that event correctly.
You might want to look up some eventing tutorials on YouTube and follow through them, because what you're asking is extremely basic - in fact, it's exactly what you said in your post:
Conditional Branch -> Switch Light is ON
--Control Switch -> Light -> OFF
Else
--Control Switch -> Light -> ON

So I'm not sure what you were missing there or why you might need a script call for that 😉

Good point from rpgLord, if that's what you have, then your logic is correct and you need to doublecheck whether you're calling that event correctly.
It is evented right. But I will look up some tutorials. It is most likely issues with the plugin commands. Thanks for clarification.
It is evented right. But I will look up some tutorials. It is most likely issues with the plugin commands. Thanks for clarification.
Can I see how your common event looks?

Original thread: https://forums.rpgmakerweb.com/threads/off-and-on-common-event.149944/