alarm[1] = (90 + random(220)) if (frozen == 0) { if (active == 1 && state == 1 && target == 0) { state = 2 image_index = 0 } }