Hi there! My goal today is to disable, or "grey out" the Skill Type command in the Actor Command Window. When you seal a Skill Type, you are still able to enter the list and view the unselectable skills. I want the player to not be able to enter a sealed Skill Type list at all, during battle, in the Actor Command Window. I am trying to edit this line of code in the Window_ActorCommand:
I have edited the final line to include "!actor.isSkillTypeSealed(stypeID)" as a condition. Hoping to figure out why this is not working. I receive no errors, but my sealed Skill Type is still selectable! Am I headed in the right direction? Thank you!
JavaScript:
Window_ActorCommand.prototype.addSkillCommands = function() {
const skillTypes = this._actor.skillTypes();
for (const stypeId of skillTypes) {
const name = $dataSystem.skillTypes[stypeId];
this.addCommand(name, "skill", !actor.isSkillTypeSealed(stypeId), stypeId);
}
};
I have edited the final line to include "!actor.isSkillTypeSealed(stypeID)" as a condition. Hoping to figure out why this is not working. I receive no errors, but my sealed Skill Type is still selectable! Am I headed in the right direction? Thank you!