Okay so I was writing my script to day, which I've finish except for this part, and then I got stuck so I left it until the end. Well it's the end and now I need help and this is the question. While I was writing my shop base script I've notice that this appears multiple times:
case item
when RPG::Item then number = $game_party.item_number(item.id)
when RPG::Weapon then number = $game_party.weapon_number(item.id)
when RPG::Armor then number = $game_party.armor_number(item.id)
end
I tried simplifing it by applying it to Game_Party like in VX but I ran into several issues. In the buy part, number in possesion # doesn't increase. In the sell part, it doesn't display of items you have. When selling the item, you can't increase amount of items to be sold. Besides this set back the script is pretty much done.
Here an example of what I'm talking about.
Simple Script