This repository has been archived on 2023-01-25. You can view files and clone it, but cannot push or open issues or pull requests.
fvtt-avd12/templates/dialogs/roll-dialog-generic.hbs

77 lines
2.5 KiB
Handlebars

<form class="skill-roll-dialog">
<header class="roll-dialog-header">
{{#if img}}
<img class="actor-icon" src="{{img}}" data-edit="img" title="{{name}}" />
{{/if}}
<h1 class="dialog-roll-title roll-dialog-header">{{title}}</h1>
</header>
<div class="flexcol">
{{#if skill}}
<div class="flexrow">
<span class="roll-dialog-label">Skill : </span>
<span class="roll-dialog-label">{{skill.name}} ({{skill.finalvalue}})</span>
</div>
{{/if}}
{{#if weapon}}
<div class="flexrow">
<span class="roll-dialog-label">Weapon Attack Bonus : </span>
<span class="roll-dialog-label">{{weapon.attackBonus}}</span>
</div>
{{/if}}
{{#if spell}}
<div class="flexrow">
<span class="roll-dialog-label">Spell : </span>
<span class="roll-dialog-label">{{spell.name}} ({{upperFirst spell.system.level}} - Cost : {{spellCost}})</span>
</div>
<div class="flexrow">
<span class="roll-dialog-label">Spell Attack level : </span>
<span class="roll-dialog-label">{{spellAttack}}</span>
</div>
<div class="flexrow">
<span class="roll-dialog-label">Spell Damage level : </span>
<span class="roll-dialog-label">{{spellDamage}}</span>
</div>
{{/if}}
<div class="flexrow">
<span class="roll-dialog-label">Bonus/Malus : </span>
<select id="bonusMalusRoll" name="bonusMalusRoll">
{{#select bonusMalusRoll}}
<option value="-4">-4</option>
<option value="-3">-3</option>
<option value="-2">-2</option>
<option value="-1">-1</option>
<option value="0">0</option>
<option value="1">+1</option>
<option value="2">+2</option>
<option value="3">+3</option>
<option value="4">+4</option>
{{/select}}
</select>
</div>
{{#if spell}}
{{else}}
<div class="flexrow">
<span class="roll-dialog-label">Target check : </span>
<select id="targetCheck" name="targetCheck">
{{#select targetCheck}}
<option value="none">None</option>
<option value="5">5 (Trivial)</option>
<option value="7">7 (Easy)</option>
<option value="10">10 (Regular)</option>
<option value="14">14 (Difficult)</option>
<option value="20">20 (Heroic)</option>
{{/select}}
</select>
</div>
{{/if}}
</div>
</form>