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).
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!
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!