/* 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 */ //Goes on creature's OnHeartbeat. Fires when not fighting or talking. void main() { int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF)); if (DoOnce==TRUE) return; SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE); SetLocalInt(OBJECT_SELF, "iLocked", GetLocked(OBJECT_SELF)); SetLocalInt(OBJECT_SELF, "iLockDC", GetLockLockDC(OBJECT_SELF)); SetLocalInt(OBJECT_SELF, "iLockUnlockDC", GetLockUnlockDC(OBJECT_SELF)); SetLocalInt(OBJECT_SELF, "iLockKeyRequired", GetLockKeyRequired(OBJECT_SELF)); SetLocalInt(OBJECT_SELF, "iLockLockable", GetLockLockable(OBJECT_SELF)); SetLocalString(OBJECT_SELF, "sLockKeyTag", GetLockKeyTag(OBJECT_SELF)); SetLocalInt(OBJECT_SELF, "iIsTrapped", GetIsTrapped(OBJECT_SELF)); SetLocalInt(OBJECT_SELF, "iTrapActive", GetTrapActive(OBJECT_SELF)); SetLocalInt(OBJECT_SELF, "iTrapBaseType", GetTrapBaseType(OBJECT_SELF)); if (!GetTrapActive(OBJECT_SELF) == TRUE) SetLocalInt(OBJECT_SELF, "iTrapBaseType", -1); SetLocalInt(OBJECT_SELF, "iTrapDetectable", GetTrapDetectable(OBJECT_SELF)); SetLocalInt(OBJECT_SELF, "iTrapDetectDC", GetTrapDetectDC(OBJECT_SELF)); SetLocalInt(OBJECT_SELF, "iTrapDisarmable", GetTrapDisarmable(OBJECT_SELF)); SetLocalInt(OBJECT_SELF, "iTrapDisarmDC", GetTrapDisarmDC(OBJECT_SELF)); SetLocalInt(OBJECT_SELF, "iTrapFlagged", GetTrapFlagged(OBJECT_SELF)); SetLocalString(OBJECT_SELF, "sTrapKeyTag", GetTrapKeyTag(OBJECT_SELF)); SetLocalInt(OBJECT_SELF, "iTrapOneShot", GetTrapOneShot(OBJECT_SELF)); SetLocalInt(OBJECT_SELF, "iTrapRecoverable", GetTrapRecoverable(OBJECT_SELF)); }