The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: Vipershark on August 03, 2009, 07:45:15 PM

Title: Need help with an event.
Post by: Vipershark on August 03, 2009, 07:45:15 PM
I'm making a game, and there is a part where an NPC comes up to you, talks to you, and then walks away.
I'm having a problem with it.

I set the move route for the NPC, so it walks up to my character and talks to it just fine. But the problem is, when I press the enter key to clear the message, the event restarts itself with the same walking path instead of the new one after it.

Basically what I'm doing is:

Set move route: This event
Wait for move's completion
Show text
Set move route: This event (which is a different movement path)

But the event won't go to the second move route, and instead restarts the ENTIRE event over.

What am I doing wrong, and how do I fix this?
Title: Re: Need help with an event.
Post by: Grafikal on August 03, 2009, 07:50:03 PM
Set it up like this::

Set move route: This event (wait)
Show text
Switch:(pick a number) ON

Then make a new event page in this event.

It's condition to be active should be:
Quote
Switch:(pick a number) ON
then as event commands, just make your move route there.

Also, just make sure you have the same graphic as the new event page too otherwise the NPC would disappear. This should fix it no problem.
Title: Re: Need help with an event.
Post by: Vipershark on August 03, 2009, 08:02:13 PM
Hmm... I did that, and set the second event page to run on Self Switch A. (I tried a regular switch, but self switch seems to have the same effect)

As soon as I press enter to clear the text box off the screen, another, blank, text box pops up and it won't go off the screen. I can't control the game from there. I set the 2nd page to autostart, but I'm not sure if that's correct.

I want the second page to start running as soon as the text box clears, but I'm not sure what to do.
Title: Re: Need help with an event.
Post by: Grafikal on August 03, 2009, 08:13:23 PM
Self switches in XP reset themselves, so when you leave the map and come back your event will be back to your first event page. Normal switches stay on until you turn them off.

This is almost hopeless lol. You really need to learn events 101. Never use Autostart unless it's a cutscene. It deliberately freezes the game to allow only that event to play. Always use parallel process. As I said.
Set it up like this::

Set move route: This event (wait)
Show text
Switch:(pick a number) ON

Then make a new event page in this event.

It's condition to be active should be:
Quote
Switch:(pick a number) ON
then as event commands, just make your move route there.

Also, just make sure you have the same graphic as the new event page too otherwise the NPC would disappear. This should fix it no problem.

There's no reason to be getting another blank text box if you did as I say. Erase the event if it continues and remake it incase you changed something you weren't supposed to. If you're still getting errors, then you haven't told me everything because what you're trying to do is the most basic of events.
Title: Re: Need help with an event.
Post by: Vipershark on August 04, 2009, 03:06:24 AM
Thanks, I got it to start moving now after I clear the box. (The first page is a cutscene until the text box is gone, but I want the game to continue going like normal as soon as it's off) Changing the second page to a parallel process fixed the problem, but now the event doesn't seem to want to obey its move route. It's supposed to walk down a certain amount of spaces then go to the left, but it keeps walking down and runs into a wall. I even changed it back to a normal switch, but nothing happened.


I didn't change anything else.
Title: Re: Need help with an event.
Post by: Grafikal on August 04, 2009, 03:31:20 AM
if the move route is off then double check to make sure commanded it the correct number of spaces?
Title: Re: Need help with an event.
Post by: Vipershark on August 04, 2009, 04:17:00 AM
I did. I even deleted the number of movements down to one space doen when a turn and ne space left, but it still continues walking down and into the wall.
Title: Re: Need help with an event.
Post by: Grafikal on August 04, 2009, 06:06:16 AM
Recreate the event in a new project. See if it still does it. Let me know.

Edit::
Actually come to think of it, I bet you still have the second page of the event set as parallel process too. Well shit son, you have to turn that off. duh. So you'll need 3 pages instead :)

Do your stuff on page one and at the end turn on a SELF SWITCH instead of a normal switch there, then on the second event page after you do your move route, turn ON a normal switch to activate a 3rd event page. That page should just erase the NPC if you don't want it anymore, or if you just want the NPC to be normal, then just make the event Player Touch or Player Action and what not.
Title: Re: Need help with an event.
Post by: stripe103 on August 04, 2009, 02:42:48 PM
Quote
Self switches in XP reset themselves
I believe you are wrong on that point, because none of my Self Switches is resetting themself after leaving the map.
At least not in my game...
Title: Re: Need help with an event.
Post by: Grafikal on August 04, 2009, 05:27:36 PM
Well I've heard from billions of other people that it does. It never has for me either. I've heard it does in VX too, but I know it doesn't in VX. I'm just stating popular opinion there. I probably should have mentioned it. Also, I was just trying to keep it safe for him incase for some random reason it does reset.
Title: Re: Need help with an event.
Post by: stripe103 on August 04, 2009, 07:24:04 PM
Well that's true
Title: Re: Need help with an event.
Post by: Kidfox70 on August 07, 2009, 11:29:27 AM
This is probly dumb, but does
"Wait for Move's Completion"
Mean the same as Proceed with movement? Sorry if this is a dumb question, Its that I have a hard time with this site and others because i end up haveing to translate alot of things. I have XP, but some times things are still different from other peoples, case in point...
"Wait for Move's Completion"
Title: Re: Need help with an event.
Post by: stripe103 on August 07, 2009, 07:11:41 PM
"Wait for Move's Completion" means that the selected route needs to be completed before starting next step.
Example if the event says following:
Code: [Select]
@>Set Move Route: Player
:               : $>Move Down
:               : $>Move Down
@>Wait for Move's Completion
@>Text: Hello!
@>

These lines is saying to the game:
Move the Player Down Two steps, and then execute the text message: Hello!


If the player is able to go down one step, but not the other, then the message won't appear and the events goes into a kind of lock, where you won't be able to do anything before the subject blocking the way is removed.

If "Wait for Move's Completion" dosen't exist the player will start to move at the same time as the textbox appears.
If "Wait for Move's Completion" do exist the player will move and not until the whole route is completed the textbox appears.
Title: Re: Need help with an event.
Post by: Grafikal on August 08, 2009, 01:31:18 AM
is there an echo in here?
Title: Re: Need help with an event.
Post by: Lazer Ki on August 08, 2009, 02:02:01 PM
I had this sort of trouble in rm2k(which is almost the same thing).

Yeah, I think you should set the number of spaces the NPC needs to walk away from the area, until he hits the edge of the map. Then wait for move's completion. Then turn a switch on, and then make a third page that will make the NPC dissappear.

I don't know if that helps.