ssod

Tag Documentation: <2d6> – Two Six-Sided Dice Roll

The <2d6> tag instructs the game engine to roll two six-sided dice and store the result for use in later conditional logic. This tag is used in paragraphs where a dice-based event or test is about to occur.


🧩 Syntax

<2d6>

🎲 Behaviour

When <2d6> is encountered:


✅ Use With <if dice ...>

Once the dice have been rolled using <2d6>, you can conditionally branch using the result:

<if dice gt 9> You rolled high! <else> Not high enough. <endif>

This will compare the stored 2D6 result (range 2–12) with the condition.


⚠️ Notes


📘 Example

<2d6>
<if dice lt 6>
  You barely managed to react in time!
<else>
  You react confidently, unfazed.
<endif>

This rolls two dice and uses the result to determine how well the player responds.