I was creating a stackable inventory system without much luck, so I decided to create an edit box to help me debug the code by reporting which lines where running. In doing so, the stackable inventory started to work, which was weird as I hadn't actually changed any of the events but just added some actions to output to the edit box. However, I did add the following line:
On Loop "Inv"
+LoopIndex("Inv") = 0
-Change edit box text
Anyway, I decided to delete the debugging edit box as it was no longer needed- and the inventory system stopped working again. Perplexed, I've done some experiments and have isolated the problem to the new line of code I mentioned above. When removing this line of code (or deleting the edit box to render this line blank), the system stops working, and I don't see why.
I've uploaded the working version. Each time you press Space Bar a rabbit will be added to your inventory. The rabbits stack up 3 per item slot, and then when you next press Space the system will start stacking the next inventory slot. Now go into the event editor and remove the first line in the 'Inventory' group, and now the inventory system will stack the first slot up to 3, but won't stack the rest of the inventory slots.
It's just weird as all that line does is change the edit box's text so I don't know why it's so crucial for my system to work :/