/* Script generated by Lilac Soul's NWN Script Generator, v. 2.2 For download info, please visit: http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */ //Put this script OnClick or OnFailToOpen void main() { object oPC = GetClickingObject(); if (!GetIsPC(oPC)) return; object oItem; oItem = GetItemPossessedBy(oPC, "lifeshard1"); if (GetIsObjectValid(oItem)) DestroyObject(oItem); oItem = GetItemPossessedBy(oPC, "lifeshard2"); if (GetIsObjectValid(oItem)) DestroyObject(oItem); oItem = GetItemPossessedBy(oPC, "lifeshard3"); if (GetIsObjectValid(oItem)) DestroyObject(oItem); oItem = GetItemPossessedBy(oPC, "lifeshard4"); if (GetIsObjectValid(oItem)) DestroyObject(oItem); object oTarget; oTarget = GetObjectByTag("lightningdoor"); SetLocked(oTarget, FALSE); }