RPG Maker MV

juggernaut2k

Warper
Member
Joined
Mar 22, 2016
Messages
2
Reaction score
0
First Language
English
Primarily Uses
Can anyone tell me how to have an NPC block the main character from going down some stairs and will only move after the main character speaks to another NPC first? I'm a beginner and I get how to do switches. I just can't figure out what to do in what I asked. Thanks in advance.
 

chalkdust

Resource Staff
Restaff
Joined
Mar 23, 2015
Messages
360
Reaction score
556
First Language
English
Primarily Uses
RMMV
There are endless ways to do this, but the best method depends on some details.

Most importantly:


Do you want the stair-blocking NPC to remain beside the staircase or leave permanently?
Do you want to watch the NPC move, or will the move occur out of frame?


Do you want the NPC to move automatically or only after "telling him" that you talked to the other guy?


Will you be able return to the same staircase later (so it needs to permanently stay clear) or is the area closed after leaving it?
 
Last edited by a moderator:

juggernaut2k

Warper
Member
Joined
Mar 22, 2016
Messages
2
Reaction score
0
First Language
English
Primarily Uses
Thanks for the reply. Here is how I'd like the scenario to play out...


The Hero tries to enter a dungeon. The NPC prevents him unless he gets permission from another NPC on another map. Once he speaks with that NPC the character that blocked his entrance will still be there but when the hero speaks to them the NPC acknowledges that he got permission and then moves out of the way. The hero does what he needs to do in the small dungeon and when he returns that NPC is waiting for him and then joins his party.
 

chalkdust

Resource Staff
Restaff
Joined
Mar 23, 2015
Messages
360
Reaction score
556
First Language
English
Primarily Uses
RMMV
Ok, here's what I'd advise:


First, make sure you understand the difference between a switch and a self-switch. You'll use switches to pass information from one event to another, while self-switches can be used within a single event to keep track of its states.


1) On the first page of your NPC1, have the dialogue telling the player to go get permission from NPC2.


2) When you get permission from the other NPC2, you need to turn on a "Permission" switch.


3) On the second page of your NPC1, set the Page Conditions (on the left of the event window) so that the page will be active when the "Permission" switch is on. This is where you put your dialogue to acknowledge and then Set Move Route to get out of the way. Note that this NPC will snap back to the original position when you leave the map (unless you use a script to save its position), so you should flip a self-switch and create a new page that will handle moving out of the way if you want to exit the dungeon before completing it. (Add a conditional branch to determine your x,y position to prevent the NPC from moving more than once and running into stuff.)


4) When the dungeon is complete, you need to turn on a "Mission Complete" switch.


5) Make another page on NPC1, set its Page Conditions to be active when "Mission Complete" is on, and put whatever dialogue you want and add the character to your party.


6) Finally, flip a self-switch and create an empty page for that self-switch so the event permanently disappears from that location.


Those are the major steps. There are of course some intermediate bits, depending on what sort of flavor you want to add to the encounter, but that should be enough for you to figure out the rest.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top