GetHitDice

From NWN Lexicon
Jump to: navigation, search



GetHitDice(object)

Determines the HD of a creature.

int GetHitDice(
    object oCreature
);

Parameters

oCreature

The creature to obtain the HD of.


Description

Returns an integer representing the number of hit dice for oCreature and 0 if oCreature is not a valid creature.



Remarks

This is the most efficient way to get a PC's total character level, and a lot more convenient than summing each class level.


This ONLY reports levels the player has taken, not what level they COULD be based on how much XP they have.

Version

1.22

See Also

functions: 

GetLevelByPosition



 author: Tom Cassiotis, editor: Iskander Merriman, Mistress
 
a