So in my ItemMenu submission, there was some talk about negative item slots and how using them caused the game to crash.
Well, if you give a hero 2 inventory abilities 'Ainv;, he can pick up 12 items. However, the first 6 he'll pick up will be invisible.
Scripting helps somewhat. You can use GetManipulatedItem() to detect and get the object in code space for the invisible item.
Potentially, this can fix that hideous business in ItemMenu with that always empty slot 6. Make a new ability off of 'Ainv' give it 1 slot. Then Just always on pickup grab the item and move it to a real inventory slot.
What do you guys think?
Well, if you give a hero 2 inventory abilities 'Ainv;, he can pick up 12 items. However, the first 6 he'll pick up will be invisible.
Scripting helps somewhat. You can use GetManipulatedItem() to detect and get the object in code space for the invisible item.
Potentially, this can fix that hideous business in ItemMenu with that always empty slot 6. Make a new ability off of 'Ainv' give it 1 slot. Then Just always on pickup grab the item and move it to a real inventory slot.
What do you guys think?