Skip to content

Commit c529774

Browse files
authored
Merge pull request #605 from bosh/high_score_events
High score events
2 parents 55888c9 + f82f920 commit c529774

12 files changed

+236
-9
lines changed

docs/config/shots.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ be hit in order, or an event or series of events.
1919
Shots are used for things like standup targets, rollover lanes, drop
2020
targets, ramps, loops, orbits, etc.
2121

22-
Each shot can have a [*shot profile*](shot_profile.md) applied to it which defines what
22+
Each shot can have a [*shot profile*](shot_profiles.md) applied to it which defines what
2323
happens when its hit. For example the shot profile might specify that
2424
the shot starts unlit, then when it's hit it becomes complete. Or a
2525
shot profile might specify that it's flashing slowly, and each hit
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: (award_name)\_award_display
3+
---
4+
5+
# (award_name)\_award_display
6+
7+
8+
--8<-- "event.md"
9+
10+
Event is posted by [high_score](../config/high_score.md) built-in mode
11+
when a player has entered their name for an award.
12+
13+
This event will be posted along with [(category_name)\_award_display](category_name_award_display.md)
14+
and [high_score_award_display](high_score_award_display.md),
15+
so you can pick whichever name and level of specificity you prefer to hook
16+
on to, and do not need to check for all three.
17+
18+
## Keyword arguments
19+
20+
(See the [Conditional Events](overview/conditional.md)
21+
guide for details for how to create entries in your config file that
22+
only respond to certain combinations of the arguments below.)
23+
24+
#### `player_name`:
25+
26+
The letters that the player has entered as their name.
27+
28+
#### `award`:
29+
30+
The name of the award the player earned.
31+
32+
#### `value`:
33+
34+
The number value of the record. This may be score or the custom value used to rank the performance.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: (category_name)\_award_display
3+
---
4+
5+
# (category_name)\_award_display
6+
7+
8+
--8<-- "event.md"
9+
10+
Event is posted by [high_score](../config/high_score.md) built-in mode
11+
when a player has entered their name for an award.
12+
13+
This event will be posted along with [(award_name)\_award_display](award_name_award_display.md)
14+
and [high_score_award_display](high_score_award_display.md),
15+
so you can pick whichever name and level of specificity you prefer to hook
16+
on to, and do not need to check for all three.
17+
18+
## Keyword arguments
19+
20+
(See the [Conditional Events](overview/conditional.md)
21+
guide for details for how to create entries in your config file that
22+
only respond to certain combinations of the arguments below.)
23+
24+
#### `category_name`:
25+
26+
The name of the category for the event. This is included both in the event name and as the keyword argument "category_name".
27+
28+
#### `player_num`:
29+
30+
The number (1-4) of the player.
31+
32+
#### `player_name`:
33+
34+
The letters that the player has entered as their name.
35+
36+
#### `award`:
37+
38+
The name of the award the player earned.
39+
40+
#### `value`:
41+
42+
The number value of the record. This may be score or the custom value used to rank the performance.

docs/events/high_score/index.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: High Score event index
3+
---
4+
5+
# High Score events
6+
7+
8+
See: [high_score:](../../config/high_score.md)
9+
10+
* [high_score_enter_initials](../high_score_enter_initials.md)
11+
* [high_score_award_display](../high_score_award_display.md)
12+
* [text_input_high_score_complete](../text_input_high_score_complete.md)
13+
* [score_award_display](../score_award_display.md)
14+
* [(award_name)\_award_display](../award_name_award_display.md)
15+
* [(category_name)\_award_display](../category_name_award_display.md)
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: high_score_award_display
3+
---
4+
5+
# high_score_award_display
6+
7+
8+
--8<-- "event.md"
9+
10+
Event is posted by [high_score](../config/high_score.md) built-in mode
11+
when a player has entered their name for an award.
12+
13+
This event will be posted along with [(award_name)\_award_display](award_name_award_display.md)
14+
and [(category_name)\_award_display](category_name_award_display.md),
15+
so you can pick whichever name and level of specificity you prefer to hook
16+
on to, and do not need to check for all three.
17+
18+
## Keyword arguments
19+
20+
(See the [Conditional Events](overview/conditional.md)
21+
guide for details for how to create entries in your config file that
22+
only respond to certain combinations of the arguments below.)
23+
24+
#### `player_name`:
25+
26+
The letters that the player has entered as their name.
27+
28+
#### `award`:
29+
30+
The name of the award the player earned.
31+
32+
#### `value`:
33+
34+
The number value of the record. This may be score or the custom value used to rank the performance.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: high_score_enter_initials
3+
---
4+
5+
# high_score_enter_initials
6+
7+
8+
--8<-- "event.md"
9+
10+
Event is posted by [high_score](../config/high_score.md) built-in mode
11+
when requesting that a player enters their name for a record.
12+
13+
## Keyword arguments
14+
15+
(See the [Conditional Events](overview/conditional.md)
16+
guide for details for how to create entries in your config file that
17+
only respond to certain combinations of the arguments below.)
18+
19+
#### `player_num`:
20+
21+
The number (1-4) of the player.
22+
23+
#### `award`:
24+
25+
The name of the award the player earned.
26+
27+
#### `value`:
28+
29+
The number value of the record. This may be score or the custom value used to rank the performance.

