void main() { ExportAllCharacters(); int nIncrement = GetLocalInt(OBJECT_SELF, "KillGate1"); int nTimeSet = nIncrement + 1; SetLocalInt(OBJECT_SELF, "KillGate1", nTimeSet); if (GetLocalInt(OBJECT_SELF, "KillGate1") == 10) { DestroyObject(OBJECT_SELF); } }