You can try this
You a variable to make when it set within the loop so it won't keep setting.
This is a loop breaker! Thank you for the tip! It's actually working but the "insert", as name suggest, still add more rooms in the array. It's possible to delete the last index but is not was i looking for. I think i gonna keep working on your break loop solution! Thanks!
> .. the inventory could have any width, e.g.: a bag contain 10 spaces but i wanna make it bigger, than i buy a new one with 20 spaces..
>
I think ....you know how to solve this..but just in case...
..Add Variable "Bag(max_slots)"=10
................and then compare.....if Variable<Array.Width....then.....Push item in the bag
..and when you "buy a new bigger bag"...set Variable to 20...
I'm afraid you're wrong becouse, i don't really know how to solve this. Anyway, thanks for the tip, i'll give a shoot!