Hello, I have an issue regarding something quite common for a side quest:
This side quest involves collecting 5 units of an item. The quest is completed only when you reach 5 units.
How can I make it work if the item is dropped by an enemy?
Additionally, there is another small problem. If the player collects 5 or more units of this item, they can choose whether or not to give them to the NPC. For example, if the player decides to sell all the units, the count should be reset to 0.
Of course, I've considered using a variable, but how can I link it to the corresponding enemy drop and also account for the possibility of the item being sold?
This side quest involves collecting 5 units of an item. The quest is completed only when you reach 5 units.
How can I make it work if the item is dropped by an enemy?
Additionally, there is another small problem. If the player collects 5 or more units of this item, they can choose whether or not to give them to the NPC. For example, if the player decides to sell all the units, the count should be reset to 0.
Of course, I've considered using a variable, but how can I link it to the corresponding enemy drop and also account for the possibility of the item being sold?