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.

Moving an NPC to another Map.

Could someone give me an idea about how to do this? What I want to happen is I want a "new day" to happen when the Hero goes to bed at one point in the game. During the second day in his hometown, I want his Mother, who was previously sick in bed, to be walking around outside and NOT be in the bed anymore.

How would I do this?

Thanks for the help!
 

khmp

Sponsor

If the map is in fact being changed why not just copy the event from one map to another? One sleeps the other's outside able to interact with. Not sure why you would want to use a script for this.
 
I figured that, but how do I get the switch to execute without me having to go up to the NPC and press the "action" button? I want all of these changes to take place when my character wakes up.
 
Okay, I'll take a stab at this.  I'm doing exactly what you're talking about, on a slightly larger scale, in my current project.  So, I have a "chapter" variable, which goes up when you do certain things.

Then, on a given event, such as an NPC, I create several pages.  The later pages have conditions such as "Variable:  Chapter=2 or more."  On those later pages, I change the graphic, as well as what the event does.  Sometimes there's no graphic.

So, there's an event in your house that is the NPC of the player's mother.  Once the chapter is 2, the event goes to the next page, which has no graphic.  Look, mom's not home!

Outside, there was an event that was a blank graphic on Chapter 1.  But hey, now it's chapter 2, so it's on the next page.  Look, here's mom!

I'd post screenshots, but I have to go to work soon.  If I'm too confusing now, let me know, and I'll post 'em.
 

Nachos

Sponsor

Insted of Switched, he used variables, in some cases they are simpler.
But just, turn on the switch when your character is sleeping, and on the event where the mother is outside, add a page:

@Condition: [your switch] = ON
@Show text: Check it out! She is ok now!

??
 
I'm going to play around with it for a little bit longer, then I'll check back with you guys with my updates to let you know how it went.

I really appreciate the help, by the way.
 
Alright, I tried it out... and I got it to work for the MOST part, I just have one more bug.

When day 2 begins... MOM is walking outside now that she is better and out of bed. But if I go back into her room, she is still lying in bed until I go up and press the "action button" on her, in which case she then disappears. I'm not sure what I'm doing wrong.
 

khmp

Sponsor

Could you provide a demo if the following idea doesn't work.

Inside the house have a parallel process event that does this:
Conditional Branch Switch XXX is ON
  Set Move Route: Event YYY Through On, Graphic None
  Exit Event Processing
Else
 
End

Whenever Switch XXX is ON, Event YYY will for all intents and purposes be hidden from the user.

Good luck with it vVTalonVv! :thumb:
 
http://savefile.com/projects/808607947  Here is my game. Anybody that can take a look at it, possibly edit it and send it back to me, it would be appreciated.

RENEGADEOFBMX, I understand how that switch works, I just think that the way I have all my other switches set up its just a little confusing and I can't organize the events that are to take place. If it was simply just what you did, that is easy enough.
 
RENEGADEOFBMX":1so9ft3n said:
So, what do I have to do?
Just edi the switches and send it back to you?

You could do that.

Or take a look at it and let me know what is wrong. I've tried several different ways but I just cant seem to get the combo right.
 

Nachos

Sponsor

Hey.
I have something to ask you. Can I help you making this game, cos It seem you don't know how to place eventm, since I randmly teleport to a market, and the mapping isn't too good.
So, can I help you with mappiong an
d stuff, and upload it later?
 
You can help me out if you'd like. I've been looking to get a few people as a "team" to make this game.

((The reason that you randomly teleport to the town was so I could skip walking there when I wanted to test out the events in the quest and see if they all worked. It was only used as a shortcut))
 

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