File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ title: Machine Variables
4
4
5
5
# Machine Variables
6
6
7
-
8
7
MPF uses the concept of * machine variables* to track dynamically-created
9
8
variables that apply on a machine-wide basis. Machine variables are
10
9
similar in concept to
@@ -41,12 +40,17 @@ with your variable name. If you want to access the machine variable in a player,
41
40
` {machine.my_var_name} ` . In other words, when using the the first notation with the pipe symbol you access the value of the variable
42
41
as a string, in the latter case using the dot notation you access the value itself.
43
42
44
- Video about player and machine variables:
43
+ ### Video about machine and [ player variables] ( ../player_vars/index.md ) :
45
44
46
45
<div class =" video-wrapper " >
47
46
<iframe width =" 560 " height =" 315 " src =" https://www.youtube.com/embed/PUxEsNUGXPY " title =" YouTube video player " frameborder =" 0 " allow =" accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture " allowfullscreen ></iframe >
48
47
</div >
49
48
49
+ ## Related Configs
50
+
51
+ * [ machine_vars: Config Reference] ( ../config/machine_vars.md )
52
+ * [ variable_player: Config Reference] ( ../config/variable_player.md )
53
+
50
54
You can create your own machine variables in your configs. There are
51
55
also several machine variables that are automatically created. Here's a
52
56
list of the machine variables that are "built in" and available for
Original file line number Diff line number Diff line change @@ -4,19 +4,23 @@ title: Player Variables Reference
4
4
5
5
# Player Variables Reference
6
6
7
-
8
7
Here's a list of all the different "built in"
9
8
[ player variables] ( ../game_logic/players.md ) that MPF uses.
10
9
11
10
You can use these in your config files to trigger game logic or to
12
11
display as text on your display.
13
12
14
- Video about player and machine variables:
13
+ ### Video about player and [ machine variables] ( ../machine_vars/index.md ) :
15
14
16
15
<div class =" video-wrapper " >
17
16
<iframe width =" 560 " height =" 315 " src =" https://www.youtube.com/embed/PUxEsNUGXPY " title =" YouTube video player " frameborder =" 0 " allow =" accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture " allowfullscreen ></iframe >
18
17
</div >
19
18
19
+ ## Related Configs
20
+
21
+ * [ player_vars: Config Reference] ( ../config/player_vars.md )
22
+ * [ variable_player: Config Reference] ( ../config/variable_player.md )
23
+
20
24
Note that you can also create your own player variables in your configs,
21
25
and most likely your machine will have several orders of magnitude more
22
26
player variables than this list here.
You can’t perform that action at this time.
0 commit comments