RPGM2003: Problem When Re-entering Room. [SOLVED]

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 83
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.
« Last Edit: March 22, 2013, 08:38:28 PM by Eggplant Wizard »
It's not what a man stands for that counts. It's what he falls for...

*
RMRK's dad-in-training
Rep:
Level 71
Busy Husband, Dad, and Youth Minister
GIAW 14: 2nd Place (Easy Mode)2014 Best WriterBronze - GIAW 11 (Normal)Secret Santa 2013 ParticipantFor taking arms in the name of your breakfast.2012 Best NewbieContestant - GIAW 9
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?

**
Rep: +0/-0Level 83
That helps. Thank you very much!
It's not what a man stands for that counts. It's what he falls for...