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
Veteran
Joined
Jul 2, 2014
Messages
7,555
Reaction score
5,324
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 Posts

Latest Profile Posts

Been hard at work trying to make more tactical aspects of the game a reality, if all goes well the Player, depending on the faction they choose, will;
Suffer little to no penalty for escaping battle.
Be able to manually speed up resource gathering.
Steal Special projects from rival Factions.
Slowly but surely the game dev streams accomplish the goal.... actually finishing the game. :LZSexcite:



Going to start in about 15 minutes or so for anybody interested. And of course you know you are, well at least you know now because it's been stated that you are, and obviously anything randomly stated on the Internet must be true right? :LZSwink:
Rag-Tag Team Unite!!!
Fantast4.png

The questionable end result of a fun shared desing challenge together with @spillycat xD
9 days left for Harold Jam... hope it's not too late to start gam mak

Forum statistics

Threads
129,753
Messages
1,204,837
Members
170,840
Latest member
PeachyNCream
Top