Basically, I'm trying to extend the hero inventory in my map from the default six slots to at least ten. I thought a system where I have each hero start out with a "Backpack" item would work, where clicking the backpack would swap out all the hero's current items with the backpack's items (leaving the backpack item still though). Clicking on the backpack item again would swap the backpack items with the original items, essentially giving the hero two inventories of five items each.
Easy enough, with just having a set of variables keeping track of the items in each inventory and a trigger recording everything picked up. But just now I ran into the serious problem that equipment in one inventory is totally negated as soon as you switch to the other inventory (for example, you'd have a sword with +10atk in one inventory, but switching to inventory 2 would make you lose the +10atk until you switched back, because the sword technically isn't in the hero's "real" inventory anymore).
I don't see any easy way out of this, so I'm hoping someone can help me here. Or, at least direct me to a tutorial for an already-made inventory extension system someone created...
Easy enough, with just having a set of variables keeping track of the items in each inventory and a trigger recording everything picked up. But just now I ran into the serious problem that equipment in one inventory is totally negated as soon as you switch to the other inventory (for example, you'd have a sword with +10atk in one inventory, but switching to inventory 2 would make you lose the +10atk until you switched back, because the sword technically isn't in the hero's "real" inventory anymore).
I don't see any easy way out of this, so I'm hoping someone can help me here. Or, at least direct me to a tutorial for an already-made inventory extension system someone created...