Essentially, I am attempting to alter the behavior of the game's standard equipment procedure. I want to be able to equip and/or remove a weapon from a certain character, but not have the inventory count change. However, I only want this effect to take place for certain equipment types (i.e. weapon and shield). Other equipment types I want to have the same decrease/increase of inventory count behavior.
Thus, I will equip - as a weapon - an offensive magic, and have the same spell available for other characters to equip. I will then equip - as a 'shield' - a defensive magic, and also have that spell available for other characters. Finally, I will equip an accessory, but the count will decrease from my inventory like normal.
I already made the first step towards the end result, and changed the behavior for ALL equipment types by inserting comments into the trade_item_with_party method, like so:
CODE
def trade_item_with_party(new_item, old_item)
return false if new_item && !$game_party.has_item?(new_item)
#$game_party.gain_item(old_item, 1)
#$game_party.lose_item(new_item, 1)
return true
end
Any suggestions on how to achieve the rest?