- Joined
- Dec 6, 2017
- Messages
- 62
- Reaction score
- 15
- First Language
- Portuguese-BR
- Primarily Uses
- RMMV
Hi!
In our game, we have specific places to save the game and other places to load the game.
I am trying the edit the Save/Load scene because I want to limit the options depending on the load restrictions.
I am writing something wrong in the lines below.
Can someone spare a minute to help me?
In our game, we have specific places to save the game and other places to load the game.
I am trying the edit the Save/Load scene because I want to limit the options depending on the load restrictions.
I am writing something wrong in the lines below.
JavaScript:
Window_SaveAction.prototype.makeCommandList = function() {
var id = this.savefileId();
var enabled = DataManager.isThisGameFile(id);
var isLoadEnabled = DataManager.loadSavefileInfo(id);
/// Conditional Save/load menus
function {
if (this._mode !== 'save') return false;
return this.addCommand(this.getCommandName('save'), 'save', this.isSaveEnabled()); && this.addCommand(this.getCommandName('delete'), 'delete', enabled);
} else if (this._mode !== 'save') return true;
return this.addCommand(this.getCommandName('load'), 'load', isLoadEnabled; && this.addCommand(this.getCommandName('delete'), 'delete', enabled);
};
Can someone spare a minute to help me?