<dice>
Tag DocumentationThe <dice>
tag is used in Seven Spells of Destruction to initiate a standard six-sided die roll (1D6) for the current player, storing the result in a temporary state variable for use later in the paragraph logic.
This tag does not produce visible output or alter game text, but it does affect conditional logic through references to the generated dice value (e.g., for <if>
tests against the result).
<dice>
<if>
tests or navigation logic that reference the dice value.current_player.g_dice
, accessible for conditional logic later in the same paragraph.You come to a rickety bridge across a dark chasm. You must roll a die to determine your fate.
<dice>
<if dice gte 4> You cross safely. <br> <else> The bridge breaks and you fall! <br> <endif>
<d12>
and <2d6>
, but specifically rolls 1D6.