How to get NPC to enter or leave an existing map during a cutscene?

IndigoDreamsArt

Villager
Member
Joined
Mar 15, 2021
Messages
11
Reaction score
1
First Language
English
Primarily Uses
RMMZ
Title pretty much says it all... I'm building a scene where my player character is already on the map, is looking for their friend, and goes to another part of the map to trigger another cutscene, in which the NPC she will have a convo with is supposed to enter the map and walk up to her. The problem is, I can only get the character to walk up to her if she is already on the map. It looks super weird having that toon already just standing there when the player is looking for her, haha.

For future reference, I would be interested to know how to have an NPC leave the map entirely after a cutscene as well.

Thank you so much!
 

ATT_Turan

Forewarner of the Black Wind
Regular
Joined
Jul 2, 2014
Messages
11,198
Reaction score
9,164
First Language
English
Primarily Uses
RMMV
My advice is to think less about the concept of NPCs - in RPG Maker, there isn't actually any such thing, there are only events that you've given graphics to. A chest, an NPC, a roaming enemy, a door, they're all just events.

So you would have an event that has at least two pages. On the second one, you set a condition (a switch, variable, self-switch, whatever) and assign it the graphic of the NPC you want. On the first page, you leave everything blank. Place it on the map wherever you want it to enter.

During your conversation, you'll use an event command to set the switch/variable that fulfills the event condition on the second page - that will cause the event to immediately switch over and gain the graphics you set there, causing the NPC to appear. You'll then use event commands to move it around the map however you like.

Leaving is the same thing in opposite - have a third page with another, different condition, and when you want the NPC to leave you move it toward the edge of the screen and turn on that condition.

There are many tutorials on events on YouTube and in these forums - here's one of them. It's labeled for RPG Maker MV, but the events work the same way.
 

IndigoDreamsArt

Villager
Member
Joined
Mar 15, 2021
Messages
11
Reaction score
1
First Language
English
Primarily Uses
RMMZ
This is excellent, and thank you so much for the tutorial for visuals as well. :)
 

Latest Threads

Latest Profile Posts


Main theme for a Start/Continue/Options screen after Title card
28 notifications, and like 30 emails. And I was only gone for six hours. Yeah, I think I'm done for the day.
Also, I think I have a not secret admirer. Hooray...
Working on a battle cutscene, needs some polishing, but I'm liking the result:

spriteMedalConfraternate.png
spriteMedalVulpis.png

Forum statistics

Threads
134,975
Messages
1,252,477
Members
177,844
Latest member
WayneF
Top