Script call for changing the movement speed of an event

I'd like to set an event's movement speed to something in between the hard-coded speeds (like to 3.5, for example). I couldn't find it on the spreadsheet.

Thanks!
I think the method you're seeking is setMoveSpeed. 🙂

In general, you can use something like this as a script call:
JavaScript:
$gameMap.event(123).setMoveSpeed(3.5);
This will set event 123's move speed to 3.5 (change the numbers as needed). Replace $gameMap.event(123) with $gamePlayer if you want to target the player instead.

Alternatively, for "this event" type references:
  • Set Movement Route > Script:
    JavaScript:
    this.setMoveSpeed(3.5);
    This will affect the character being moved.

  • Other event-based script commands:
    JavaScript:
    this.character(0).setMoveSpeed(3.5);
    This will set the move speed of "this event".
(Note that there's also move frequency, which, for events, determines the wait time between successive steps in an event's move route; frequency 5 means no delay.)

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.

Original thread: https://forums.rpgmakerweb.com/threads/script-call-for-changing-the-movement-speed-of-an-event.116662/