ReadySpellLevel(object, int, int)
Ready a spell level for oCreature.
Parameters
- oCreature
- The creature.
- nSpellLevel
- An integer from 0-9.
- nClassType
- a CLASS_TYPE_* constant or CLASS_TYPE_INVALID to ready the spell level for all classes.
Description
Ready a spell level for oCreature.
For instance a Sorcerer with 2 of 4 castings of level 1 spells left, will get all 4 castings available after using ReadySpellLevel(oCreature, 1, CLASS_TYPE_SORCERER)
Remarks
Acts like resting essentially, except just for spells of a particular spell level.
Individual slots on a Wizard/Cleric can be done with SetMemorizedSpellReady.
For Sorcerer/Bards you can use this first, then you potentially can use DecrementRemainingSpellUses on a spell of the given level they know to reach a level of spells left you want. However due to the way DecrementRemainingSpellUses you might also need to re-ready a load of other class slots if the Sorcerer or Bard classes are not the first ones in the class list. This could be considered very hacky however.
Version
This function was added in 1.87.8193.35 of NWN:EE.
Example
See Also
constants: |
author: Shadguy