fvtt-crucible-rpg/templates/chat-generic-result.html

137 lines
3.8 KiB
HTML
Raw Normal View History

2022-07-19 23:16:03 +02:00
<div class="chat-message-header">
{{#if actorImg}}
<img class="actor-icon" src="{{actorImg}}" alt="{{alias}}" />
{{/if}}
<h4 class=chat-actor-name>{{alias}}</h4>
</div>
<hr>
{{#if img}}
<div >
<img class="chat-icon" src="{{img}}" alt="{{name}}" />
</div>
{{/if}}
<div class="flexcol">
</div>
<div>
<ul>
2022-08-10 14:41:40 +02:00
{{#if (eq rollOrder 1)}}
<li><strong>Roll with advantage - Roll 1</strong></li>
{{/if}}
{{#if (eq rollOrder 2)}}
<li><strong>Roll with advantage - Roll 2</strong></li>
{{/if}}
{{#if (eq rollOrder 3)}}
<li><strong>Roll with advantage - Final result !</strong></li>
2022-08-03 09:34:33 +02:00
{{/if}}
2022-08-10 14:41:40 +02:00
{{#if save}}
<li>Save : {{save.label}} - {{save.value}}d6
2022-08-04 16:28:10 +02:00
({{#each roll.terms.0.results as |die idx|}}
{{die.result}}&nbsp;
{{/each}})
</li>
{{/if}}
2022-07-25 21:33:00 +02:00
{{#if ability}}
2022-08-02 23:33:43 +02:00
<li>Ability : {{ability.label}} - {{ability.value}}d6
({{#each roll.terms.0.results as |die idx|}}
{{die.result}}&nbsp;
{{/each}})
</li>
2022-07-19 23:16:03 +02:00
{{/if}}
2022-08-03 09:34:33 +02:00
2022-07-25 21:33:00 +02:00
{{#if skill}}
2022-08-04 16:28:10 +02:00
<li>Skill : {{skill.name}} - {{skill.data.skilldice}}
2022-07-30 22:54:08 +02:00
{{#if featSL}}
- with Feat SL +{{featSL}}
{{/if}}
2022-08-02 23:33:43 +02:00
&nbsp;({{#each roll.terms.2.results as |die idx|}}
{{die.result}}&nbsp;
{{/each}})
2022-07-30 22:54:08 +02:00
</li>
2022-07-19 23:16:03 +02:00
{{/if}}
2022-07-31 19:32:54 +02:00
{{#if (eq advantage "advantage1")}}
2022-08-02 23:33:43 +02:00
<li>1 Advantage Die !
&nbsp;({{#each roll.terms.8.results as |die idx|}}
{{die.result}}&nbsp;
{{/each}})
</li>
2022-07-31 19:32:54 +02:00
{{/if}}
{{#if (eq advantage "advantage2")}}
2022-08-02 23:33:43 +02:00
<li>2 Advantage Dice !
&nbsp;({{#each roll.terms.8.results as |die idx|}}
{{die.result}}&nbsp;
{{/each}})
</li>
2022-07-31 19:32:54 +02:00
{{/if}}
2022-08-04 10:25:40 +02:00
{{#if (eq disadvantage "disadvantage1")}}
2022-08-02 23:33:43 +02:00
<li>1 Disadvantage Die !
&nbsp;({{#each roll.terms.10.results as |die idx|}}
{{die.result}}&nbsp;
{{/each}})
</li>
2022-07-30 22:54:08 +02:00
{{/if}}
2022-08-04 10:25:40 +02:00
{{#if (eq disadvantage "disadvantage2")}}
2022-08-02 23:33:43 +02:00
<li>2 Disadvantage Dice !
&nbsp;({{#each roll.terms.10.results as |die idx|}}
{{die.result}}&nbsp;
{{/each}})
</li>
2022-07-30 22:54:08 +02:00
{{/if}}
2022-07-31 19:32:54 +02:00
{{#if (eq rollAdvantage "roll-advantage")}}
<li>Roll with Advantage !</li>
{{/if}}
{{#if (eq rollAdvantage "roll-disadvantage")}}
<li>Roll with Disadvantage !</li>
{{/if}}
2022-08-01 21:39:17 +02:00
{{#if skillArmorPenalty}}
2022-08-02 23:33:43 +02:00
<li>Armor Penalty : {{skillArmorPenalty}} Disadvantage Dice
&nbsp;({{#each roll.terms.12.results as |die idx|}}
{{die.result}}&nbsp;
{{/each}})
</li>
2022-08-01 21:39:17 +02:00
{{/if}}
2022-07-31 19:32:54 +02:00
2022-08-01 21:39:17 +02:00
{{#if hasBonusDice}}
2022-08-02 23:33:43 +02:00
<li>Skill bonus dice : {{hasBonusDice}}
&nbsp;({{#each roll.terms.6.results as |die idx|}}
{{die.result}}&nbsp;
{{/each}})
</li>
2022-08-01 21:39:17 +02:00
{{/if}}
2022-07-31 19:48:23 +02:00
{{#if complexSkillDisadvantage}}
<li>Roll with Disadvantage because of Complex Skill at SL 0 !</li>
{{/if}}
2022-08-03 09:34:33 +02:00
{{#if hasFeatDie}}
2022-08-04 10:25:40 +02:00
<li>Feat Die : d10
2022-08-02 23:33:43 +02:00
&nbsp;({{#each roll.terms.4.results as |die idx|}}
{{die.result}}&nbsp;
{{/each}})
</li>
2022-07-30 22:54:08 +02:00
{{/if}}
2022-08-10 14:41:40 +02:00
{{#if useShield}}
<li>Shield : {{shield.name}} - {{shield.data.shielddie}}
({{#each roll.terms.14.results as |die idx|}}
{{die.result}}&nbsp;
{{/each}})
</li>
{{/if}}
2022-07-25 21:33:00 +02:00
<li><strong>Number of successes</strong> {{nbSuccess}} </li>
2022-07-19 23:16:03 +02:00
2022-07-25 21:33:00 +02:00
<!-- <button class="chat-card-button reroll-level-remaining" data-roll-id="{{rollId}}">Reroll</button> -->
2022-07-19 23:16:03 +02:00
</ul>
</div>
</div>