Treasure roll

Coin

{% x = {d6} %}

{%if x <= Coinchance%}

{% Coinroll = {{$Coinbase}+{$Coinbonus}} %}

Roll {$Coinroll}d6*{$Coinmult}

{%end%}

{%if x > Coinchance%}

None

{%end%}

Goods

{% y = {d6} %}

{%if y <= Goodschance%}

Roll on "Goods" 
{%end%}

{%if y > Goodschance%}

None

{%end%}

Special item

{% z = {d100} %}

{%if z <= Specialchance%}

Roll on "Special item" 
{%end%}

{%if z > Specialchance%}

None
{%end%}