PRC8/nwn/nwnprc/trunk/scripts/vl_spontregen.nss
Jaysyn904 246f8d56aa 2025/08/22 Update
Reverted to 4.56 to track down a bug that started in 4.57.  Bugfixed back to 4.61.
It's amazing the damage that one skipped case statement can do.
2025-08-22 17:54:55 -04:00

14 lines
452 B
Plaintext

void main()
{
string sSwitch = "PRC_SpontRegen";
if(!GetLocalInt(OBJECT_SELF, sSwitch))
{
SetLocalInt(OBJECT_SELF, "PRC_SpontRegen", TRUE);
FloatingTextStringOnCreature("Spontaneous regeneration spells activated", OBJECT_SELF, FALSE);
}
else
{
DeleteLocalInt(OBJECT_SELF, "PRC_SpontRegen");
FloatingTextStringOnCreature("Spontaneous regeneration spells de-activated", OBJECT_SELF, FALSE);
}
}