How can I 'Set Event Location' using 'Script...'?

● ARCHIVED · READ-ONLY
Started by celebrus 8 posts View original ↗
  1. Hi everyone!

    I want to use 'Set Event Location' inside of a Custom Move Route for an event. To do this, I think I will need to use 'Script...'.

    My question is: What is the comparable script for Set Event Location (x,y).

    Note: The event with the custom move route will be the one being set to another location.
  2. The best way to answer any "How can I accomplish X event command using a script?" is to look inside the Game_Interpreter class and see how the event command is actually implemented. I don't have RM in front of me so I can't go further than that at the moment, but that's how I would do it.
  3. I think if you use the script command in the move event route and use this:

    moveto(x, y)

    It should work.

    Example:

    moveto(1, 1)
  4. Just do what bigEd mentioned and write a method call in Game_Character which executes the set event location (which is just another method call to something in Game_Event)

    Maybe it is just `moveto`.
  5. moveto(x,y) works... My problem was that custom move routes don't function when the event is far from the player. So that's my new question... How can an event move as directed even when the player is not necessarily nearby?

    Thanks!
  6. That seems to be hard coded into VX Ace itself. Try and request a script to get around the problem. This only counts for a custom move route in the event itself. If you are forcing an event to move by using the move route command within another event, it will always move, no matter the relation between the player and said event.
  7. I went with Celianna. I just created a parallel process for each of the event, which served as their custom routes. Thanks!
  8. I guess that works too :)

    This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.