Hello, I have some problems with UCC integration.
If I use CharacterInventoryBridge to monitor Nonunique item in MultiStackItemCollection. Only one group of items will appear in CharacterInventoryBridge instead of multiple groups of items.
For example, there is many groups of potions that can be stacked. I want the number of one group of potions to be reduced by one after use, and it will not affect the potions of other groups.
My current solution is to create a class that inherits the IItemIdentifier interface, which stores the ItemStack. And customize an InventoryBridge to map ItemStack to this class, and then use this class as the ItemIdentifier of CharacterItem. In this way, the mapping between ItemStack and CharacterItem can be known.
Is this solution feasible? Please let me know if future versions will have this feature or if there is a better solution, thank you!
If I use CharacterInventoryBridge to monitor Nonunique item in MultiStackItemCollection. Only one group of items will appear in CharacterInventoryBridge instead of multiple groups of items.
For example, there is many groups of potions that can be stacked. I want the number of one group of potions to be reduced by one after use, and it will not affect the potions of other groups.
My current solution is to create a class that inherits the IItemIdentifier interface, which stores the ItemStack. And customize an InventoryBridge to map ItemStack to this class, and then use this class as the ItemIdentifier of CharacterItem. In this way, the mapping between ItemStack and CharacterItem can be known.
Is this solution feasible? Please let me know if future versions will have this feature or if there is a better solution, thank you!
Last edited: