Make the enemy/event remember current location

Discussion in 'RPG Maker MV' started by jaypee, Apr 4, 2016.

  1. jaypee

    jaypee hobbyist Veteran

    Messages:
    160
    Likes Received:
    27
    Location:
    NA
    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:


    [​IMG]


    world map


    [​IMG]


    inside shop


    [​IMG]


    Battle with an event


    [​IMG]


    [​IMG]


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


    [​IMG]


    event goes back to its original location
     
    #1
  2. Andar

    Andar Veteran Veteran

    Messages:
    27,083
    Likes Received:
    5,937
    Location:
    Germany
    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
     
    #2
  3. muramasa

    muramasa Abomination of life, or life itself. Veteran

    Messages:
    580
    Likes Received:
    290
    Location:
    CR
    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!
     
    #3
    spacedev likes this.

Share This Page