Is possible for Npc see and react to activation of switch?

I want make that the npc see the Player and when the npc see a switch activate but if already activate than He Don t should react

z.b the Player Steals something and the npc Sees but if the Player did steal already but the npc did not see that He Don t react

I hope you can help me
You would just put a conditional statement on the steal action to check if the nearby NPC is facing in the direction of the player, toggle a switch or the NPC's self switch.
You can use conditional branches or more than one event pages for this. Organize things properly for it to work right.

If using more than one page, you need to pay attention to the priority of the pages. Can you make it more clear about what you want to do?

Original thread: https://forums.rpgmakerweb.com/threads/is-possible-for-npc-see-and-react-to-activation-of-switch.170319/