NDetermineClassToUse
From NWN Lexicon
Contents |
[edit] nDetermineClassToUse(object)
Determines which of a PCs three classes to use in the random treasure system.
int nDetermineClassToUse( object oCharacter );
[edit] Parameters
oCharacter
The PC to help choose which treasure class should be preferred.
[edit] Description
This function determines, using some random chance, which of the PCs three classes it should use to determine which treasure to spawn.
[edit] Remarks
Used within the item creation include file (nw_i0_coninclude), this function does exactly the same as nw_i0_generic's DetermineClassToUse, except it takes a parameter, which means that this function can more easily be used on PCs.
[edit] Requirements
#include " NW_O2_CONINCLUDE "
[edit] Version
1.28
[edit] See Also
author: Tom Cassiotis, editor: Lilac Soul, additional contributor(s): Lilac Soul