Permanently move event?

To be clear, by permanent I mean during the specific game and not in a new game. For example: Guard A and Guard B are standing at ends of a hall. Guard A patrols right and Guard B patrols left and eventually they are at opposite ends of the hall. Guard A is now where Guard B was and vice versa. They should now remain in this position even if I exit the map and return. However, if I were to fire up a new game, Guard A and B should be back at their original posts.


For situations like this in the past I've created a secondary event and put it in the final position of the starting event and then just did stuff with switches to turn things on and off. But in the guard case scenario above this wont be possible since I cannot place a secondary Guard A on top of original Guard B.


The main issue is that in Scene_Map.create the DataManager loads the events from the json file. So it will always load the original x,y coordinates every time I enter a map. If I wanted to change the coordinates in here I would have to change the json file which will cause a global save/new-game spanning change. This is undesirable of course.


Alternative solutions: Store the new event coordinates separately somewhere; Put the secondary events beside where they should go and autorun on map load to re-position them (this could have issues if the events are in sight of the player and don't move locations fast enough); Use a script. I saw a script for moving events from one map to another. I imagine this script might also be able to permanently move an event on the same map since it appears that it is storing event information separately.


It seems like there should be a much simpler way of doing this. It would be nice anyway since I do this type of thing a lot to make my maps more dynamic.
You can do this still with switches, just use a new event page on guard B and make it guard A, and trigger it to run only after the switch is on (or after a variable is > some number, etc). I've been doing this with variables myself to move events to new locations based on plot and works fine.
You know that would probably work just fine. I like this idea. Just gotta make sure I don't forget that page 2 is a different character.
I also wrote a plugin to do this (I think - I might have intended to do it and didn't after seeing that someone else was doing one)
@Shaz Maybe it was your plugin I found before that allowed moving events between maps. I'll have to check some old project of mine to find out but that's on my other machine.
nope - you can't move events between maps.  My plugin (if it exists) and the Ace script that's equivalent only lets you reset the 'default' location of an event on the current map.
Do you remember if it resets the default location system-wide or if it only affects the particular save game?
just for that save game.  It's called Remember Event Position, and is for instances where you have an event move from the default place to another (like pushing a box away from a hole in the wall) and want it to stay in the new place.
That is exactly what I'm looking for. It's been rather pesky having to create a secondary event in the final position of an event I want to move.
Here you go:




Remember - it only moves it to another location on the same map. You can't move events to different maps.
That's perfect. I'm sure I found another script somewhere else that handles moving events between maps but for this situation this is exactly what I'm looking for. Thanks Shaz.

Original thread: https://forums.rpgmakerweb.com/threads/permanently-move-event.57473/