GetSpellUsesLeft(object, int, int, int, int)
From NWN Lexicon
Jump to navigationJump to searchGets the amount of uses a spell has left.
Parameters
- oCreature
- The creature for whom to adjust the spell book.
- nClassType
- A CLASS_TYPE_* constant. Must be a MemorizesSpells class.
- nSpellId
- A SPELL_* constant.
- nMetaMagic
- A METAMAGIC_* constant.
- nDomainLevel
- The domain level, if a domain spell. Use 0 if not a domain spell.
Description
Gets the amount of uses a spell has left.
Returns: the amount of spell uses left (0 on error).
Remarks
As noted domain spells cannot be cantrips (level 0).
Version
This function was added in 1.87.8193.35 of NWN:EE.
Example
See Also
functions: | |
constants: |
author: Shadguy