MV Problem hiding skill descriptions for certain actors only

Hello all,

My aim is to make a Blind status that instead of lowering an actor's accuracy, makes them unable to read the names and descriptions of their skills. For clarification, this would be in-battle only.

I've actually gotten this half-working! By mucking about in the drawItem function of Window_SkillList I've managed to make the skill appear as a bunch of "?" if the actor is inflicted with Blind (this being state #5 for simplicity).

JavaScript:
Window_SkillList.prototype.drawItem = function(index) {
    var skill = this._data[index];
    if (skill) {
        var costWidth = this.costWidth();
        var rect = this.itemRect(index);
        rect.width -= this.textPadding();
        this.changePaintOpacity(this.isEnabled(skill));
        if (this._actor.isStateAffected(5)){
            this.drawTextEx("??????", rect.x, rect.y, rect.width - costWidth);
            } else {this.drawItemName(skill, rect.x, rect.y, rect.width - costWidth);}
        this.drawSkillCost(skill, rect.x, rect.y, rect.width);
        this.changePaintOpacity(1);
    }
};

The problem then comes at obscuring the skill description in the menu. I've tried changing the setItem function in Window_Help, but I'm afraid I have no idea how to check if the specific actor who has that skill is affected by Blind while in battle. I can do it just fine while outside of battle, which is unfortunately not what I'm looking for.
I'm thinking that doing this from Window_Help might be rummaging around in the completely wrong ballpark, but I'm not sure where else to do this from.

That is all, thank you in advance for any help!
Hi there!
I guess you can try changing the updateHelp method of the Window_BattleSkill to not set any item to update the help window description, if the current actor has the state:
JavaScript:
Window_BattleSkill.prototype.updateHelp = function() {
    // check if the actor has the state. If it does, use null instead of this.item()
    this.setHelpWindowItem(this.item());
};

If you want to set a specific text, like "????" use the setText method of the Window_Help instead of the above:

JavaScript:
[CODE=javascript]Window_BattleSkill.prototype.updateHelp = function() {
    // check if the actor has the state.
    //If yes:
    this._helpWindow.setText("Your text here")
    // if not
    this.setHelpWindowItem(this.item());

};
[/CODE]
Oh wow, thank you! This solution worked perfectly!

I'd looked around Window_BattleSkill earlier found it rather sparse, so I didn't think there'd be much good to changing stuff in there. Gosh do I feel stupid!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/problem-hiding-skill-descriptions-for-certain-actors-only.169291/