GiveRewardItem(object, int, object)
Creates a reward item on the PC.
void GiveRewardItem( object oPC, int nQuest = 1, object oNPC = OBJECT_SELF );
Parameters
oPC
Player object to receive the reward item
nQuest
The quest number (Default: 1)
oNPC
The quest giver (Default: OBJECT_SELF)
Description
Give a PC the reward item.
Remarks
Calls GetRewardItemTag and uses that to determine which item to create. Since it uses CreateObject to create the item, this means that the tag and the ResRef of the quest items have to be the same. It only creates the item if oPC or oPC's party doesn't already have it.
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
categories: | Module Specific Functions |
author: Lilac Soul