For your use case, it sounds like you want achievements/achievement groups (these persist their state between balls and are specifically designed for tracking mode qualification and completion.
https://missionpinball.org/latest/config/achievements/
If you model your game using the mpf example below (which I strongly recommend if your game has depth), you would put these achievements & groups in the base mode.
https://missionpinball.org/latest/game_design/mode_layering/
"Persistence" between balls can be tricky (some mpf configs will let you choose to persist_state). My preference for things I want to persist is to use state machines (making sure to set persist_state to true). Jan has a really good YouTube video about them.
--
You received this message because you are subscribed to the Google Groups "MPF Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpf-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mpf-users/8913c91a-8b60-4c3a-bc9c-1105f950900dn%40googlegroups.com.