Script equivalent of Player Speed?

Hello-

I was hoping that somebody might be able to tell me what the JavaScript equivalent of this is?

Code:
  ◆Set Movement Route:Player
  :Set Movement Route:◇Speed:6

The RMMV Script Calls spreadsheet has some information on using Game_Character.prototype.processMoveCommand instead of Set Movement Route, but I can see nothing about changing Player Speed.

Thank you!
You need to look more carefully (or at least, look at the actual code in rpg_objects.js instead of just a spreadsheet, the sheet even tells you to do that). processMoveCommand() is the function that interprets the settings listed when you use the Set Move Route event command. The actual movement logic is done by executing other functions, there are separate ones like moveForward(), moveBackward(), moveTowardsPlayer(), etc that correspond to each of the different individual options on the list. processMoveCommand() just instructs which ones of these to execute based on what you set up.

The function you're looking for in this case is setMoveSpeed(). To change it by script, you'd be using $gamePlayer.setMoveSpeed(x). As you probably know, the default speed is 4, IIRC it goes up to 8 and down to 0.
You need to look more carefully (or at least, look at the actual code in rpg_objects.js instead of just a spreadsheet, the sheet even tells you to do that). processMoveCommand() is the function that interprets the settings listed when you use the Set Move Route event command. The actual movement logic is done by executing other functions, there are separate ones like moveForward(), moveBackward(), moveTowardsPlayer(), etc that correspond to each of the different individual options on the list. processMoveCommand() just instructs which ones of these to execute based on what you set up.

The function you're looking for in this case is setMoveSpeed(). To change it by script, you'd be using $gamePlayer.setMoveSpeed(x). As you probably know, the default speed is 4, IIRC it goes up to 8 and down to 0.

Thank you, Traverse!

$gamePlayer.setMoveSpeed(x) worked perfectly!

Original thread: https://forums.rpgmakerweb.com/threads/script-equivalent-of-player-speed.108195/