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.
This commit is contained in:
14
nwn/nwnprc/trunk/scripts/vl_spontregen.nss
Normal file
14
nwn/nwnprc/trunk/scripts/vl_spontregen.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user