docs/events/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,14 @@ will posted an event called *switch_s_left_slingshot_active*.
114114
* [extra_ball_group_(name)\_lit_awarded](extra_ball_group_extra_ball_group_lit_awarded.md)
115115
* [extra_ball_group_(name)_unlit](extra_ball_group_extra_ball_group_unlit.md)
116116

117+
* [High Score Events](high_score/index.md)
118+
* [high_score_enter_initials](high_score_enter_initials.md)
119+
* [high_score_award_display](high_score_award_display.md)
120+
* [text_input_high_score_complete](text_input_high_score_complete.md)
121+
* [score_award_display](score_award_display.md)
122+
* [(award_name)\_award_display](award_name_award_display.md)
123+
* [(category_name)\_award_display](category_name_award_display.md)
124+
117125
* [Kickback Events](kickbacks/index.md)
118126
* [kickback_(name)_fired](kickback_kickback_fired.md)
119127

docs/events/score_award_display.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: score_award_display
3+
---
4+
5+
# score_award_display
6+
7+
8+
--8<-- "event.md"
9+
10+
Event is posted by [high_score](../config/high_score.md) built-in mode
11+
when a player has entered their name for a score award. This is the standard
12+
record type that is included with the mode, and is actually just the "score"
13+
version of the event [(award_name)\_award_display](award_name_award_display.md).
14+
15+
## Keyword arguments
16+
17+
(See the [Conditional Events](overview/conditional.md)
18+
guide for details for how to create entries in your config file that
19+
only respond to certain combinations of the arguments below.)
20+
21+
#### `player_name`:
22+
23+
The letters that the player has entered as their name.
24+
25+
#### `award`:
26+
27+
The name of the award the player earned.
28+
29+
#### `value`:
30+
31+
The number value of the record. This may be score or the custom value used to rank the performance.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: text_input_high_score_complete
3+
---
4+
5+
# text_input_high_score_complete
6+
7+
8+
--8<-- "event.md"
9+
10+
Event is posted by the BCP integration for the [high_score](../config/high_score.md) built-in mode.
11+
When using the high_score built-in behaviors,
12+
13+
## Keyword arguments
14+
15+
(See the [Conditional Events](overview/conditional.md)
16+
guide for details for how to create entries in your config file that
17+
only respond to certain combinations of the arguments below.)
18+
19+
#### text:
20+
21+
The text value submitted for the current record. This value will be saved
22+
with the record and transmitted through the events
23+
[(award_name)\_award_display](award_name_award_display.md),
24+
[(category_name)\_award_display](category_name_award_display.md),
25+
and [high_score_award_display](high_score_award_display.md)
26+
so that any following slides may display the name back to the user.

docs/game_logic/high_scores/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: High Scores
77

88
Related Config File Sections:
99

10-
* [high_scores_in_ems](../../config/high_score.md)
10+
* [high_score:](../../config/high_score.md)
1111

1212
MPF includes support for high scores which is where players can enter
1313
their names (or initials) when they've achieved a high score. Features
@@ -379,12 +379,12 @@ Generically, these machine variables are:
379379

380380
## Related How To guides:
381381

382-
* [high_scores_in_ems](../scoring/index.md)
383-
* [high_scores_in_ems](../../game_design/index.md)
384-
* [High Scores in EM Machines](high_scores_in_ems.md)--
382+
* [Scoring](../scoring/index.md)
383+
* [How to design a game in MPF using Modes](../../game_design/index.md)
384+
* [High Scores in EM Machines](high_scores_in_ems.md)
385385

386386
## Related Events
387387

388+
* [High Score Events](../../events/high_score/index.md)
388389
* [mode_high_score_started](../../events/mode_name_started.md)
389-
* [mode_high_score_stopped](../../events/mode_name_stopped.md)--
390-
* [High Scores in EM Machines](high_scores_in_ems.md)
390+
* [mode_high_score_stopped](../../events/mode_name_stopped.md)

0 commit comments

Comments
 (0)