Is there any way to have keyboard/button inputs select actor commands in battle, eg 'A' key selects the physical attack option, 'S' key opens the skill select menu?
Open to scripting ideas too. Thanks!
Open to scripting ideas too. Thanks!
const _MyEdit1_actorCommand_processHandling = Window_ActorCommand.prototype.processHandling;Window_ActorCommand.prototype.processHandling = function() {if (this.isOpenAndActive()) {if (Input.isTriggered("a")) {this.forceSelect(0);return this.processOk();}if (Input.isTriggered("s")) {this.forceSelect(1);return this.processOk();}}_MyEdit1_actorCommand_processHandling.call(this);}if (this.isOpenAndActive()) at the beginning of your custom check list too (just to be sure?)@RPGMakerUser4001, please do not bump your topic unless it has been 24 hours later since your last post. You can review our forum rules here. Thank you.
It doesn't support going to a menu (such as skill selection), as I recall. But I have a plugin for assigning keys to activate skills.
forums.rpgmakerweb.com
This seems to do it. Thanks so much!
rpglord69's method seems to work for skill selection, too.
I know it's been a little while, but might you also know how to disable the moving of the cursor with the arrow keys during this, while still allowing the inputs to select the commands?
Window_ActorCommand.prototype.isCursorMovable method to return false. Or change the .processCursorMove . Or .cursorDown and other direction methods to empty.Original thread: https://forums.rpgmakerweb.com/threads/how-to-have-keys-correspond-to-battle-options.180552/