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.

NPC Permanent Position Retention.

Not really sure if this question has been posted yet. If it has then I accidentally overlooked it while looking for it. -_-'

Anyway,

Using RPG Maker XP;

I have this cutscene in which 3 NPC's move to a location (within the map), and stay there. Thats it, thats the cutscene. It takes place inside a house. So I leave this room and proceed further and whatnot. Now... when I re-enter that room with the cutscene, the 3 NPC's are standing at the original start point and not where they had walked to in the cutscene.


How do I make them permanently stay at the destination???


My bad if this question has already been asked, or doesn't belong here.


-A.M.B.
 
One solution would be to have events at the locations you want the NPCs at.  These events would be blank on page 1, but when the switch indicating that you'd left after the scene ended was turned on, they'd go to the second page, where they'd be the NPCS.  The original NPC events would, of course, change to a new page where they are blank.

Was that clear?  I can bash together some screenshots if it wasn't.
 
Unka Josh":3719e3fn said:
One solution would be to have events at the locations you want the NPCs at.  These events would be blank on page 1, but when the switch indicating that you'd left after the scene ended was turned on, they'd go to the second page, where they'd be the NPCS.  The original NPC events would, of course, change to a new page where they are blank.

Was that clear?  I can bash together some screenshots if it wasn't.

I think I understand.
Screens would be cool, if it's not too much trouble for you that is.  I kind of need all the help I can get since I barely started using this a few days ago. (Though I am picking up rather fast.) Thanks.
 
Well, if Unka's isn't working, there are a few other methods you can try.

1. You can create a Parallel Processing event that only activates when the cutscene is finished (use a Condition switch). In the event, use "Set Event Location" and move the events where you want them to be. Then use "Erase Event" and you're done.

2. You can install dubealex's "Memorize Location" script, it automatically saves an event's location if you use a certain call script. Useful if you have a LOT of event locations you want to set, but it's a bit confusing so you might want to download the demo for instructions.
 
Regi":10edeuv2 said:
Well, if Unka's isn't working, there are a few other methods you can try.

1. You can create a Parallel Processing event that only activates when the cutscene is finished (use a Condition switch). In the event, use "Set Event Location" and move the events where you want them to be. Then use "Erase Event" and you're done.

2. You can install dubealex's "Memorize Location" script, it automatically saves an event's location if you use a certain call script. Useful if you have a LOT of event locations you want to set, but it's a bit confusing so you might want to download the demo for instructions.

How do I "Move the events?"
Silly question, I know, but again, I am a noob when it comes to this. 

Scripts have been a bit confusing to me. I should check out the script tuts, but most of them don't really tell me how to use them or where to insert them. They just say "Heres the script." So I'm like.... o_O
But yeah. Thank you for your help.
 
Well, if you check the event commands, on the second page there's a "Set Event Location." There, you can choose the event you want to move, and specify the coordinates you want it to jump to. It's very user-friendly, the map even shows up so you can select a tile. Just try it, and if you still need help feel free to ask.

As for scripts, there's a script editor at the top, two icons left of the "Playtest" button. Toward the left are a list of scripts, you want to scroll down until you see "Main." Right-click "Main", and press "Insert." Now the right side is empty, that's where you paste the code. On the left side you can name the script.

If you're still a bit new, you should just try the event method. Good luck with it AlexanderBlade :thumb:
 
Regi":1e99w2wa said:
Well, if you check the event commands, on the second page there's a "Set Event Location." There, you can choose the event you want to move, and specify the coordinates you want it to jump to. It's very user-friendly, the map even shows up so you can select a tile. Just try it, and if you still need help feel free to ask.

As for scripts, there's a script editor at the top, two icons left of the "Playtest" button. Toward the left are a list of scripts, you want to scroll down until you see "Main." Right-click "Main", and press "Insert." Now the right side is empty, that's where you paste the code. On the left side you can name the script.

If you're still a bit new, you should just try the event method. Good luck with it AlexanderBlade :thumb:

Thanks a bunch, to both of you. Regi, your way worked flawlessly. Thanks a mill.

I have ... kind of a lot of questions regarding scripts and whatnot. I'll post them in the other topic cause I know I'm not supposed to ask script related stuff here.

But serious, thanks.
 

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