timer (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.
#config_version=5
modes:
- mode_with_timers
- mode_with_timers2
Mode config examples¶
Here are some example mode config files that go along with the machine-wide config above.
Note that there are multiple mode config examples here. You might not necessarily use more than one in your machine.
#config_version=5
mode:
start_events: start_mode_with_timers
stop_events: stop_mode_with_timers
game_mode: false
timers:
timer_down:
debug: True
bcp: True
start_value: 5
end_value: 0
direction: down
tick_interval: 1.5s
start_running: no
control_events:
- event: start_timer_down
action: start
- event: reset_timer_down
action: reset
- event: pause_timer_down
action: pause
value: 2
- event: add_timer_down
action: add
value: 2
- event: subtract_timer_down
action: subtract
value: 2
timer_start_running:
debug: True
start_value: 0
end_value: 10
direction: up
tick_interval: 1s
start_running: yes
timer_restart_on_complete:
debug: True
start_value: 0
end_value: 5
direction: up
tick_interval: 1s
start_running: yes
restart_on_complete: yes
timer_up:
bcp: True
debug: True
start_value: 0
end_value: 10
max_value: 15
direction: up
tick_interval: 1s
start_running: no
control_events:
- event: start_timer_up
action: start
- event: reset_timer_up
action: reset
- event: stop_timer_up
action: stop
- event: restart_timer_up
action: restart
- event: jump_timer_up
action: jump
value: 5
- event: jump_over_max_timer_up
action: jump
value: 20
- event: add_timer_up
action: add
value: 2
- event: change_tick_interval_timer_up
action: change_tick_interval
value: 4
- event: set_tick_interval_timer_up
action: set_tick_interval
value: 2
- event: reset_tick_interval
action: reset_tick_interval
timer_player_var:
debug: True
start_value: current_player.start
end_value: current_player.end
direction: up
tick_interval: 1s
start_running: yes
timer_change_tick:
start_value: 30
end_value: 0
tick_interval: 1s
direction: down
start_running: no
control_events:
- event: timer_change_tick_start
action: start
- event: timer_change_tick_event
action: change_tick_interval
value: 0.1
#config_version=5
mode:
start_events: player_turn_started
stop_events: stop_mode_with_timers2
timers:
timer_start_with_game:
debug: True
start_value: 0
end_value: 10
direction: up
tick_interval: 1s
start_running: yes
timer_with_player_var_control_events:
start_value: 0
control_events:
- action: start
event: start_player_var_timer
- action: add
event: add_player_var_timer
value: current_player.timer_amount
- action: subtract
event: subtract_player_var_timer
value: current_player.timer_amount