PoA_PRC8/_module/nss/nocastingnarea.nss

15 lines
419 B
Plaintext
Raw Permalink Normal View History

2022-10-07 14:20:31 -04:00
//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);
}