Spielerando

Start each boss phase once, even when one blow skips past two

A big creature that changes behaviour at set health marks is a classic of survival fights. The bugs are just as classic: a phase that fires again after healing, one that is skipped by a huge hit, or one that triggers on the killing blow. This entry covers all three.

Why this works

A phase change is an event in the fight, not a reading of the health bar. Remembering which ones already happened makes each fire exactly once, even when a heal, a huge blow or a killing hit would fool a simple before-and-after comparison.

When not to use it

Skip it for a boss that should behave the same all fight, or one whose phases should repeat, such as a cycle that restarts on healing. There, switch by timer or by a count of attacks, not by health.

In the full entry

  • What to build, step by step
  • Starting values and the reason for each
  • 4 common mistakes and the fix
  • 26 lines of example code with 4 checks that pass
  • How your AI shows you that it works

Say this to your AI

Use the Spielerando entry "Start each boss phase once, even when one blow skips past two" (read_entry boss-phase-triggers-fire-once) in my game. Build it step by step, and show me how you checked that it works.

Or skip this and connect the MCP: your AI then finds all of this by itself.Connect the MCP