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, int nQuestAlignment = 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_* (Default: 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_plot and nw_i0_tool. Code duplication verified in version 1.69.
Requirements
#include "nw_i0_plot" or "nw_i0_tool"
Version
1.22
See Also
categories: | Experience Functions |
constants: | ALIGNMENT_* Constants |
author: Tom Cassiotis