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