15 lines
419 B
Plaintext
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);
|
|
}
|