Event chase another event

● ARCHIVED · READ-ONLY
Started by ChibiCat 3 posts View original ↗
  1. Hello,

    I'm very new to RPG maker (MV), and I want to make an event chase another event (neither is the player). I tried using
    move_toward_character($game_map.events[8])
    as a script call under "set movement route"
    but I'm getting a reference error "move toward character is not defined".

    upload_2018-9-30_5-58-13.png

    I'm probably making the script call in the wrong place, but I don't know because I'm very new to this. Any help would be greatly appreciated! I'm also open to using plugins.
  2. Where did you find that script call, because it looks like Ruby (I've used that script call in VX Ace) rather than Javascript.
  3. That's right. You have to make sure any script call you use is for the engine you're using. There are even differences in script calls between RMXP, RMVX and RMVX Ace, which all use different versions of Ruby, but the core scripts are all very different. MV uses a completely different language, so it's very unlikely any script call you get from an XP/VX/Ace thread is going to work in MV.

    moveTowardCharacter($gameMap.event(8));

    is what you're after.


    Also, if all you want to do is make it follow the other character, put it as a custom autonomous move route rather than a move route command. I'm not sure you want to have Wait in there. And you definitely don't want to set it as a parallel process or autorun event.