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.
no screenshots showing up for me
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.