SetStoryVar

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



SetStoryVar(int, int, object)

Used to track the current storyline for the henchman a PC has working for him. Original Campaign.

void SetStoryVar(
    int nChapter,
    int nVal,
    object oTarget = OBJECT_SELF
);

Parameters

nChapter

Current chapter of the module.

nVal

Current place in the henchman storyline the PC has reached.

oTarget

The henchman. (Default: OBJECT_SELF)


Description

This tracks the status of the specific story a henchman may have through the PC's movement through the storyline of the module.

It puts the current status of the Henchman story in a local variable that starts with (NW_L_HENSTORYC) and is appended by the current chapter of the game.



Remarks

Script: nw_i0_henchman.nss: Line: 152

This is part of Bioware’s own quest and reward system. It is hardly useful for anyone not copying that system to the very last detail.


Requirements

#include " nw_i0_henchman "

Version

1.29

See Also



 author: Jody Fletcher