TakeQuestItem

From NWN Lexicon
Jump to: navigation, search



TakeQuestItem(object, int, object)

Removes a quest item from a PC's party.

void TakeQuestItem(
    object oPC,
    int nQuest = 1,
    object oNPC = OBJECT_SELF
);

Parameters

oPC

PC whose party we want to remove the item from

nQuest

The quest number (Default: 1)

oNPC

The quest giver (Default: OBJECT_SELF)


Description

Remove a quest item from a PC.



Remarks

This function assumes that the item to be removed is unique. If several copies of the item is found within oPC's party, only one of them will be taken.

The item is not actually taken, it is simply destroyed.

This is part of BioWare's quest handling system. Unless you delve thoroughly into that system, and use it all the time, you probably won't need this function.


Requirements

#include " x0_i0_plotgiver "

Version

1.61

See Also



 author: Lilac Soul