Make the enemy/event remember current location

jaypee

hobbyist
Veteran
Joined
Mar 13, 2012
Messages
160
Reaction score
28
First Language
english
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:





world map





inside shop





Battle with an event








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





event goes back to its original location
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
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
 

orochii

Abomination of life, or life itself.
Veteran
Joined
Apr 29, 2012
Messages
652
Reaction score
364
First Language
Spanish
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!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,061
Members
137,575
Latest member
akekaphol101
Top