GetRewardItemTag

From NWN Lexicon



Contents

[edit] GetRewardItemTag(object, int)

Returns the reward item tag.

string GetRewardItemTag(
    object oTarget = OBJECT_SELF,
    int nQuest = 1
);

[edit] Parameters

oTarget

The quest giver (Default: OBJECT_SELF)

nQuest

The quest number (Default: 1)


[edit] Description

Return the tag used for the given NPC's reward item for the specified quest.



[edit] Remarks

Takes the tag of oTarget, appends _RI and nQuest, and returns it. So, if oTarget's tag is "BOB", and nQuest is 1, this function returns BOB_RI1 - this string is used by other functions as a local variable name.

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.


[edit] Requirements

#include " x0_i0_plotgiver "

[edit] Version

1.61

[edit] See Also



 author: Lilac Soul
 

Personal tools
Categories