If I'm understanding you correctly, I believe you use "Set Move Route" to have the NPC move, and then use "Control Self Switches" and turn self switch A on. After that, you create another page within the same event, and use the condition "Self Switch A is on" (don't forget to the leave the page blank).
I hope this helps! Good luck! XD