I tried to use this code:
But, this gave me a error. I don't know how I return the number of commands of the actor have.
Which command returns the number of Commands an Actor has?
JavaScript:
Window_ActorCommand.prototype.maxItems = function() {
return this._actor ? this._actor.skill().length : 0;
};
Window_ActorCommand.prototype.numVisibleRows = function() {
return this.maxItems();
};
Which command returns the number of Commands an Actor has?