0
Planned

Item acquire / Quest status

Denarius 6 months ago in Inventory updated by Marti (Lead Developer) 6 months ago 1
I am working on my first quest where certain items need to be acquired in order to continue. In the screenshot below, I have a Brazier which when clicked adds to Inventory and also marks the quest status as complete. I feel this is sub-optimal to embed the logic within the Item, since the item can always be dropped and the quest status is not changed to Incomplete.

Where should I be doing that? I think there should/could be a script that runs on every inventory change and manage the quest toggle there, but haven't been able to find an example.

Unity version:
Game Creator version:
+1
Planned

Hi;

Sorry for the late reply. I'm not sure it is you I discussed this in Discord, but I opened a ticket to create a new Trigger that detects when a new item is added to the Player's inventory. It should solve this issue and you'll be able to detect when an item is added or removed (changing the quest status from complete to active).