Problem with repeating event

At the beginning of a map I have an autorun event that call a common event.


The common event displays some text then erases the event so it happens once only, so far so good.


But under certain circumstances when the player exits the map, instead of going to a different place he gets moved back to the beginning of the map, but the event doesn't trigger again. 


How can I make this happen?


Is there a reset map command or similar?
You messed up your event code, and we need to see screenshots of it to be able to tell where. Here are a few tips:


erase event only works until a map reload - to permanently stop an autorun, you need to switch it off (usually with a self-switch, but that depends on the cutscene)


So by default, the maps automatically reset on entering - but the switches and variables do not reset. To do that you would have to set them to old values manually.
Edited with screenshot instead of text.


Common event trigger.png is the trigger that call the common event upon entering the map


Common event.png is the event itself.


Everythign works the first time you enter the map, but not when you restart it after a "move player location" event.

Common event.png

Common event trigger.png
no screenshots showing up for me
Edited now.
@Automageddon


those screenshots are absolutely useless, because they don't show the entire events.


Please do NOT crop screenshots, the properties outside the content area are often more important than the content itself - especially in a case like this.


You have problems with the events not being correctly triggered, and cut away the information like what the trigger is, what event pages there are and so on.


Besides that, I don't see any reason to use a common event here - why did you do that?
Well, there's 23 maps that require the same message to be triggered under exactly the same circumstances, as the text might change, I'd rather change it once.


Full screenshots attached.

Screen Shot 2017-01-14 at 12.00.04.png

Screen Shot 2017-01-14 at 11.59.54.png
A called common event should have no trigger - the autorun trigger on the common event is for cases where you want to start it without it being called from somewhere else.


Set trigger to "none" on the common event and it should work correctly.
I just tried and the issue still happens.


The first time I enter the map the event is triggered correctly, but after the player is moved back to the starting position after a "transfer player" command, the common event is not triggered. It only triggers if the player is moved to a different map, but I need it to retrigger even it it goes back to the same map.


The action flow is something like this:


Player wakes up in map 1


message is triggered here


Explores the map freely


Triggers the exit:


If he has done action X, moves to map 2, otherwise move back to starting position on map 1 and repeats.


It all works, and everything flows, but I can't find a way to correctly retrigger the event after the player is respawned to the same map.


I use to use different contact triggers under the player, so that they would be triggered then disabled after he moved, but I want the message to be triggered as soon as the player is respawned.
The first time I enter the map the event is triggered correctly, but after the player is moved back to the starting position after a "transfer player" command, the common event is not triggered. It only triggers if the player is moved to a different map, but I need it to retrigger even it it goes back to the same map.



Then your problem is that you didn't understand the erase event command.


A transfer player command on the same map does not reload the map - but only on reloading the map, erased events are restored.


You NEED to leave the map and return to it from another map for the original map event to be restored after the erase event command. The common event isn't called because the map event to do the calling has been erased by the same common event.


So if it happens on the same map, you're better off not to erase it, but to switch it off with a general switch and have it switched back on at need.

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-repeating-event.73597/