credits (example config files)

Machine config examples

Here are some example machine-wide config files that show real-world examples of how these configs are used.

Note that there are multiple machine config examples here. They’re just included to show different options. You wouldn’t actually use more than one.

#config_version=5

modes:
    - credits

machine:
    min_balls: 0

switches:
    s_left_coin:
        number:
    s_center_coin:
        number:
    s_right_coin:
        number:
    s_esc:
        number:
    s_start:
        number:
        tags: start

coils:
    c_eject:
        number:

credits:
  max_credits: 12
  free_play: yes
  service_credits_switch: s_esc
  switches:
    - switch: s_left_coin
      type: money
      value: .25
    - switch: s_center_coin
      type: money
      value: .25
    - switch: s_right_coin
      type: money
      value: 1
  pricing_tiers:
    - price: .50
      credits: 1
    - price: 2
      credits: 5
  fractional_credit_expiration_time: 15m
  credit_expiration_time: 2h
  persist_credits_while_off_time: 1h
  free_play_string: FREE PLAY
  credits_string: CREDITS
#config_version=5

modes:
    - credits

machine:
    min_balls: 0

switches:
    s_left_coin:
        number:
    s_center_coin:
        number:
    s_right_coin:
        number:
    s_esc:
        number:
    s_start:
        number:
        tags: start

coils:
    c_eject:
        number:

settings:
  replay_score:
    label: Replay Score
    values:
      500000: "500000 (default)"
      1000000: "1000000"
      1500000: "1500000"
    default: 500000
    key_type: int
    sort: 100

credits:
  max_credits: 12
  free_play: no
  service_credits_switch: s_esc
  switches:
    - switch: s_left_coin
      type: money
      value: .25
    - switch: s_center_coin
      type: money
      value: .25
    - switch: s_right_coin
      type: money
      value: 1
  events:
    - event: game_ending{current_player.score > settings.replay_score}
      type: award
      credits: 1
  pricing_tiers:
    - price: .50
      credits: 1
    - price: 2
      credits: 5
  fractional_credit_expiration_time: 15m
  credit_expiration_time: 2h
  persist_credits_while_off_time: 1h
  free_play_string: FREE PLAY
  credits_string: CREDITS

Mode config examples

Here are some example mode config files that go along with the machine-wide config above.

#config_version=5

mode:
  priority: 11000
  start_events: machine_reset_phase_3
  stop_on_ball_end: False