User Guide
Chapter 14 Creating Scripts 511
10 Add a compare function to the jump command to test to see if this track has been
selected with the random generator.
• Select the Compare Command checkbox.
• Choose GPRM 0 as the “Execute if” element to be compared to.
• Choose equal (=) as the “is” compare operation type.
• Choose Immediate as the “to” element type to compare.
• Enter 1 as the “with value.”
If GPRM 0 has a 1 in it (generated by the random number generator command), this
jump command occurs. If not, the script moves to the next command.
11 Add three additional jump command lines—one for each of the other three fictitious
tracks. The only differences are the Jump To settings which need to match each track
(Tracks and Stories > Beach > Marker 1; Tracks and Stories > Trail > Marker 1; and Tracks
and Stories > Shopping > Marker 1) and the immediate values in the compare
function’s “with value” field (use 2 for the Beach track, 3 for the Trail track, and 4 for the
Shopping track).
12 You need to configure the menu’s timeout setting by selecting the menu in the Outline
or Graphical tab, then clicking the General tab in the Menu Inspector. Choose Timeout
from the At End pop-up menu and enter a value (in seconds) for the timeout. Choose
this script (Random Play) from the Action pop-up menu.
Each time the menu sits idle for the specified amount of time, the script starts,
generates a random number, and then plays one of the four tracks. Once the track
ends, it jumps to the element specified by its End Jump setting.










