Setting custom values to use in the deck
The command to set one or more custom variables in the deck (without asking the user) is setvar
The parameters are;
- <name>=<value>
- <name>=<value>
- <name>=<value>
- ...........
- ...........
- ...........
Each variable name should be lowercase, begin with a letter and contain letters, numbers and the underscore character.
Examples;
- countdown=10
- player1=Stryke
- player2=Tinker
- score1=50
As with user input, values are stored with the deck (and backups). Variables can be used when programming deck buttons by prefixing the name with '$'.
Example - set the countdown variable, then use $countdown to initialise a timer.
Set the start value setvar countdown=300
Set up the timer countdown source=Timer value=$countdown trigger=22 |