Usage of Game Variables #117
-
Hello, this question is about game variables, it is not about player or machine variables. Two simple questions: a) Can I create my own game variables (like I can create my own machine and player variables)? b) Can I display a game variable (own if a)=yes and/or build-in game variable) on a slide? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
A) Yes you can, but not like player and machine. Game is a specific mode that handles the Game mode of the machine. It is built to track the data and flow of a game. If you want to track extra variables by game you can modify the game code file and add your own. This would be via Python. Alternatively, use machine variables and just have a handler at game_ended/game_started (or whatever event you choose) to set the machine_var back to 0 (or your start value). B) As far as slides everything can be called and used depending how you move forward based on the above. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response. In regards to a) b) |
Beta Was this translation helpful? Give feedback.
A) Yes you can, but not like player and machine. Game is a specific mode that handles the Game mode of the machine. It is built to track the data and flow of a game. If you want to track extra variables by game you can modify the game code file and add your own. This would be via Python.
Alternatively, use machine variables and just have a handler at game_ended/game_started (or whatever event you choose) to set the machine_var back to 0 (or your start value).
B) As far as slides everything can be called and used depending how you move forward based on the above.