if (dark == 0 && flashing == 0 && state != 100) { hp -= 10 flashing = 60 event_user(1) }