GiveXPToAllEqually
From NWN Lexicon
Contents |
[edit] GiveXPToAllEqually(object, int)
Divides experience points equally among PCs in a PC's party
void GiveXPToAllEqually( object oPC, int nXPToDivide );
[edit] Parameters
oPC
Player Character
nXPToDivide
experience points to share
[edit] Description
Given a PC and an XP value, divides it equally among all PCs of a Player Character's party. None is given to associates.
[edit] Remarks
Tip: use with GetJournalQuestExperience (<journal tag>) to get the amount of XP assigned to that quest in the journal.
Include library for party-wide functions.
NOTE: this library is included in "x0_i0_common" already.
Do NOT dual-include both files or you will get errors!
[edit] Requirements
#include " X0_I0_PARTYWIDE "
[edit] Version
1.61
[edit] See Also
author: Peter Busby