PWSetMinLocalIntAndJournalForOpenerParty

From NWN Lexicon
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