if (state != 100) { state = 100 statetime = 0 alarm[0] = 1 } with (other.id) event_user(0)