Name | Topic | Used in | Type |
---|---|---|---|
randomize | ![]() |
station | ![]() |
Randomizes a number before a station is displayed; you can then check-branch
for its value.
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>