JS command to change game speed with this plugin?

http://sumrndm.site/debug-speed-up/


I'm just not good enough at JS to determine the script command to change the speed multiplier. If anyone could help me on this, it'd be much appreciated. 🙂
there is no script command - the speeds are fixed in the variable defined for them at the beginning of the plugin, and you need to edit that line to have different (or more) speeds available. Then use the set debug keys to change through them
You'll need to modify the plugin to be able to change the speed with a script call.


Add this before the last line of the plugin:
 


Utils.changeGameSpeed = function(newOffset) {
offset = newOffset;
};


Then change the speed with this script call:


Utils.changeGameSpeed(0);


Change the 0 in that line to change the speed, as per the following table:


0 = regular speed


1 = x1.25


2 = x1.5


3 = x2


4 = x3


5 = x5


6 = x10
You'll need to modify the plugin to be able to change the speed with a script call.


Add this before the last line of the plugin:
 



Utils.changeGameSpeed = function(newOffset) {
offset = newOffset;
};


Then change the speed with this script call:



Utils.changeGameSpeed(0);


Change the 0 in that line to change the speed, as per the following table:


0 = regular speed


1 = x1.25


2 = x1.5


3 = x2


4 = x3


5 = x5


6 = x10



Thanks, though it looks like that didn't quite work.


I could also possibly do this by simulating a keypress, since there are keys bound to changing the speed of the game by the plugin.
You'll need to modify the plugin to be able to change the speed with a script call.


Add this before the last line of the plugin:
 



Utils.changeGameSpeed = function(newOffset) {
offset = newOffset;
};


Then change the speed with this script call:



Utils.changeGameSpeed(0);


Change the 0 in that line to change the speed, as per the following table:


0 = regular speed


1 = x1.25


2 = x1.5


3 = x2


4 = x3


5 = x5


6 = x10



Sorry, I thought this was working but it apparently wasn't. :\

Original thread: https://forums.rpgmakerweb.com/threads/js-command-to-change-game-speed-with-this-plugin.73295/