DoGiveXP

From NWN Lexicon
Jump to: navigation, search



DoGiveXP(string, int, object, int)

Gives the designated XP to the PC using the design rules for XP distribution.

void DoGiveXP(
    string sJournalTag,
    int nPercentage,
    object oTarget,
    ALIGNMENT_NEUTRAL
);

Parameters

sJournalTag

The tag of the journal that will be used to obtain the experience amount.

nPercentage

The percentage of the experience that should be given. (100 for 100%)

oTarget

The target to receive the experience.

nQuestAlignment

ALIGNMENT_NEUTRAL )


Description

Gives the designated XP to the PC using the design rules for XP distribution.



Remarks

Uses the alignment of the quest in relation to the alignment of oTarget to scale up or down the experience.

This function is also present in the exact same format in both nw_i0_tool . Code duplication verified in version 1.69.


Requirements

#include " nw_i0_tool "

Version

1.22

See Also

constants: 

ALIGNMENT_* Constants



 author: Tom Cassiotis