Measure an "80 percent accuracy" objective when one trigger pull fires many pellets
A scatter weapon fires eight pellets and three hit. Is that a hit rate of three eighths or a hit? And the player who fired once and hit has a perfect score. Here is how to count shots so the number feels right and cannot be cheated.
Why this works
A percentage only means something once you decide what one try is and wait for enough tries. For a weapon that sends many pieces at once, the player's idea of one try is one pull, so counting pulls matches how a person feels about aiming.
When not to use it
Do not use it when the game rewards covering an area, where hitting with many pieces is the point; count the pieces there. And skip the minimum number of tries if the objective runs over a very short level.
In the full entry
- What to build, step by step
- Starting values and the reason for each
- 2 common mistakes and the fix
- A diagram of every state
- 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 "Measure an "80 percent accuracy" objective when one trigger pull fires many pellets" (read_entry accuracy-objective-with-spread-weapons) 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