Im just going to leave this here for an idea.
I believe it's more to remember where the event currently is, so when you come back to this map, the event jumps back to the same spot. You could use two variables, but that's 2 per event, and if you wanted to do it to 10 events, on each of 10 different maps, that's 200 variables. And 10 events on 10 maps is a very small number.
Yeah, that's unwieldy. However,there are existing plugins to achieve this, which people could've told the OP if he'd made an actual post 😛
Original thread: https://forums.rpgmakerweb.com/threads/make-my-life-easier-d.140922/