Removes the plot related item from a player's inventory.
The player to remove the item from.
Gets the Tag name of the complex item from a local object called NW_J_STORY_MYGLOBALS on the calling creature then searches the target's inventory and equipped items for any item with that the returned Tag name and destroys it.
Function can be found in nw_j_story.nss on line 146.
It seems this set of functions are centered around storing plot item related information on NPCs for simple fetch related quests. This particular function only utilizes 2 out of the 7 other functions available. All of these functions are relatively straight forward and easy to understand at a glance. There are two other sets very much similar to this one where the only difference is in the function naming scheme. See the "See Also" for links.
You'll probably never need to call this function in normal scripting, since it is very specific to BioWare's plot handling system.
#include " nw_j_story "
SetPlotTag("NW_DRAGONHUNT_PLOT"); //Matches Journal Entry that has experience to be rewarded for this quest
//Conversation Conditional of the NPC to reward the player for returning the item.
if (PlayerHasStoryItem(GetPCSpeaker()) == TRUE)
TakeStoryItem(GetPCSpeaker()); //Destroys the item from the players inventory.
author: John Shuell, editor: Lilac Soul