Help on Inventory

Hi. I’m working on this flash game RPG and all seems well when i finally decidedd to get the inventory goin. but no to avail, i’ve spend 2 nights trying to figure out how to make this thing works.

Can anyone tell me how to fix this? I want my guy to buy an item then it will be added to his inventory. If he has already one, it will add to the quantity. then if he wants to equip it, and if the item has only 1 left, he may equip it but it will disappear on his list but appear on the Equip screen. If he unequips it, it will return to inventory and disappear on the Equip screen. hmmm…

You can have a look at my work. :slight_smile: feel free to comment on anything.