
Hey all, I hope I am asking this in the right place and I hope that this has not been answered I am trying to make a roll template for attacks on my game, BUT I only want certain parts to show up depending on the choices of the attack For example we have the ability to use offence for attacks that do damage, but if you have a debuff you do not have damage <rolltemplate class="sheet-rolltemplate-WAR">
<div style="font-size:120%;padding-top:5px;margin-left:18px;margin-top:15px;background: #091623 ; color: #85d6ff ; width: 175px ; text-align: center ; min-height: 22px ; max-height: 22px">
W.A.R.
</div>
<table style="width:190px;min-height:30px">
<tbody>
<tr>
<th style="text-align:center">{{rollname}}
</th>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr>
<td style="width:50%">{{type}}:
</td>
<td style="padding-right:30px;padding-left: 0px;text-align:center">({{typevalue}})
</td>
</tr>
<tr>
<td style="width:50%">Roll:
</td>
<td style="padding-right:30px;padding-left: 0px;text-align:center">({{roll}})
</td>
</tr>
{{^type Affliction}}
<tr>
<td style="width:50%">{{damageorhealing}}
</td>
<td style="padding-right:30px;padding-left: 0px;text-align:center">({{damageorhealingvalue}})
</td>
</tr>
{{/type Affliction}}
</tbody>
</table>
<table>
<tr>
<td class="template_value"> Result: </td>
</tr>
<tr>
<td>
{{#rollTotal() roll 1}}
+0 Manoeuvre and -1 defence against first attack before your turn.
{{/rollTotal() roll 1}}
{{#rollTotal() roll 2}}
+0 Manoeuvre
{{/rollTotal() roll 2}}
{{#rollTotal() roll 3}}
+1 Manoeuvre
{{/rollTotal() roll 3}}
{{#rollTotal() roll 4}}
+1 Manoeuvre
{{/rollTotal() roll 4}}
{{#rollTotal() roll 5}}
+2 Manoeuvre
{{/rollTotal() roll 5}}
{{#rollTotal() roll 6}}
+2 Manoeuvre
{{/rollTotal() roll 6}}
{{#rollTotal() roll 7}}
+2 Manoeuvre
{{/rollTotal() roll 7}}
{{#rollTotal() roll 8}}
+3 Manoeuvre
{{/rollTotal() roll 8}}
{{#rollTotal() roll 9}}
+3 Manoeuvre
{{/rollTotal() roll 9}}
{{#rollTotal() roll 10}}
+3 Manoeuvre and +1 offence on the first attack
{{/rollTotal() roll 10}}
</td>
</tr>
</table>
<table>
<tbody>
<tr>
<td>Effects: {{description}}
</td>
</tr>
</tbody>
</table>
</rolltemplate>
Above is my current work in progress, the ^type Affliction tag is how I was hoping to work with it, but that did not work...any ideas? I am really hoping this will work, otherwise I am at a loss on how to handle this, and I really want roll templates :p