It isn't doable in the base game, however nwnx plugins makes this possible. Few months ago I was working on a spell cooldown system for spellcaster bosses on my server, so if you are using nwnx I can share some scrips as examples.
I would like some of my bosses/in this case a lich to regain spells after a period of time during combat, instead of just being in melee for the remainder of a battle.
Is it the same as PC's or is there a way for NPCs?
Comments
If you only want to replenish spells, you can record current hit points first, then apply damage afterwards. Same with feats.
Use This Function...
ForceRest(oPC);
Unfortunately it will also heal them too...
But pressing the R button does the same thing as well anyway...
(Just saves the party time from having to wait for the caster to rest all the time.)
I'd recommend a scripted / tagbased potion of replinishing (Make them expensive and rare too)
I would like some of my bosses/in this case a lich to regain spells after a period of time during combat, instead of just being in melee for the remainder of a battle.
Is it the same as PC's or is there a way for NPCs?