Hey everyone, I'm pretty much a Javascript newbie, and I'm trying to take the plunge to learn a little bit about the language and how it relates to MV in order to tweak a plugin that's almost perfect in presentation, but displays information I don't need.
So I'm using an old character select screen from 2016 made by MogHunter. Currently when you scroll over a character, it shows information like class and their individual stats with this line here:
Which from messing around with it, I understand how it functions for the most part. Sadly I didn't need any of that stuff. So my next question is, can I pull other values from individual characters outside of stats, like states their currently afflicted with, weapon types they can equip, weaknesses/resistances and so on?
I've successfully gotten it to display an actors nickname by reading a bunch of other plugin codes and messing around. But I can't seem to find any examples of something like the examples I'm looking for above. Anyone know the how I'd call the rest of the variables up?
Thanks!
So I'm using an old character select screen from 2016 made by MogHunter. Currently when you scroll over a character, it shows information like class and their individual stats with this line here:
Code:
Scene_CharSelect.prototype.refreshParameters = function() {
this._parameters.bitmap.clear();
var xr = Moghunter.charSel_parX;
var yr = Moghunter.charSel_parY;
this.drawPar(this.actor().currentClass().name,xr + 130,yr + 5);
this.drawPar(this.actor().hp,xr + 10,yr + 50);
this.drawPar(this.actor().mp,xr + 130,yr + 50);
this.drawPar(this.actor().atk,xr + 10,yr + 95);
this.drawPar(this.actor().def,xr + 130,yr + 95);
this.drawPar(this.actor().mat,xr + 10,yr + 140);
this.drawPar(this.actor().mdf,xr + 130,yr + 140);
this.drawPar(this.actor().agi,xr + 10,yr + 185);
this.drawPar(this.actor().luk,xr + 130,yr + 185);
};
Which from messing around with it, I understand how it functions for the most part. Sadly I didn't need any of that stuff. So my next question is, can I pull other values from individual characters outside of stats, like states their currently afflicted with, weapon types they can equip, weaknesses/resistances and so on?
I've successfully gotten it to display an actors nickname by reading a bunch of other plugin codes and messing around. But I can't seem to find any examples of something like the examples I'm looking for above. Anyone know the how I'd call the rest of the variables up?
Thanks!