nDetermineClassToUse(object)

Determines which of a PCs three classes to use in the random treasure system.

int nDetermineClassToUse(
    object oCharacter
);

Parameters

oCharacter

The PC to help choose which treasure class should be preferred.


Description

This function determines, using some random chance, which of the PCs three classes it should use to determine which treasure to spawn.



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.


Requirements

#include "NW_O2_CONINCLUDE"

Version

1.28

See Also

categories: Item Creation Functions


 author: Tom Cassiotis, editor: Lilac Soul, additional contributor(s): Lilac Soul