Lankhmar_PRC8/_module/nss/ogo_exit.nss

28 lines
529 B
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
/* 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);
}
}