How to prevent events resetting location?

I created a small push puzzle where you push a statue or object into a spot to spawn a chest nearby, problem is when I transit to another map and come back the events reset to their original starting position. Is there any way to prevent the event from doing this?
You can try this script


http://forums.rpgmakerweb.com/index.php?/topic/1853-remember-event-position/

Original thread: https://forums.rpgmakerweb.com/threads/how-to-prevent-events-resetting-location.16910/