QML - Create Your Own Adventure

Name Topic Used in Type
value States randomize attribute
The value-range of the randomized number. For example "-20 to 20", "10 to 30", or "1 to 6" if the players rolls a 6-sided dice. Every value inbetween the range has the same chance of appearing.
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>