Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Help with an event.

0mgrzx

Member

Hi

I'm quite new to RMXP, and therefore I'd like some help with a specific event, which I'm trying to make.

When my character enters a specific map for the fir time, I want a npc to approach him, then welcome him once, and after that either walk around randomly or remain fixed in his position. While the event runs, my character shouldn't be able to move around, and proceeding through the event should be done by pressing enter (which is my action button, or whatever it's called).

Can somebody please help me with this?
Btw, hope my description is understandable.
 
You would have the NPC (or event), "Approach player" on an Autorun event. When the talking is all done you use a switch to turn the event off (the event should have a blank page needing a switch) and have the event do whatever you want it too.

This is probably easier to explain with pictures, but good luck anyways! XD
 

0mgrzx

Member

This is how my event looks:
Trigger: Parallel process
Autonomous movements: Approach
Event commands:
-Wait for move's completion
-Text
-Control self switch A =ON

The problem is that when I enter the map the text shows directly and my character can still move around. How do I fix this?
 
The text issue was caused by the fact that "Wait for Move's Completion" didn't have a "Set Move Route" in front of it. You should either use Set Move Route instead of using the Autonomous Movement, or, as Ms. Blossom said, use a Wait command.
 
Your event should look like this:

~First page of NPC Character~
The numbers are the event commands, the bullets are lines of one event command.
Trigger: Autorun
Conditions: None
Move Route: None

1. Set Move Route, This Event
•-----•Find out how many tiles left,
•-----•right
•-----•up
•-----•and down this event needs to go
•-----•and use the "Move Direction commands
•-----•to direct your character there.

2. Wait for move's completion

3. Show Text: "Insert your text here for
•-----•your NPC's introduction and welcoming
•-----•sequence. DON'T BE CLICHE'!

4. Control Self Switch, A = ON

~Second page of NPC Character~
Make sure you change the graphic for this page to the same as the previous one.

Trigger: Action Button
Conditions: Self Switch A = ON
Move Route: Random (Change the speed and frequency to whatever to want. Frequency = how much he moves.)

1. Show Text: "Hello there, \n[1]" (Make sure you don't use the \n[1] part if he never learned of your name; that would be creepy.)


~Results~

The NPC will walk over the the character, meanwhile the player cannot move, and he will display his message (or more if you included more than one "Show Text" command). After this, the player will be able to move, and the NPC will display the "Hello there, \n[1]!" text if the player presses enter on him.

^_^
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top