- Joined
- Nov 2, 2020
- Messages
- 66
- Reaction score
- 6
- First Language
- english
- Primarily Uses
- RMMV
I'd like to disable these 2 commands (taken from SRPG) if a certain switch is on.
Window_MenuCommand.prototype.addTurnEndCommand = function() {
this.addCommand(_textSrpgTurnEnd, 'turnEnd', true);
};
Window_MenuCommand.prototype.addAutoBattleCommand = function() {
this.addCommand(_textSrpgAutoBattle, 'autoBattle', true);
};
What kind of code would I need to implement it?
Window_MenuCommand.prototype.addTurnEndCommand = function() {
this.addCommand(_textSrpgTurnEnd, 'turnEnd', true);
};
Window_MenuCommand.prototype.addAutoBattleCommand = function() {
this.addCommand(_textSrpgAutoBattle, 'autoBattle', true);
};
What kind of code would I need to implement it?