/* Script generated by Lilac Soul's NWN Script Generator, v. 2.1 For download info, please visit: http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */ //Goes OnPerceived of a creature void main() { object oPC = GetLastPerceived(); if (!GetIsPC(oPC)) return; if (!GetLastPerceptionSeen()) return; object oTarget; oTarget = OBJECT_SELF; effect eEffect; eEffect = EffectPetrify(); eEffect = SupernaturalEffect(eEffect); ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget); }