NPC help for RPG maker VX ace

OK in my game i'm trying to make a npc show up at my base once i Talk to them in another area of the map
switches.

When you talk to them in the other area, turn on a switch. On that event, have another page conditioned by the switch with no sprite, so the NPC disappears from that area. At the base, add your event with sprite, and condition it by the same switch.
You need two switches if you don't want the NPC to disappear just after you talked to him : one to activate the NPC at your base, and another one when you actually see the NPC at your base to make the original NPC disappear.

Here's how I'd do it. The first switch activates an autorun page on the NPC at your base, in there you activate the second switch. When it's activated the base NPC turns into its usual dialog stuff and the other on the map into an empty page. I like to do this with script calls of self switches to avoid wasting global switches :

First script call on original NPC :
$game_self_switches[[MAP ID (your base), EVENT ID (base npc), 'A']] = true

Turn the self switch A of this NPC on, so he'll say something else on a second page now that he's joining you.
Create an empty event at your base, and put this on a second page with self switch A as a condition :

2nd script call set on autorun :
$game_self_switches[[MAP ID (location of original npc), EVENT ID (original npc), 'B']] = true
$game_self_switches[[MAP ID (your base), EVENT ID (base npc), 'B']] = true

Create a third page on your base event with everything regarding the NPC on Action Button with a self switch B condition.
Create a third blank page on your original NPC with a self switch B condition.


If you want to do it the easy way, just add a screen fade out/in after the conversation, it will look like the NPC just leaves the map. Change the NPC graphic to an empty one/turn on sprite transparency between the fades, and then - only when your screen is back - activate the switch (or you screen will never fade in!). You can also physically move him out of the map/screen with a Move Route instead of a fade out/in and activate the switch after that. The activated state of the event should be a blank page.

The easiest easy way if just one switch, but it doesn't look good.
I figured it out Thanks for the help

Original thread: https://forums.rpgmakerweb.com/threads/npc-help-for-rpg-maker-vx-ace.80061/