Further file organization

Further file organization
This commit is contained in:
Jaysyn904
2023-08-23 22:11:00 -04:00
parent 3062876237
commit d87fe14826
22364 changed files with 0 additions and 3253 deletions

View File

@@ -0,0 +1,39 @@
//::///////////////////////////////////////////////
//:: Sleep/Paralysis Immunity feat for Diamond Dragon
//:: psi_diadra_imm.nss
//::///////////////////////////////////////////////
/*
Toggles the Sleep/Paralysis neutralization on and off.
*/
//:://////////////////////////////////////////////
//:: Created By: Fox
//:: Created On: Nov 15, 2007
//:://////////////////////////////////////////////
#include "prc_alterations"
void main()
{
object oPC = OBJECT_SELF;
object oSkin = GetPCSkin(oPC);
string nMes = "";
if(!GetLocalInt(oPC, "DiamondImmune"))
{
SetLocalInt(oPC, "DiamondImmune", TRUE);
//activate Immunity script
AddEventScript(oPC, EVENT_ONHEARTBEAT, "psi_diadra_ntrl", TRUE, FALSE);
nMes = "*Sleep/Paralysis Immunity Activated*";
}
else
{
// Removes effects
DeleteLocalInt(oPC, "DiamondImmune");
//deactivate immunity script
RemoveEventScript(oPC, EVENT_ONHEARTBEAT, "psi_diadra_ntrl", TRUE, TRUE);
nMes = "*Sleep/Paralysis Immunity Deactivated*";
}
FloatingTextStringOnCreature(nMes, oPC, FALSE);
}