This seems to be a popular request, but I have yet to come across a thread that seems to fully answer this question. Most of time, people are pushing toward plugins, but I want to make the code adjustments myself without any plugin help.
I mean, at the end of the day, the plugin is just altering or adding code to existing scripts, no? So, I just need to know all the different places I need to make adjustments. I have been through each .js and jsom file and while I have had some success in getting my new parameters to show in both the Status and Equip windows, I am having trouble with value display. For my new parameter, it just shows "NaN":
Here I've gone into the Terms tab in Database Manager and updated the existing 6 stock parameters to give them new names. I also went into the System.jsom and added the Willpower entry in the following code:
"params":["Max HP","Max MP","Strength","Vitality","Intelligence","Wisdom","Agility","Dexterity","Willpower","Hit","Evasion"]
To get this new entry to display in the Status and Equip windows, I had to make a couple of edits to the rmmz_windows.js file. For the Equip Status window, I updated the following:
Window_EquipStatus.prototype.drawAllParams = function() {
for (let i = 0; i < 7; i++) {
const x = this.itemPadding();
const y = this.paramY(i);
this.drawItem(x, y, 2 + i);
}
};
So that it said < 7 versus < 6. This trigged the game to add in my Willpower entry from the System.jsom file.
For the Status window, I made a similar update from 6 to 7 in the following:
Window_StatusParams.prototype.maxItems = function() {
return 7;
};
For the displayed values, these seem to populating based on the Classes.jsom file. Each of my Classes has an entry in this file and there is a "params": entry that lists out all the values for each of the levels for 8 items; the first item relates to the max HP, the second is max MP, and the other 6 relate to the 6 stock parameters.
I thought it would be as simple as adding in a 9 item, which would just sequence itself to my additional parameter, but that was not the case. Adding in the 9th row does nothing.
The question I have is that there is obviously some code somewhere that is linking those rows in the Classes file and similar to the Windows file, this is being limited to 8 and I need to adjust this to look for my new 9th.
Does anyone have any insight?
Thanks!
I mean, at the end of the day, the plugin is just altering or adding code to existing scripts, no? So, I just need to know all the different places I need to make adjustments. I have been through each .js and jsom file and while I have had some success in getting my new parameters to show in both the Status and Equip windows, I am having trouble with value display. For my new parameter, it just shows "NaN":
Here I've gone into the Terms tab in Database Manager and updated the existing 6 stock parameters to give them new names. I also went into the System.jsom and added the Willpower entry in the following code:
"params":["Max HP","Max MP","Strength","Vitality","Intelligence","Wisdom","Agility","Dexterity","Willpower","Hit","Evasion"]
To get this new entry to display in the Status and Equip windows, I had to make a couple of edits to the rmmz_windows.js file. For the Equip Status window, I updated the following:
Window_EquipStatus.prototype.drawAllParams = function() {
for (let i = 0; i < 7; i++) {
const x = this.itemPadding();
const y = this.paramY(i);
this.drawItem(x, y, 2 + i);
}
};
So that it said < 7 versus < 6. This trigged the game to add in my Willpower entry from the System.jsom file.
For the Status window, I made a similar update from 6 to 7 in the following:
Window_StatusParams.prototype.maxItems = function() {
return 7;
};
For the displayed values, these seem to populating based on the Classes.jsom file. Each of my Classes has an entry in this file and there is a "params": entry that lists out all the values for each of the levels for 8 items; the first item relates to the max HP, the second is max MP, and the other 6 relate to the 6 stock parameters.
I thought it would be as simple as adding in a 9 item, which would just sequence itself to my additional parameter, but that was not the case. Adding in the 9th row does nothing.
The question I have is that there is obviously some code somewhere that is linking those rows in the Classes file and similar to the Windows file, this is being limited to 8 and I need to adjust this to look for my new 9th.
Does anyone have any insight?
Thanks!