I'm not experienced in JavaScript but I thought I might be able to accomplish this with it. I'm trying to hide HP in the menu for every character but the first one, currently by putting "this.drawActorHp(actor, x2, y + lineHeight * 1, width2);" in rpg_windows.js inside an if statement like this:
There are no changes in the menu, no error message or anything. Is there something simple I'm getting wrong here or is this not possible to do it this way?
JavaScript:
if (this._actorId = 1) {
this.drawActorHp(actor, x2, y + lineHeight * 1, width2);
}