The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: Eggplant Wizard on January 03, 2013, 01:27:39 AM

Title: RPGM2003: Problem When Re-entering Room. [SOLVED]
Post by: Eggplant Wizard on January 03, 2013, 01:27:39 AM
I have an event set up where this guy stands in front of a door. You can ask him to move, and he moves.
The problem is that, if I ask him to move, then re-enter the room, he goes back to his spot in front of the door.
If he moves, I want him to stay there. I feel the answer to this is simple, but I can't see it now.
Title: Re: RPGM2003: Problem When Re-entering Room.
Post by: bluntsword on January 03, 2013, 07:04:57 PM
The answer is simple, you're right!

What happens is the event gets "reset" every time you reenter the room, going to its starting position.

What you need to happen is to have a second event, one right where you wish the man to end up standing. Have this event be triggered by a switch, let's call it "he moved."

When you first talk to the man and he moves, don't worry about turning that switch on. Instead, put the trigger to that in the teleport. Have it turn on right after you teleport out of the room.

Now what will need to happen is:

The original man event will need a blank page (with it set to "below heroes") and have the conditions be when  the "he moved" switch is on.

The new man, who is in the place you wish him to stay, should have a char set to the man, and have conditions also be that "he moved" is on.

Thirdly, make the teleport from the room have a new page, also with "he moved" as the condition, with just a teleport and no switch being turned on.

That way, the event that is in the way will now be blank, the man who moved will be a new event standing out of the way, and the teleport will do only what you need it to from this point on.

Clear as mud?
Title: Re: RPGM2003: Problem When Re-entering Room.
Post by: Eggplant Wizard on March 22, 2013, 06:03:56 PM
That helps. Thank you very much!