An NPC shouldn't be there.

Hello,


In the first part of my game the main character has to go to town hall to speak with the mayor. He then has to go to the pub to recruit two recommended soldiers. When leaving the pub, the mayor wants to come on the adventure and joins the party. However I'm not sure how to make the mayor in the town hall disappear if the mayor is already in the party. Can anyone help?


Thanks
Set the event to parallel process... Then check with an if statement if Mayor is in party... Else you activate Selfswitch A and then open a new Eventpage and set as requirement selfswitch A and make your standard Mayor Event... I think this will be working


-Khayalan
Thanks, I figured it out. I made the mayor in the town hall only be there if switch one was on. Then I ran a parallel process that checked if the mayor was in the party. If he wasn't, switch one would be turned on, but if he was it'd be turned off.
There is no need for a prallel process for this.


Just turn ON a switch on the event where the mayor joins, and on his event in the town, set a blank page as the last page for his event, and use the switch you set as the condition.

Original thread: https://forums.rpgmakerweb.com/threads/an-npc-shouldnt-be-there.62842/