Event Question

This is probably a very minor problem, but I somehow just can't get behind it.


Before I elaborate: I'm a complete Newbie, so please have mercy with my might stupid question.


So, what I want to do here is, when the player steps on Nr. 1, the Guard nr. 2 runs to position nr. 3 and asks the player what he wants.
The player then can select between two options: "I want to pass" and "Nothing".
If "Nothing" is selected, the guard holds his position at nr. 3 as long as the player is active on this map and tells him to frick off.


If "I want to pass" is selected, the guard asks the player about a special permission (key Item).
The player then can select "Here it is" or "I don't have a special permission"


If the player selects "I don't have a special permission" or "Here is is" and does not have the key Item, the guard will also hold his position nr. 3 and tells the player to frick off as long as he is active on the map.


If the player selects "Here it is", and actually has the key item in his bag, the guard will move back to position 2 and tells the player that he can pass (The event on nr. 3 itself is just a simple door event, it has nothing to do with the actual problem).


The problem I have is, everytime the guard tells the player to get lost, it works fine. When he leaves the map, the guard is back at position nr. 2 and the process starts over again when the player steps onto nr. 1.


But If the player does pass and leaves the map, the guard just stays at Nr. 2 and does nothing anymore. No matter how often I leave the map. (He is supposed to ask me again)


Does anybody know what I did wrong ???


Unbenannt.PNG


Unbenannt2.PNG


Unbenannt3.PNG


Unbenannt4.PNG


Unbenannt5.PNG


Unbenannt6.PNG


Unbenannt7.PNG
1) switches keep the status even if you leave the map. If the guard doesn't start from the beginning, then there is one switch you didn't set back to the original status, so the guard keeps the changed behaviour.


2) you should have the entire sequence controlled by the first event. Using switches to trigger autorun events is a very bad method as it will create timing problems and make bughunting more difficult.


Simply remove the control switch from the first event and copy the entire second page of the guard event into the first event.


Remember to swithc the set move route command to move the guard event instead of "this event" to remote control the guard (dropdown top left in the set move route)


Then rebuild the rest of the sequence from there.
Turn a SwitchX On the Moment before the Player passes the guard and geting Teleportet to the Map that was protected by that guard.


Create a last Eventpage for your Pos 1 and Pos 2 Events which have the condition SwitchX is On.


Thatway it should not repeat after completing the Stuff.
1) switches keep the status even if you leave the map. If the guard doesn't start from the beginning, then there is one switch you didn't set back to the original status, so the guard keeps the changed behaviour.


2) you should have the entire sequence controlled by the first event. Using switches to trigger autorun events is a very bad method as it will create timing problems and make bughunting more difficult.


Simply remove the control switch from the first event and copy the entire second page of the guard event into the first event.


Remember to swithc the set move route command to move the guard event instead of "this event" to remote control the guard (dropdown top left in the set move route)


Then rebuild the rest of the sequence from there.



That worked. Great!


Thanks for your help!

Original thread: https://forums.rpgmakerweb.com/threads/event-question.62551/