if (open && stayopen == 0) { if (abs((oCharacter.x - x)) > 20) event_user(0) else alarm[1] = 5 }