Ben (fierytale) wrote in nwnscripts,
Ben
fierytale
nwnscripts

Removing plot-items

I'm trying to come up with a script which will remove all plot-items from a character's inventory but so far it's been quite a dead-end.

Any suggestions?

Edit:
void main()
{
object oPC = GetPCSpeaker(); //Modify by how the script intends to be used.
object oItem = GetFirstItemInInventory(oPC);

while (GetIsObjectValid(oItem) == TRUE){
if(GetPlotFlag(oItem)==TRUE){
DestroyObject(oItem);
}
oItem=GetNextItemInInventory(oPC);
}
}
Subscribe
  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

  • 0 comments