Hi All,
So, for segments of my battle system, I've been altering some parts of the rpg_windows.js file.
I managed to alter the Window_BattleSkill & Window_BattleItem parts perfectly, but I've run into a problem altering the Window_BattleEnemy.
So there is the following section:
I've changed
to say
Thus changing the X, Y, Width, and Height to match what I want.
Well, the Y, Width, Height all seem to have changed correctly for me, but the X is offset 30 pixels to the right from where it is supposed to be.
When I tried to compensate by subtracting 30 pixels and changed it to 270 (or even when I tried anything else) it stays 30 pixels too far to the right.
Anyway I can fix this?
So, for segments of my battle system, I've been altering some parts of the rpg_windows.js file.
I managed to alter the Window_BattleSkill & Window_BattleItem parts perfectly, but I've run into a problem altering the Window_BattleEnemy.
So there is the following section:
Code:
Window_BattleEnemy.prototype.initialize = function(x, y) {
this._enemies = [];
var width = this.windowWidth();
var height = this.windowHeight();
Window_Selectable.prototype.initialize.call(this, x, y, width, height);
this.refresh();
this.hide();
};
I've changed
Code:
Window_Selectable.prototype.initialize.call(this, x, y, width, height);
to say
Code:
Window_Selectable.prototype.initialize.call(this, 300, 545, 918, 144);
Thus changing the X, Y, Width, and Height to match what I want.
Well, the Y, Width, Height all seem to have changed correctly for me, but the X is offset 30 pixels to the right from where it is supposed to be.
When I tried to compensate by subtracting 30 pixels and changed it to 270 (or even when I tried anything else) it stays 30 pixels too far to the right.
Anyway I can fix this?