So, to match how the game works stats wise, I've needed to re-draw most of the status screen.
I know, ugly, but having to insert things to only one stat in a loop is painful, along with moving some to another location, so two loops, blah blah, not important.
The attack bonus from the weapon is separate from the character's attack, because both are used separately in attack equations. What I need is the status menu to either show all of the stats that I now have, or just to separate Weapon attack from base parameter. I would love if this can happen. It's fine if it looks just as janky as my code, for status menus I'm not looking for speed optimized code.
EXTRA CREDIT: If anyone knows how I could get this setup to work with yanfly StatusMenuCore and EquipCore, I could possibly even get my 'need stacks to use a skill' system for a couple characters to work WITH WeaponSkills, so I can actually use things like draining weapons. x.x
Code:
Window_Status.prototype.drawParameters = function(x, y) {
aatk = 0;
if (this._actor.equips()[0] != null) {
aatk += this._actor.weapons()[0].params[2];
}
var lineHeight = this.lineHeight();
this.changeTextColor(this.systemColor());
this.drawText("Strength", x, y, 160);
this.drawText("Stamina", x, y + 36, 160);
this.drawText("Speed", x, y + 72, 160);
this.drawText("Attack", x, y + 108, 160);
this.drawText("Magic", x, y + 144, 160);
this.drawText("Defense", x + 250, y, 160);
this.drawText("Magic Def.", x + 250, y + 36, 160);
this.drawText("Evade", x + 250, y + 72, 160);
this.drawText("Magic Ev.", x + 250, y + 108, 160);
this.resetTextColor();
this.drawText(this._actor.param(2) - aatk, x + 170, y, 160);
this.drawText(this._actor.param(7), x + 170, y + 36, 160);
this.drawText(this._actor.param(6), x + 170, y + 72, 160);
this.drawText(aatk, x + 170, y + 108, 160);
this.drawText(this._actor.param(4), x + 170, y + 144, 160);
this.drawText(this._actor.param(3), x + 420, y, 160);
this.drawText(this._actor.param(5), x + 420, y + 36, 160);
this.drawText(Math.floor(this._actor.xparam(1) * 100), x + 420, y + 72, 160);
this.drawText(Math.floor(this._actor.xparam(4) * 100), x + 420, y + 108, 160);
}
Window_Status.prototype.drawBlock3 = function(y) {
this.drawParameters(3, y);
this.drawEquipments(472, y);
};
I know, ugly, but having to insert things to only one stat in a loop is painful, along with moving some to another location, so two loops, blah blah, not important.
The attack bonus from the weapon is separate from the character's attack, because both are used separately in attack equations. What I need is the status menu to either show all of the stats that I now have, or just to separate Weapon attack from base parameter. I would love if this can happen. It's fine if it looks just as janky as my code, for status menus I'm not looking for speed optimized code.
EXTRA CREDIT: If anyone knows how I could get this setup to work with yanfly StatusMenuCore and EquipCore, I could possibly even get my 'need stacks to use a skill' system for a couple characters to work WITH WeaponSkills, so I can actually use things like draining weapons. x.x