QML - Create Your Own Adventure

Name Topic Used in Type
number States randomize attribute
The name of the number to randomize.
Sample:
<randomize number="dice" value="1 to 6" />
<if check="[dice] = 6 and [has beer]">
   <text>"Yes!"<break />You throw a 6 and win a beer.
   </text>

   <number name="beer" value="[beer] + 1"/>
   <choice station="bar">You get back</choice>
</if>
<else>
   <text>"Oh no..."<break />You don't win anything.
   </text>

   <choice station="bar">You get back</choice>
</else>