Ok, well i am trying to add something to "Game_Actor"'s "this._equips[]", but the default "rpg_object" actionChain,seems to overwrite my "EDIT"..
here is the stuff which i wanna add:
Thats just an simple example, for what i wanna do..
in this case the script to trigger this small function would be:
Game_Actor.prototype.srpgEquipSlotsUpgrade.call(this);
or
this.srpgEquipSlotsUpgrade();
(depending on where i use it)
However, i think i need to overwrite another ,
(default "rpg_object"-)"Game_Actor"- function, and add it there to make my Edit permament.
( i dont want this edit to be triggered more than once. this would set the switch to false with every update )
My Question is:
What is the best Approch do make that happen?
if anybody has some ideas, that would be very welcome.thx
edit
and just to be clear ,i need these switches and cant use:
"if (this._equips[0]. _ItemId === 0)" instead
these switches are supposed to store the info, if an Equip was "Stolen" or "Broken" no matter if the slot is empty or not
here is the stuff which i wanna add:
JavaScript:
Game_Actor.prototype.srpgEquipSlotsUpgrade = function() {
this._battleUnit = 'actor';
if (this._equips) {
if (this._equips[0]) {this._equips[0].equipIsGone = false};
if (this._equips[1]) {this._equips[1].equipIsGone = false};
if (this._equips[2]) {this._equips[2].equipIsGone = false};
if (this._equips[3]) {this._equips[3].equipIsGone = false};
if (this._equips[4]) {this._equips[4].equipIsGone = false};
}
};
Thats just an simple example, for what i wanna do..
in this case the script to trigger this small function would be:
Game_Actor.prototype.srpgEquipSlotsUpgrade.call(this);
or
this.srpgEquipSlotsUpgrade();
(depending on where i use it)
However, i think i need to overwrite another ,
(default "rpg_object"-)"Game_Actor"- function, and add it there to make my Edit permament.
( i dont want this edit to be triggered more than once. this would set the switch to false with every update )
My Question is:
What is the best Approch do make that happen?
if anybody has some ideas, that would be very welcome.thx
edit
and just to be clear ,i need these switches and cant use:
"if (this._equips[0]. _ItemId === 0)" instead
these switches are supposed to store the info, if an Equip was "Stolen" or "Broken" no matter if the slot is empty or not