I have an inventory that I’m working on and I’m currently trying to get an image to change from left of the slots to the right based on if I picked up an item. What I thought of doing was creating an integer variable called “SlotNumber” and increasing that number any time I picked up an item so lets say I picked up 4 items then the 5th item would go on slot 5 for example. I tried doing this and I couldn’t figure out how to actually compare values to multiple widgets under a wrap box. How would I go about doing this? If there’s a better way to go about this please let me know
It could look like this pseudoscript:
You may want to add bounds check or validate whether a slot exists first. We don’t want to add something to slot 5 if it’s not there. Or remove something from slot -1
as the wrapbox would not understand that value.
1 Like
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.