PoA_PRC8/module/nss/nocastingnarea.nss
Jaysyn904 128e7e59a4 Initial upload
Initial upload
2022-10-07 14:20:31 -04:00

15 lines
419 B
Plaintext

//This script applies spell failure 100% to all PCs who enter the area
//This goes in a Tracks Trigger or Area Properties of the OnEnter Event.
void main()
{
object oPC;
oPC = GetEnteringObject();
if (GetIsDM(oPC)) return;
if (GetIsDMPossessed(oPC)) return;
if(!GetIsPC(oPC))return;
effect eEffect;
eEffect = EffectSpellFailure(100, SPELL_SCHOOL_GENERAL);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oPC);
}