Dark Dreams of Furiae - a new module for NWN:EE! Buy now
Preventing PC from getting duplicate item (Inventory)
I am having trouble checking and preventing the PC from getting a duplicate item into their inventory.
For my example, the PC checks a notice board with an inventory and you can take a contract item from the board. Then, currently I have it create another of the same object as this will be a PW. Therefore, other players can grab it as well. However, I am now stuck on trying to figure out how to stop the PC from getting another of that same contract item if they already have it in their inventory.
I figured it would be a similar process to how I am checking the notice board in order to create another of the same item with GetItemPossessedBy. As I started scripting it out I realized I can check to see if the PC has it, but then I am at a loss as to how to actually stop it from going into the PC inventory. Also, I'm not quite sure where that scripting would go - in the OnDisturbed script I created for the notice board? Or somewhere else? I am new to the scripting and learning so thank you for any guidance / tips.