Make the enemy/event remember current location

Hi guys during the time I was creating a game I have learned alot regarding the commands and controls of rpgmaker which takes painfully time for me to learn ;_; so as the game development progressed I realized the game creation is becoming a little bit more complex. I just stumbled upon this new problem of mine where I have a hero doing battle with an event so after winning the event walk away to a certain place but I  just realized a problem occur when each time I tried to save/log out or go out of map the enemy/event return to his original location.


I know this has something to do with declaring and using of variables but never tried them before ;_; can someone suggest a way to make this enemy/event remember his current location thanks in advance.


Picture provided:


2016-04-03%2B15_10_37-mv%2Btest.png



world map


2016-04-03%2B15_10_15-mv%2Btest.png



inside shop


2016-04-03%2B15_11_03-mv%2Btest.png



Battle with an event


2016-04-03%2B15_11_29-mv%2Btest.png



2016-04-03%2B15_11_42-mv%2Btest.png



now problem occur when I try to go out of the map or try to save and log out of the game


2016-04-03%2B15_10_15-mv%2Btest.png



event goes back to its original location
no, you need a script/plugin to have it remember a changed position on the map. It has nothing to do with variables (could be done that way but would be needlessly complex)


Both Shaz and Yanfly have already written plugins for that, search for them on the master list
Make a second event in the place your event positions itself at the end of his movement, and make sure it's invisible (and check the Through option). Then make a second page on it, put there the same character graphic of the other event, and add anything you wish it to do after that thing happens. This second page will need a certain switch to be on in order to be seen.


Then you need to modify the event you had. You need to add a new page, with no graphic (and preferably the through option checked), this page will need the same switch the other event needed in order to be seen. And lastly, add a Set Switch command at the end of the movement you had in your event.


This will make the old event be "replaced" by another one. The advantage of this is that it will stay where it should.


I don't have MV, and my VXAce is in spanish, but I can share some screenshots if it helps you. It's pretty much the same.


http://puu.sh/o4U94/ebcd088abf.png


http://puu.sh/o4UdP/c2e9ef1e27.png


http://puu.sh/o4Uhp/2e7d0abb03.png


http://puu.sh/o4UNa/f376a9ef70.png


http://puu.sh/o4UWF/58c709ce80.png


(Didn't embed them so it doesn't lags everyone's life -?-).


Salut!

Original thread: https://forums.rpgmakerweb.com/threads/make-the-enemy-event-remember-current-location.59891/