Hi there. First of all, I requested help in several topics and had awesome answers. Thx for all. :) Here is my last issue (and I will be able to complete my new sheet :D) Here is the roll template code : <rolltemplate class="sheet-rolltemplate-war2_combat">
<table>
<tr><th COLSPAN="2">{{name}}</th></tr>
<tr>
<tr>
<td COLSPAN="2">
<img class="sheet-imghr" src="<a href="https://lh3.googleusercontent.com/-ptR_NzBo340/VYslrf-t9NI/AAAAAAAAV4Q/rV7U24IJdAc/w745-h10-no/co_hr.png" rel="nofollow">https://lh3.googleusercontent.com/-ptR_NzBo340/VYslrf-t9NI/AAAAAAAAV4Q/rV7U24IJdAc/w745-h10-no/co_hr.png</a>" />
</td>
</tr>
<td class="tcat">Base :</td>
<td>{{Carac}} %</td>
</tr>
{{#Roll}}
<tr>
<td class="tcat">Jet :</td>
<td>{{Roll}}</td>
</tr>
<tr> {{#rollGreater() Roll Carac}}
<td COLSPAN="2" style="text-align:center;font-style:oblique;font-weight:bolder;color: #B31515;">Echec</td>
{{/rollGreater() Roll Carac}}
{{#rollLess() Roll Carac}}
<td class="tcat">Dégâts :</td>
<td>{{degats}}</td>
{{/rollLess() Roll Carac}}
{{/Roll}}
</tr>
<tr>
{{#rollWasCrit() degats }}
<tr>
<td class="tcat" style="font-style:oblique;font-weight:bolder;color: #3FB315;">Test Critique :</td>
<td>{{Rollbis}} </td>
</tr>
<tr>
{{#rollGreater() Rollbis Carac}}
<td COLSPAN="2" style="text-align:center;font-style:oblique;font-weight:bolder;color: #B31515;">Critique échoué</td>
{{/rollGreater() Rollbis Carac}}
{{#rollLess() Rollbis Carac}}
<td class="tcat" style="text-align:center;font-style:oblique;font-weight:bolder;color: #3FB315;">Dégâts critiques:</td>
<td>{{degatsbis}}</td>
{{/rollLess() Rollbis Carac}}
{{/rollWasCrit() degats }}
</tr>
<td COLSPAN="2">
<img class="sheet-imghr" src="<a href="https://lh3.googleusercontent.com/-ptR_NzBo340/VYslrf-t9NI/AAAAAAAAV4Q/rV7U24IJdAc/w745-h10-no/co_hr.png" rel="nofollow">https://lh3.googleusercontent.com/-ptR_NzBo340/VYslrf-t9NI/AAAAAAAAV4Q/rV7U24IJdAc/w745-h10-no/co_hr.png</a>" />
</td>
</tr>
</table>
</rolltemplate>
and the macro : <button type="roll" style="margin-left:0px;line_height:10px;height:20px;margin-bottom:2px;" title="Combat" name="roll_Arme1" value="&{template:war2_combat}{{name=@{Arme1_Nom}}} {{Carac=[[@{CC_Actuel}+?{mod|0}]]}} {{Roll=[[1D100cs<[[@{CC_Actuel}+?{mod|0}]]cf>[[@{CC_Actuel}+?{mod|0}]]]]}} {{Rollbis=[[1D100cs<[[@{CC_Actuel}+?{mod|0}]]cf>[[@{CC_Actuel}+?{mod|0}]]]]}}{{degats=[[1D10+@{Arme1_Deg}]]}} {{degatsbis=[[1D10!+@{Arme1_Deg}]]}} "></button> My problem is that when I have the rollbis roll in the macro, the template fails and display : FLÉAU 1M
Base :62 %
Jet :[[1D100cs<62cf>62]] If I remove it, it is working as intended : FLÉAU 1M
Base :62 %
Jet :44
Dégâts :12 I don't understand why the rollbis section is not working. rollbis is in a rollWasCrit trigger : when a player rolls 10 on the damage die, he has to roll for his attack to confirm the crit. If the crit is confirmed, then he rolls for damages again (and then rerolls for damages each time he rolls 10 on the damage die.). Moreover, the error seems to depend on where the Roll is located in the macro. Base :142 %
Jet :53
Dégâts :16
Test Critique :[[1D100cs<62cf>62]]
Dégâts critiques:10 Anyway not sure about that. I tried to have the same parameter (Roll) in the base and the crit checks. It is working (my crit conditional is working as intented) but it then displays the same value for the base roll and the crit confirmation roll (as intended since parameters are parsed before the macro is executed. So the Roll parameter only takes one value as expected and this value is used on the base and the crit checks. I want to have 2 rolls : base attack check and then crit confirmation check if a crit is possible. Again, thx for helping. Regards ! :)