28 lines
529 B
Plaintext
28 lines
529 B
Plaintext
|
/* Script generated by
|
||
|
Lilac Soul's NWN Script Generator, v. 2.3
|
||
|
|
||
|
For download info, please visit:
|
||
|
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
|
||
|
|
||
|
//Put this script OnExit
|
||
|
void main()
|
||
|
{
|
||
|
|
||
|
object oPC = GetExitingObject();
|
||
|
|
||
|
if (!GetIsPC(oPC)) return;
|
||
|
|
||
|
object oTarget;
|
||
|
oTarget = oPC;
|
||
|
|
||
|
effect eEffect;
|
||
|
eEffect = GetFirstEffect(oTarget);
|
||
|
while (GetIsEffectValid(eEffect))
|
||
|
{
|
||
|
if (GetEffectType(eEffect)==EFFECT_TYPE_BLINDNESS) RemoveEffect(oTarget, eEffect);
|
||
|
eEffect = GetNextEffect(oTarget);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|