RMMV How I return the Rows number for Window_ActorCommand as the number of commands the actor have?

Raphael Lourenço

Infinity Door Studio's Lead Designer
Member
Joined
Mar 30, 2017
Messages
20
Reaction score
26
First Language
Portuguese
Primarily Uses
RMMV
I tried to use this code:

JavaScript:
Window_ActorCommand.prototype.maxItems = function() {
    return this._actor ? this._actor.skill().length : 0;
};

Window_ActorCommand.prototype.numVisibleRows = function() {
    return this.maxItems();
};
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?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Nyeh heh heh


Goblins like spooktober
Welp, ended up at the hospital with the oldest so mebbe might make the game jam's deadline. Maybe not. Regardless, really digging MZ.
I had lots of fun! Kids loved me, and some took pictures. Unfortunately, the videos didn't send... but you'll see Chica in action when I do a trailer for Fandom Scouts!
Dama wrote on akoniti's profile.
Hi
Thanks for your review.
I was checking the trailer for details and as the woman shut the door at the exact moment the song I was hearing said "you slim the door" and I couldn't resist to add it there. :D And I used this idea one more time on another scene.

Forum statistics

Threads
104,693
Messages
1,008,186
Members
136,189
Latest member
MalaacSoran
Top