if (yoffset > 0) { yoffset -= 1 alarm[1] = 1 } else event_user(0)