GetHitDice
From NWN Lexicon
Contents |
[edit] GetHitDice(object)
Determines the HD of a creature.
int GetHitDice( object oCreature );
[edit] Parameters
oCreature
The creature to obtain the HD of.
[edit] Description
Returns an integer representing the number of hit dice for oCreature and 0 if oCreature is not a valid creature.
[edit] 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.
[edit] Version
1.22
[edit] See Also
functions: |
author: Tom Cassiotis, editor: Iskander Merriman, Mistress