PWSetMinLocalIntAndJournalForItemAcquired

From NWN Lexicon


Contents

[edit] PWSetMinLocalIntAndJournalForItemAcquired(string, string, int, string, int)

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

void PWSetMinLocalIntAndJournalForItemAcquired(
    string sVarName,
    string sJournalTag, 
    int nState, 
    string sItemTag,
    int nExperience
);

[edit] 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.

sItemTag

The tag of the item used to check against for journal updates.

nExperience

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


[edit] Description

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



[edit] Remarks

Persistent worlds beware! This function uses GiveXPToCreature . The XP is only awarded if the local integer was updated.


[edit] Requirements

#include " nw_i0_plotwizard "


[edit] Version

???

[edit] See Also

functions: 

SetLocalInt



author: Baragg, editor: Mistress

Personal tools
Categories