{(display: "Enemy")(display: "Log")(display: "You")}
{<div id="enemy">$ename HP: $ehp/$mhp.
</div>}
<div id="you">You: $hp/100
{(if: $turn is "you")[
(link: "Punch")[
(set: $ehp to it - 10)
(set: $atk to "Punch")
(set: $atkdmg to 10)
(set: $turn to "enemy")
(set: $log to "atk")
(goto: "Combat")]
(link: "Sword")[
(set: $ehp to it - 30)
(set: $atk to "Sword")
(set: $atkdmg to 30)
(set: $turn to "enemy")
(set: $log to "atk")
(goto: "Combat")]
]
(elseif: $turn is "enemy")[
(link: "Continue")[
(set: $log to "enemy")
(set: $turn to "you")
(set: $hp to it - $eatk)
(goto: "Combat")]
]
(if: $hp <1)[(goto: "Lose")]
(if: $ehp <1)[(goto: "Win")]
</div>}{<div id="log">
(if: $log is "you")[It is your turn.]
(elseif: $log is "atk")[You use '$atk' on the $ename, dealing $atkdmg damage.]
(elseif: $log is "enemy")[The $ename uses '$eatkname' on you, dealing $eatk damage.]
</div>}(link: "Fight the Mighty Dragon!")[
(set: $ehp to 200)
(set: $mhp to 200)
(set: $ename to "Dragon")
(set: $turn to "you")
(set: $hp to 100)
(set: $eatk to 15)
(set: $eatkname to "MOTHERF*CKING FIRE")
(goto: "Combat")]You win! Somehow, you win a fight against a dragon. How did you do that?You die. The moral of the story - Don't punch dragons.