I am trying to implement a custom mod in UIS that will allow Mutable/Common items that are stacked, to have Item Attribute values set for each stack. For example, I have two stacks of apples that will go rotten after a period. I want an attribute on the Item that tells me how old that stack is. But each stack needs to have its own value for the attribute. I have asked previously and you advised UIS can't do this natively.
When I load the inventory, I set the attributes for the item in a stack to its specific value. And I can see in the debugger, that the item for each stack has different attribute values.
But when I let the code run, and next time look at the attribute value on the item, they have all been set to the same value.
I cannot find what is changing these attribute value's so they stay the same on all stacks. Could you please point me at the code that keeps the attribute values synchronised or explain how this works?
Thanks in advance.
In case what I am trying to do isn't clear. Hear is a short video, trying the set the values on two stacks to different values in the inspector.
When I load the inventory, I set the attributes for the item in a stack to its specific value. And I can see in the debugger, that the item for each stack has different attribute values.
But when I let the code run, and next time look at the attribute value on the item, they have all been set to the same value.
I cannot find what is changing these attribute value's so they stay the same on all stacks. Could you please point me at the code that keeps the attribute values synchronised or explain how this works?
Thanks in advance.
In case what I am trying to do isn't clear. Hear is a short video, trying the set the values on two stacks to different values in the inspector.
Last edited: