HasQuestItem

From NWN Lexicon
Jump to: navigation, search



HasQuestItem(object, int, object)

Checks if the PC's party possesses a given quest item.

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

Parameters

oPC

PC whose party we want to check for the item

nQuest

The quest number (Default: 1)

oNPC

The quest giver (Default: OBJECT_SELF)


Description

See if a PC's party is carrying the quest item.



Remarks

Returns TRUE if the party has the quest item in its possession, otherwise it returns FALSE, including if either oPC or oNPC is an invalid object.

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