A bug with transferring a player to their previous X, Y and Map ID

I have a small autorun script on a map which looks like this ...


Screen Shot 2016-06-23 at 00.17.18.png


However, what happens is when the player is transferred back (using the second Transfer Player action) it transfers it to Bear Paw Island 32, 36 - not where the player was (where the variables are set) ... 


Currently this event page is set to an autorun, but it seems as though the variables (X, Y and Map ID) are being overwritten with where I transfer the player to. 
i think this event repeat it self


Are you sure you checked self switch A in the second page of the event?!
So you transfer them to Bear Paw Island 32, 36 and then it transfers them to exactly the same spot again?  It sounds like that's what you're saying.  How do you know it's transferring them back?


Does it do two transfers, or only one?  After you transfer to a new map, all the events on the current map (including the one you screenshotted) are removed.  The commands after the transfer are not guaranteed to run, especially if there's a period of waiting.  So maybe it's only doing one transfer and leaving you there.


If it's actually doing two transfers, I'd question whether your event is on the map or in a common event, and if it's on the map, do you have a similar event on the second map that you're transferring to?  Do you have an event on that map (or a plugin) that's using those same variables, that could be changing them and you're not aware of it?
Yup, adding commands after a map transfer usually means it doesn't run - your events can stop working at that point basically.


So I'd have to ask; why transfer them to a map for a couple of seconds only to transfer them back again?

Original thread: https://forums.rpgmakerweb.com/threads/a-bug-with-transferring-a-player-to-their-previous-x-y-and-map-id.64014/