event_inherited() if (frozen == 0) { if (state != 100) { state = 100 statetime = 0 alarm[0] = 1 } }