mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-08-30 19:52:29 +00:00
54 lines
5.1 KiB
Plaintext
54 lines
5.1 KiB
Plaintext
<%/*Template for a Single Skill
|
|
Parameters
|
|
name: Name of the Skill
|
|
category: Name for the Hide-Categorry
|
|
selected: Name of the Selectet Attribute*/%>
|
|
<!--Start <%= name %>-->
|
|
|
|
<input class="toggle-hide-skill" name="attr_skill_<%= category %><%= name %>_hide" type="checkbox" value="1"/>
|
|
<div class="flexcontainer skill">
|
|
<div class="flex--4">
|
|
<input class="skillfilter eye" name="attr_skill_<%= category %><%= name %>_hide" type="checkbox" value="1"/>
|
|
<span class="red" data-i18n="skill_<%= name %>"><%= name %></span>
|
|
</div>
|
|
<div class="flex-center flex--half">
|
|
<input class="smallinput first" type="number" name="attr_skill_<%= name %>_modifier" value="0" placeholder="0" title="@{skill_<%= name %>_modifier}" />
|
|
<select class="" name="attr_skill_<%= name %>_attribute" title="skill_<%= name %>_attribute">
|
|
<option value="display_body" data-i18n="body_short"<% if (selected=="body") { %> selected <% } %>>KON</option>
|
|
<option value="display_agility" data-i18n="agility_short"<% if (selected=="agility") { %> selected <% } %>>GES</option>
|
|
<option value="display_reaction" data-i18n="reaction_short"<% if (selected=="reaction") { %> selected <% } %>>REA</option>
|
|
<option value="display_strength" data-i18n="strength_short"<% if (selected=="strength") { %> selected <% } %>>STÄ</option>
|
|
<option value="display_willpower" data-i18n="willpower_short"<% if (selected=="willpower") { %> selected <% } %>>WIL</option>
|
|
<option value="display_logic" data-i18n="logic_short"<% if (selected=="logic") { %> selected <% } %> >LOG</option>
|
|
<option value="display_intuition" data-i18n="intuition_short"<% if (selected=="intuition") { %> selected <% } %>>INT</option>
|
|
<option value="display_charisma" data-i18n="charisma_short"<% if (selected=="charisma") { %> selected <% } %>>CHA</option>
|
|
<% if (selected=="resonance") { %><option value="display_resonance" data-i18n="resonance_short" selected>resonanz</option><% } %>
|
|
<% if (selected=="magic") { %><option value="display_magic" data-i18n="magic_short" selected>magic</option><% } %>
|
|
</select>
|
|
|
|
<input class="smallinput last" type="number" name="attr_skill_<%= name %>_total" value="0" placeholder="0" readonly/>
|
|
</div>
|
|
<div class="flex-center">
|
|
<button class="iconbutton" type="roll" name="roll_skill_<%= name %>_total" value="@{gm_toggle} &{template:roll}{{mainattribute=^{@{skill_<%= name %>_attribute}}}}{{secondattribute=^{skill_<%= name %>}}}{{dicepool=[[@{skill_<%= name %>_total} [Skill+Attribute+Modifier]+@{use_wounds} [Wounds] +@{sustain_malus} [Sunstain] +@{allmod}+@{mod_roll}[Test-Modifier]]]}}{{wilddieprop=[[@{wilddieprop}d6]]}}<%- include('dicetemplate.ejs', {pool: "(@{skill_" + name +"_total}+@{use_wounds}+@{sustain_malus}+@{allmod}+@{mod_roll}@{wilddiemod})"}); %>"/>
|
|
</div>
|
|
<div class="flex--60">
|
|
<input class="toggle-hide" name="attr_skill_<%= name %>_spec_roll_visibility" type="checkbox" value="1"/>
|
|
<span class="visible-spec"></span>
|
|
<span class="invisible-spec">
|
|
<button class="iconbutton70" type="roll" name="roll_skill_<%= name %>_total_spec" value="@{gm_toggle} &{template:roll}{{mainattribute=^{@{skill_<%= name %>_attribute}}}}{{secondattribute=^{skill_<%= name %>}}}{{specialisation=@{skill_<%= name %>_spec}}}{{wilddieprop=[[@{wilddieprop}d6]]}}<%- include('dicetemplate.ejs', {pool: "(@{skill_" + name +"_total} +2 +@{use_wounds}+@{sustain_malus}+@{allmod}+@{mod_roll}@{wilddiemod})"}); %>">
|
|
<span class="red" name="attr_skill_<%= name %>_spec" title="@{skill_<%= name %>_spec}"></span>
|
|
</button>
|
|
</span>
|
|
</div>
|
|
<div class="flex--60">
|
|
<input class="toggle-hide" name="attr_skill_<%= name %>_exp_roll_visibility" type="checkbox" value="1"/>
|
|
<span class="visible-exp"></span>
|
|
<span class="invisible-exp">
|
|
<button class="iconbutton70" type="roll" name="roll_skill_<%= name %>_total_exp" value="@{gm_toggle} &{template:roll}{{mainattribute=^{@{skill_<%= name %>_attribute}}}}{{secondattribute=^{skill_<%= name %>}}}{{expertise=@{skill_<%= name %>_exp}}}{{wilddieprop=[[@{wilddieprop}d6]]}}<%- include('dicetemplate.ejs', {pool: "(@{skill_" + name +"_total}+3+@{use_wounds}+@{sustain_malus}+@{allmod}+@{mod_roll}@{wilddiemod})"}); %>">
|
|
<span class="red" type="text" name="attr_skill_<%= name %>_exp" title="@{skill_<%= name %>_exp}"></span>
|
|
</button>
|
|
</span>
|
|
</div>
|
|
|
|
<div class="table-cell-rolls"></div>
|
|
</div><!--End of skill--> |