PWSetMinLocalIntAndJournalForOpenerParty

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


PWSetMinLocalIntAndJournalForOpenerParty(string, string, int, int)

Based on opening an object, this function sets a local integer variable for all players in a group, awards XP, and sets a journal entry.

void PWSetMinLocalIntAndJournalForOpenerParty(
    string sVarName,
    string sJournalTag,
    int nState,
    int nExperience
);

Parameters

sVarName

The string used to reference the integer on the player character.

sJournalTag

The tag of the journal category (case sensitive).

nState

The value used for the journal entry and local variable.

nExperience

The amount of XP to award to the PC and party members.


Description

Based on opening an object, this function sets a local integer variable for all players in a group, awards XP, and sets a journal entry.



Remarks

Attempts to find the player object by calling (in this order): GiveXPToCreature . The XP is only awarded if the local integer was updated.


Requirements

#include " nw_i0_plotwizard "


Version

???

See Also

functions: 

SetLocalInt



author: Baragg, editor: Mistress