SetOnQuest

From NWN Lexicon
Revision as of 00:47, 26 August 2012 by Dood (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



SetOnQuest(object, int, object)

Sets that a PC has taken a quest

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

Parameters

oPC

A player object

nQuest

The quest number (Default: 1)

oNPC

The quest giver (Default: OBJECT_SELF)


Description

Call when a PC takes the quest



Remarks

A wrapper function for a SetLocalIntOnAll and GiveQuestItem call.

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