|Related Config File Sections|
MPF contains lots of features which make working with players easy.
Each player has “player variables” which are key/value pairs that are stored separately for each player.
Some simple examples of player variables include things like:
number: The player’s number (1, 2, etc.)
score: The player’s current score
There’s a Player Variables Reference which lists the default player variables that MPF creates and uses.
You can also create your own player variables which can be called anything you want and can store anything you want. You can use them to track player’s progress through the game, how many loops they’ve made, how many pop bumper hits they have, etc. See the player_vars: documentation for details and examples.
MPF also uses player variables to keep track of all the built-in game logic elements that are tracked on a per-player basis, including achievement status, logic block states, extra balls, bonus, etc.
|Related How To Guides|