I was wondering if there was a way to refer to a certain slot in the inventory. The only thing I have been able to find through browsing the forums and the list of triggers is the "Inventory Item Carried" trigger, but the only option for referring to an item is that item's "index", which to my understanding only refers to items in the order they were picked up. This unfortunately does not help me because if someone moves items around in the inventory (which could very likely happen) this current index link is rather useless.
"Inventory Item Slot" returns the slot for an item. If you want to get the item of slot x you have to pick all items in the inventory and check if the picked item is in slot x.
Talon is correct, just thought I'd add a little more for your benefit DaBernMon. What you really want to do is use the function pick all items in inventory whenever the user does anything inventory like, then populate some global arrays of units with the information gotten, using the inventory bag number/inventory slot number that kind of thing. Then you can tell what is in a certain slot at any time and proceed accordingly.
Let us know if you have any other questions, hopefully that will get you pointed in the right direction.
I was wondering if there was a way to refer to a certain slot in the inventory. The only thing I have been able to find through browsing the forums and the list of triggers is the "Inventory Item Carried" trigger, but the only option for referring to an item is that item's "index", which to my understanding only refers to items in the order they were picked up. This unfortunately does not help me because if someone moves items around in the inventory (which could very likely happen) this current index link is rather useless.
Any help would be very appreciated!
Bump?
"Inventory Item Slot" returns the slot for an item. If you want to get the item of slot x you have to pick all items in the inventory and check if the picked item is in slot x.
Talon is correct, just thought I'd add a little more for your benefit DaBernMon. What you really want to do is use the function pick all items in inventory whenever the user does anything inventory like, then populate some global arrays of units with the information gotten, using the inventory bag number/inventory slot number that kind of thing. Then you can tell what is in a certain slot at any time and proceed accordingly.
Let us know if you have any other questions, hopefully that will get you pointed in the right direction.