PRC8/nwn/trunk/scripts/mer_wwolf.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

31 lines
707 B
Plaintext

void AbilityUsesPerDay(object oCompanion, int nLevel)
{
int iMax, i;
int coneAbi = nLevel / 5;
switch(coneAbi)
{
case 1 : iMax = 7; break;
case 2 : iMax = 6; break;
case 3 : iMax = 5; break;
case 4 : iMax = 4; break;
case 5 : iMax = 3; break;
case 6 : iMax = 2; break;
case 7 : iMax = 1; break;
}
if(iMax > 0)
{
for(i = 1; i <= iMax; i++)
DecrementRemainingSpellUses(oCompanion, 230);
}
}
void main()
{
object oCompanion = OBJECT_SELF;
int nLevel = GetHitDice(oCompanion);
ExecuteScript("prc_ai_fam_rest", oCompanion);
DelayCommand(6.0f, AbilityUsesPerDay(oCompanion, nLevel));
}