Hey there folks 🙂
I hope this is the right forum for this (I wasn't sure if this is the right one or if I should post it in "Learning JS"). I've just started learning JS so I need help.
So, I'm using Moghunter's Scene File. I managed to edit it the way I like it to be but now I ran into two problems.
First of all: I want to have the picture depending on a variable instead of the actor ID. That's because the picture should change depending on the story progression (which is "saved" within a variable). For example, it should be the picture Actor_1 when the variable is under 5, Actor_2 when the variable is between 6 and 11 and so on. But I'm not sure how I need to change the JS to do that.
The picture is drawn with this line:
this._ActorPicture.bitmap = ImageManager.loadPicture("Actor_" + String(this._actorIndex));
The second thing is that I want to show the name and level of all party members instead of HP, MP and such things of the first party member. With the default script it shows the name and level (and all stats) of the actor on the first position. Like I said, it should show the name and level of all party members that are currently in the group. I think the plugin part that's needed is the following (I deleted all the parts I don't need already):
Window_FileData.prototype.drawData = function() {
var actor = this.data().actor;
var x = Moghunter.scFile_ParX;
var y = Moghunter.scFile_ParY;
var s = Moghunter.scFile_ParS;
var w1 = this.width - 120 + x;;
this._actorID = actor[10];
this.changeTextColor(this.textColor(Moghunter.scFile_TextColor));
this.drawText(TextManager.levelA, w1, y, 120, 'left'); // Level
this.resetTextColor();
this.drawText(actor[0], x, y, 120, 'left'); // Name
this.drawText(actor[1], w1, y, 80, 'right'); // Level
};
I hope someone can help me and tell me how I need to change the according parts 🙂
I hope this is the right forum for this (I wasn't sure if this is the right one or if I should post it in "Learning JS"). I've just started learning JS so I need help.
So, I'm using Moghunter's Scene File. I managed to edit it the way I like it to be but now I ran into two problems.
First of all: I want to have the picture depending on a variable instead of the actor ID. That's because the picture should change depending on the story progression (which is "saved" within a variable). For example, it should be the picture Actor_1 when the variable is under 5, Actor_2 when the variable is between 6 and 11 and so on. But I'm not sure how I need to change the JS to do that.
The picture is drawn with this line:
this._ActorPicture.bitmap = ImageManager.loadPicture("Actor_" + String(this._actorIndex));
The second thing is that I want to show the name and level of all party members instead of HP, MP and such things of the first party member. With the default script it shows the name and level (and all stats) of the actor on the first position. Like I said, it should show the name and level of all party members that are currently in the group. I think the plugin part that's needed is the following (I deleted all the parts I don't need already):
Window_FileData.prototype.drawData = function() {
var actor = this.data().actor;
var x = Moghunter.scFile_ParX;
var y = Moghunter.scFile_ParY;
var s = Moghunter.scFile_ParS;
var w1 = this.width - 120 + x;;
this._actorID = actor[10];
this.changeTextColor(this.textColor(Moghunter.scFile_TextColor));
this.drawText(TextManager.levelA, w1, y, 120, 'left'); // Level
this.resetTextColor();
this.drawText(actor[0], x, y, 120, 'left'); // Name
this.drawText(actor[1], w1, y, 80, 'right'); // Level
};
I hope someone can help me and tell me how I need to change the according parts 🙂