Is there a way to filter the inventory items by profiles?
So that every time we change profiles, the items we have in inventory belong to a single profile and their saves.
Thanks
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Sorry, could you rephrase this? I'm not clear on your meaning.
You can see in the video is that in the inventory of profile 4 and 5 I have a certain number of items because they have already been played in certain scenes, when creating profile 1 it contains the items that it has inherited from the other profiles, so it represents a Problem when the profile 1 player starts the scenes and will already have the items.
If I am doing something wrong or you have a solution, I would be very grateful.
When creating a new Profile, your game's status is not modified - any changes, such as clearing the Inventory, must be done separately after the Save: Manage profiles Action is run.
Currently, there is no Action to remove all items from the Inventory. I will look into this, but in the meantime you can use this script, attached to a prefab:
To use it, use the Object: Call event Action to reference the prefab and invoke the ClearInventory/DeleteAll function.
Thank you very much, your answers are always very accurate and easy to follow.