Using variables to store players location, and return to that position?

Well, I am not sure even where to start with this one. Basically, I have a common event that, when called, turns the player's actor graphic into a different character. I want a dummy copy of the ORIGINAL character to be placed where you were standing when you activate the common event. After a short time, I want the player to automatically return to the original standing point, and remove the dummy event. 

I don't know where to go about doing this. 

Game_data_XY.png


Spoiler
common_event.png
You can set the variables to the player's map x and y values before you do the change. Just go to Game Data > Character (Player) > Map X/Y. At the end, you could turn on a switch to start a second parallel process common event that'll wait a certain amount of frames before transferring the player back to where they were.
That is what I can't figure out. 😛 How do I store the player location data in a variable, and then recall that information? I am at a loss.
I forgot to mention that you'll also need the map's id, but otherwise it's just:
g3kfnbZ.png

PiOPHTW.png

 
And moving an event is basically the same:
w2NyHcY.png
Control Variables lets you get the player's X and Y location.


Why didn't you just add this to the thread you already have on the subject, instead of making a new one?
I will give that a shot. Thanks, and I will let you know how it worked out. 

@Shaz: I get sidetracked, but I was on my way to ask for that one to be closed because it was a script request, and I figured out how to do it via eventing. I thought sidetracking threads was against forum rules. 
If it's the same thing, you can just say you realize it can be done with events and ask for it to be moved back to the Support forum.


I don't see your report to close the other thread. I can't even find it now. So I'll wait for you to report it, then I'll close it for you.

Original thread: https://forums.rpgmakerweb.com/threads/using-variables-to-store-players-location-and-return-to-that-position.37003/