Count "defeat four enemies with one explosion" when chain reactions are involved
The player blasts a barrel, which sets off two more, which finish several enemies. Did that take one action or three? And a different blast later should not add to the first. Here is how to trace every defeat back to the single act that started it.
Why this works
"With one act" is a question about cause, not about timing. Following each defeat back to the first thing the player did, through every blast it set off, credits one deed with everything it truly caused and keeps separate deeds apart.
When not to use it
Skip the tracing when the challenge is only "many in a short time", with no cause to follow. A plain time window is simpler there, and tracing would reject things players expect to count.
In the full entry
- What to build, step by step
- Starting values and the reason for each
- 3 common mistakes and the fix
- A diagram of every state
- 37 lines of example code with 5 checks that pass
- How your AI shows you that it works
Say this to your AI
Use the Spielerando entry "Count "defeat four enemies with one explosion" when chain reactions are involved" (read_entry one-action-multi-kill-objective-with-chain-reactions) 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