GZGetHighestSpellcastingClassLevel(object)

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

int GZGetHighestSpellcastingClassLevel(
    object oCreature
);

Parameters

oCreature

The creature's whose level you want to know.


Description

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



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.


Requirements

#include "x0_i0_spells"


Version

???

See Also

functions:  GetHitDice | GetLevelByClass
categories:  Spells Functions


author: Mistress