As per the title.
In the equip and shop menus, whenever a weapon or armor is about to change an actor's parameters, those parameters change color according to whether they're being increased or decreased. This is of course nice and all, but it presents a problem I couldn't find much information on:
some parameters by default actually get stronger if their value is reduced (such as guard effect, MP cost, etc). For these parameters, if they're being strengthened, the game will think "oop! negative = bad" and changes the color to red, when green usually marks changes that are a good thing. While trying to fix this issue, I found the following in RMMZ's base code:
I think these snippets control the color changing when parameters are adjusted? What I couldn't find however, is which paramId(s) are connected to S- and X- parameters.
How can I make the game reverse the colors used for specific parameters, as in negative = green and positive = red?
(edit: forgot to mention, forcing S- and X- parameters to display through VS plugins)
In the equip and shop menus, whenever a weapon or armor is about to change an actor's parameters, those parameters change color according to whether they're being increased or decreased. This is of course nice and all, but it presents a problem I couldn't find much information on:
some parameters by default actually get stronger if their value is reduced (such as guard effect, MP cost, etc). For these parameters, if they're being strengthened, the game will think "oop! negative = bad" and changes the color to red, when green usually marks changes that are a good thing. While trying to fix this issue, I found the following in RMMZ's base code:
JavaScript:
Window_ShopStatus.prototype.drawActorParamChange = function(x, y, actor, item1) {
const width = this.innerWidth - this.itemPadding() - x;
const paramId = this.paramId();
const change = this._item.params[paramId] - (item1 ? item1.params[paramId] : 0);
this.changeTextColor(ColorManager.paramchangeTextColor(change));
this.drawText((change > 0 ? "+" : "") + change, x, y, width, "right");
};
Window_EquipStatus.prototype.drawNewParam = function(x, y, paramId) {
const paramWidth = this.paramWidth();
const newValue = this._tempActor.param(paramId);
const diffvalue = newValue - this._actor.param(paramId);
this.changeTextColor(ColorManager.paramchangeTextColor(diffvalue));
this.drawText(newValue, x, y, paramWidth, "right");
};
ColorManager.paramchangeTextColor = function(change) {
if (change > 0) {
return this.powerUpColor();
} else if (change < 0) {
return this.powerDownColor();
} else {
return this.normalColor();
}
};
I think these snippets control the color changing when parameters are adjusted? What I couldn't find however, is which paramId(s) are connected to S- and X- parameters.
How can I make the game reverse the colors used for specific parameters, as in negative = green and positive = red?
(edit: forgot to mention, forcing S- and X- parameters to display through VS plugins)