How to have NPCs detect if certain switches are on?

As above, im having trouble trying to figure out how to make NPCs react accordingly to if you have certain 'quests' or not.

Basically what im asking is if you accept a said 'quest' can you have them detect it (Instead of turning the switch On/Off or toggling ON/Off) so it responds accordingly.

Or should I use variables instead?
I'm not sure why you wouldn't want to use switches here. If all you need is for them to react differently depending on whether or not a certain quest is active then a switch is perfect. However, if you want them to act differently depending on which stage of a certain quest you're on (if you have a multi-part quest) then variables would be better.
You can make a event where it checks switches using conditional branches if Switch 1 is ON then this.. IF off then this etc? Variables would be a good solution also. NPC talks to old man, accepts Quest this then enables a switch by doing so, then you can just use conditional branches to detect if ON or OFF on your quest events etc it works fine.
Alright, ill give that a try. Ill get back to you if it works.
Also you can set preconditions on the left side of event pages.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-have-npcs-detect-if-certain-switches-are-on.129693/