Hello! I know events respawn once you reload a map but I was sure they stayed on the page where the self-switch was set.
See, I have a parallel process event that checks the region of the player and once done, it transfers the player to another map and finally the event goes to a second page with a self-switch condition. The problem is that whenever I enter the map I just left, the parallel process keeps on checking the player's region even though that same event already passed to a self-switch blank space.
Any thoughts on how to fix that so when I return to the map, the event stays non-active? I have other similar events with almost the same commands but here, I included the map transference, maybe is that what's killing the commands???
Does anything change if you move it above the Transfer Player command?
In any event command sequence, transfer player should be the last command.
That is because going to another map deletes all events on the current map, including the one with the transfer command. Which means there is no guarantee that any command after transfer is still executed.
Some commands will get executed but the rules for that are too complex to be explained without a good basis in programming, and it is safer to sort the commands to do transfer as late as possible in the sequence.
Isn't this just a problem with the event being a parallel processing event? If I recall correctly, unlike autorun events which will just kinda form a queue, parallel processing events will completely stop running after a transfer command, no matter what.
Edit: Switching event pages will also stop parallel processing events(doesn't matter if the event page doesn't do anything, it will stop it regardless.)
The only solution I could think of is to split the first command page into 2(so you would have three event pages), with the second event page being an autorun event that has the transfer and control switches commands.
and as I said that can only happen if something messed up your scripts.
So please list the scripts you added to the script editor
These results prove the following conclusions:
ONE of the autostart events stays in memory (even after a player transfer, for a while at least) but parallel events get stuck because they get replaced by the new map's list of events. Since they're parallel, the Game_Interpreter has no reason to keep a valid reference to any of them, halting execution abruptly and switching to a new list of parallel events.
One thing that I found interesting about parallel processing events is that they seem to stay loaded long enough to run one more command after a transfer event.
For example, if you have this:
Text A:
Transfer:
Text B:
Text C:
Text B will be displayed after the transfer event has finished, but Text C won't be displayed.
It has not been replaced before a frame has passed. So yes, it's possible to have had enough time to pass the text to $game_message, again a global variable available everywhere...
EDIT: Ok, seems I might be confused how events work, LOL. 😀
I'm confused by some of these posts. Isn't what Andar is saying completely right? There's no reason the transfer wouldn't activate if it's the last command (unless you've changed the engine behavior). And there's no reason to use 3 pages?
This thread is being closed due to being solved. If you need it reopened, report it to let us know why. Thank you!