GZGetHighestSpellcastingClassLevel

From NWN Lexicon


Contents

[edit] GZGetHighestSpellcastingClassLevel(object)

Returns the target creature's levels in their highest spell casting class.

[edit] Parameters

oCreature

The creature's whose level you want to know.


[edit] Description

Returns the target creature's levels in their highest spell casting class.



[edit] Remarks

If oCreature is not a PC, then the return value is oCreature's hit dice.

The following classes are tested for levels:
  - CLASS_TYPE_BARD
  - CLASS_TYPE_CLERIC
  - CLASS_TYPE_DRUID
  - CLASS_TYPE_PALADIN
  - CLASS_TYPE_PALEMASTER
  - CLASS_TYPE_RANGER
  - CLASS_TYPE_SORCERER
  - CLASS_TYPE_WIZARD

If oCreature is a PC and has 3 levels of rogue, 12 levels of ranger, and 10 levels of wizard, this function will return 12.


[edit] Requirements

#include " x0_i0_spells "


[edit] Version

???

[edit] See Also

functions: 

GetLevelByClass



author: Mistress

Personal tools
Categories