so, i posted this in team chat, but you are offline, and i am outta town for a few days.
When you reference an item slot.... well.. dont. Never. It is stupid. blizzard is stupid.
...Every time you drop an item, it resets your item slot count; despite whichever slot the item may be in. Say you have items A, B, and C in slots 1, 2, and 3 respectively. you drop item B (slot 2) on the ground, and you pick it back up. It will be displayed in slot 2, but it will be slot 3. your item C, still in slot 3, will now be slot 2, for trigger purposes.
I had this problem with my game, and used triggers to automatically organize the inventory; which was a pain in the ass. What may work well is to create a different container for the ammo units you pick up. an "ammo" backpack so to say, and cause the items in that backpack to be undroppable; then when an item is used up and removed; remove and re-add all items to the backpack, to refresh the triggers.
dialog based inventories are so much easier to work with than the garbage they gave us. SC2 was never intended to have items and the sorts.
so, i posted this in team chat, but you are offline, and i am outta town for a few days.
When you reference an item slot.... well.. dont. Never. It is stupid. blizzard is stupid.
...Every time you drop an item, it resets your item slot count; despite whichever slot the item may be in. Say you have items A, B, and C in slots 1, 2, and 3 respectively. you drop item B (slot 2) on the ground, and you pick it back up. It will be displayed in slot 2, but it will be slot 3. your item C, still in slot 3, will now be slot 2, for trigger purposes.
I had this problem with my game, and used triggers to automatically organize the inventory; which was a pain in the ass. What may work well is to create a different container for the ammo units you pick up. an "ammo" backpack so to say, and cause the items in that backpack to be undroppable; then when an item is used up and removed; remove and re-add all items to the backpack, to refresh the triggers.
dialog based inventories are so much easier to work with than the garbage they gave us. SC2 was never intended to have items and the sorts.
Skype: [email protected] Current Project: Custom Hero Arena! US: battlenet:://starcraft/map/1/263274 EU: battlenet:://starcraft/map/2/186418