PoA_PRC8/_module/nss/nocastingnarea.nss
Jaysyn904 8d97886c3f Changed folder name.
Changed folder name.
2022-10-07 21:08:37 -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);
}