First off I apologize as I'm not entirely sure this post needs to be in requests or support.
I am creating a "dynamic actors" plugin for my project (which will help me tremendously with some automation of character sprites, faces, and battlers) BUT I've run into a snag. Whenever I equip something everything updates just fine... it is when I UN-equip something (like the shield), the graphic is not updating correctly (the problem lies somewhere in the Game_Actor.prototype.changeEquip function obviously. I'm just not fully understanding on how to "get" when an item is unequipped and no other actions are being done.
For example:
var olditem = this.equips()[slotId]; (gets it before the change?)
_alias_Game_Actor_equipChange.call(this, slotId, item);
if (!olditem) return; // if they have not unequipped? or what?
--- What I Need (pseudocode) ---
if unequip (and the item was one of the valid armor types in the array) {
if shield = flip the shield switch to false.
}
I can upload the script to Github if anyone wants to take a look at it. I mean it'd be free for anyone's use at some point although right now it's more tailored to fit just my game (I would like to expand it more in the future for something I'm planning but that's a topic for another time).
I am creating a "dynamic actors" plugin for my project (which will help me tremendously with some automation of character sprites, faces, and battlers) BUT I've run into a snag. Whenever I equip something everything updates just fine... it is when I UN-equip something (like the shield), the graphic is not updating correctly (the problem lies somewhere in the Game_Actor.prototype.changeEquip function obviously. I'm just not fully understanding on how to "get" when an item is unequipped and no other actions are being done.
For example:
var olditem = this.equips()[slotId]; (gets it before the change?)
_alias_Game_Actor_equipChange.call(this, slotId, item);
if (!olditem) return; // if they have not unequipped? or what?
--- What I Need (pseudocode) ---
if unequip (and the item was one of the valid armor types in the array) {
if shield = flip the shield switch to false.
}
I can upload the script to Github if anyone wants to take a look at it. I mean it'd be free for anyone's use at some point although right now it's more tailored to fit just my game (I would like to expand it more in the future for something I'm planning but that's a topic for another time).