Files
roll20-character-sheets-tester/Wrath and Glory API/wrath_and_glory_api.html
T

4962 lines
326 KiB
HTML

<!-- WRATH & GLORY Multi-tab character sheet integrated with the Wrath & Glory API Die Roller -->
<!-- Version: 3.1 Revised Edition -->
<input type="hidden" value="3.1" name="attr_sheetversion"/>
<input type="hidden" value="3.1" name="attr_release"/>
<!-- Begin Character sheets with Background -->
<div class="wrapper">
<!-- Character Header for PC's and NPC's -->
<div class="sheet-2colrow" width="100%">
<div class="sheet-col">
<div class="sheet-input">
<div class="sheet-input-name"></div>
<input type="text" name="attr_character_name" disabled value="@{character_name}" title="The Character's Name" style="font-weight:bold;font-size:150%;margin-top:5px;" />
</div>
<div style="margin-top:10px;margin-bottom:10px;">
&nbsp;&nbsp;<span class="sheet-archetype" name="attr_archetype" style="font-size:175%; text-shadow: 3px 3px 5px #0e3f36; font-weight:bold; font-style: italic; color: White;"></span>
</div>
</div>
</div>
<br>
&nbsp;&nbsp;<input type="checkbox" name="attr_roll-toggle" class="sheet-roll-useDice" value="1" title="check to use the standard Roll20 Dice Rolling mechanism vs the Wrath & Glory Dice Rolling API."/><Span class="sheet-block-text"><b> Use inline dice (vs API)?</b></span><br>
&nbsp;&nbsp;<input type="checkbox" name="attr_private" value="1" title="check to send your die roll to the GM only; if unchecked all dice rolls are public."/><Span class="sheet-block-text"><b> Private roll to the GM?</b></span><br>
<input type="hidden" type="number" name="attr_sendapistring" value="!wag"/>
<input type="hidden" type="number" name="attr_sendinlinestring" value="&"/>
<input type="hidden" type="number" name="attr_privateorpublic" value="@{private}"/>
&nbsp;&nbsp;<input type="radio" name="attr_selectSheet" class="sheet-view sheet-isPC" value="0" checked="checked" title="Select for PC and full-stated Adversaries."> <span><b>PC\Adversary</b></span>
<input type="radio" name="attr_selectSheet" class="sheet-view sheet-isNPC" value="1" title="Select if the character is an adversary not worthy of full stats, an Elite, Troop (solo or mob), or Monstrous Creature."><span><b>&nbsp;&nbsp;NPC</b></span>
<input type="radio" name="attr_selectSheet" class="sheet-view sheet-isVehicle" value="2" title="Select for a Vehicle."><span><b>&nbsp;&nbsp;Vehicle</b></span>
<input type="radio" name="attr_selectSheet" class="sheet-view sheet-isVoidship" value="3" title="Select for a Voidship."><span><b>&nbsp;&nbsp;Voidship</b></span>
<!-- ************************************** Main Characters and NPC's ************************************** -->
<!-- PC/NPC Hidden Fields -->
<input type="hidden" type="number" name="attr_WpnSkilAgilTotal" value="((@{AGLAdj}+@{WpnSkillBaseRat}))" />
<div class="sheet-multi-view sheet-isPC">
<!-- Sheet Tabs -->
<input type="radio" name="attr_page" class="sheet-tab sheet-tab1" value="1" checked="checked" /><span class="sheet-tab sheet-tab1" title="Character attributes and non-combat traits">Attributes</span>
<input type="radio" name="attr_page" class="sheet-tab sheet-tab2" value="2" /><span class="sheet-tab sheet-tab2">Skills</span>
<input type="radio" name="attr_page" class="sheet-tab sheet-tab3" value="3" /><span class="sheet-tab sheet-tab3">Combat</span>
<input type="radio" name="attr_page" class="sheet-tab sheet-tab4" value="4" /><span class="sheet-tab sheet-tab4">Powers</span>
<input type="radio" name="attr_page" class="sheet-tab sheet-tab5" value="5" /><span class="sheet-tab sheet-tab5">Equipment</span>
<input type="radio" name="attr_page" class="sheet-tab sheet-tab6" value="6" /><span class="sheet-tab sheet-tab6">Personal</span>
<input type="radio" name="attr_page" class="sheet-tab sheet-tab7" value="7" /><span class="sheet-tab sheet-tab7">Progression</span>
<hr class="sheet-two" width="100%"/>
<!-- TAB 1: Attributes -------------------------------------------------------------------------------------->
<div class="sheet-section sheet-section-pc1">
<!-- General Character Details -->
<div class="sheet-3colrow" width="95%">
<!-- COLUMN 1 -->
<div class="sheet-col">
<table>
<tr>
<td class="sheet-width-W15"><span class="sheet-background">Tier:</span></td>
<td class="sheet-width-W25">
<select class="sheet-meddropdown sheet-hover" name="attr_tier" value="1" title="Character Tier.">
<option value="1" selected="true">I</option>
<option value="2">II</option>
<option value="3">III</option>
<option value="4">IV</option>
<option value="5">V</option>
<option value="6">Custom</option>
</select>
</td>
<td class="sheet-width-W15">
<span class="sheet-tooltip" name="attr_TierAscensionNotes-tooltip" ></span>
<input type="checkbox" class="sheet-hover-hidden"/><span></span>
<textarea placeholder="Enter Tier Ascension notes here." class="sheet-tooltip sheet-width-W75" name="attr_TierAscensionNotes-tooltip" title="Tier Ascension Notes"></textarea>
</td>
<td class="sheet-width-W45 sheet-left"><span class="sheet-background sheet-right">Custom:</span>
<input class="sheet-2digitspin-button" type="number" name="attr_customtier" value="0" title="Custom Tier Value; use only if Tier is greater than 5."/>
</td>
</tr>
</table>
<table>
<tr>
<td class="sheet-width-W14"><span class="sheet-background">Rank:</span></td>
<td class="sheet-width-W15"><select class="sheet-smeddropdown" name="attr_rank" value="1" title="Character Rank/Rank Bonus.">
<option value="1" selected="true">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</td>
<td class="sheet-width-W70 sheet-left" colspan="2">
<input class="sheet-width-W60" type="text" readonly name="attr_ranktitle" value="Initiate" title="Rank Title">
</td>
</tr>
</table>
</div>
<!-- COLUMN 2 -->
<div class="sheet-col">
<table>
<tr>
<td class="sheet-width-W25"><span class="sheet-background sheet-pad-text">Species/Gender:</span></td>
<td class="sheet-width-W75"><input class="sheet-width-W95" type="text" name="attr_species" title="Character species and gender."/></td>
</tr>
<tr>
<td class="sheet-width-W25"><span class="sheet-background sheet-pad-text">Faction:</span></td>
<td class="sheet-width-W75"><input class="sheet-width-W95" type="text" name="attr_framework" title="Character Faction."/></td>
</tr>
</table>
</div>
<!-- COLUMN 3 -->
<div class="sheet-col">
<table>
<tr>
<td class="sheet-width-W25"><span class="sheet-background">Archetype:</span></td>
<td class="sheet-width-W75 sheet-left" colspan="3"><input class="sheet-width-W100 sheet-verylarge-textblock" type="text" name="attr_archetype"/></td>
</tr>
<tr>
<td class="sheet-width-W25"><span class="sheet-background sheet-pad-text">Faith:</span></td>
<td class="sheet-width-W25 sheet-left"><input class="sheet-bigspin-button" type="number" name="attr_faith" title="Character's Faith Score."/></td>
<td class="sheet-width-W25"><span class="sheet-background sheet-pad-text">Wrath:</span></td>
<td class="sheet-width-W25 sheet-left"><input class="sheet-bigspin-button" type="number" name="attr_wrath" title="Personal Ruin Pool of an adversary."/></td>
</tr>
</table>
</div>
</div>
<div>
<table>
<tr>
<td class="sheet-width-W5 sheet-left"><span class="sheet-background">Keywords:</span></td>
<td class="sheet-width-W95"><input class="sheet-width-W100" type="text" name="attr_keywords" title="Character keywords." style="width:98%;margin-left:4px;"/></td>
</tr>
</table>
<table>
<tr>
<td class="sheet-width-W6"></td>
<td class="sheet-width-W4 sheet-center"><input class="sheet-objective-checkbox sheet-center" type="checkbox" name="attr_keywordPsyker" value="1" title="Check if the character is a psyker; this applies 1/2 WillPower to the base DR of force weapons."/></td>
<td class="sheet-width-W90 sheet-left"><span class="sheet-background">Psyker</span></td>
</tr>
</table>
</div>
<!-- Attributes and Mental/Social Traits -->
<div class="sheet-2colrow" width="100%">
<!-- COLUMN 1 - Attributes -->
<div class="sheet-col">
<div class="sheet-header">Attributes</div>
<table>
<tr>
<th class="sheet-width-W15"><H3 class="header-override">Trait</H3></th>
<th class="sheet-width-W18"><H3>Rating</H3></th>
<th class="sheet-width-W10"><H3>+Adj</H3></th>
<th class="sheet-width-W20"><H3>Adj Rating</H3></th>
<th class="sheet-width-W15"><H3>Bonus Die</H3></th>
<th class="sheet-width-W15"><H3>Roll Mod</H3></th>
<th class="sheet-width-W7"><H3>Roll</H3></th>
</tr>
<tr>
<td><H5>Strength</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_STRBase" value="1" title="Base Strength rating."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_STRMod" value="0" title="Modifier to base Strength rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_STRAdj" disabled="true" value="((@{STRBase} + @{STRMod}))" title="Adjusted (Base + Modifier) Strength."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_STRBonusRoll" value="0" title="Number of Bonus Dice added to the Strength roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_STRRollMod" value="0" title="Modifier to the result of the die roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_STRnewbase" value="0" />
<input type="hidden" type="number" name="attr_STRwrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Strength test."
value="@{sendapistring} {{[[[[@{strnewbase}]]d6]]}} {{[[@{strwrath}d6]]}} --++Name++|@{character_name} --Attribute|Strength --Modifier|@{STRRollMod} --Wrath Die|Test"
name="roll_strength" style="font-size: 175%;">F</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Strength roll; bonus dice are added, modifiers are not applied."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} Tests Strength}} {{dice=[[@{STRAdj} + @{STRBonusRoll}]]}} {{roll=[[[[@{strnewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{strwrath}D6>4cs>6cf<1]]}}"
name="roll_dice4strength" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5>Agility</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_AGLBase" value="1" title="Base Agility rating."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_AGLMod" value="0" title="Modifier to base Agility rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_AGLAdj" disabled="true" value="((@{AGLBase} + @{AGLMod}))" title="Adjusted (Base + Modifier) Agility."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_AGLBonusRoll" value="0" title="Number of Bonus Dice added to the Agility roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_AGLRollMod" value="0" title="Modifier to the result of the die roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_AGLnewbase" value="0" />
<input type="hidden" type="number" name="attr_AGLwrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make an Agility test."
value="@{sendapistring} {{[[[[@{AGLnewbase}]]d6]]}} {{[[@{AGLwrath}d6]]}} --++Name++|@{character_name} --Attribute|Agility --Modifier|@{AGLRollMod} --Wrath Die|Test"
name="roll_agility" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Agility test; bonus dice are added, modifiers are not applied."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} Tests Agility}} {{dice=[[@{AGLAdj} + @{AGLBonusRoll}]]}} {{roll=[[[[@{AGLnewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{AGLwrath}D6>4cs>6cf<1]]}}"
name="roll_dice4agility" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5>Toughness</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_TGHBase" value="1" title="Base Toughness rating."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_TGHMod" value="0" title="Modifier to base Toughness rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_TGHAdj" disabled="true" value="((@{TGHBase} + @{TGHMod}))" title="Adjusted (Base + Modifier) Toughness."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_TGHBonusRoll" value="0" title="Number of Bonus Dice added to the Toughness roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_TGHRollMod" value="0" title="Modifier to the result of the die roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_TGHnewbase" value="0" />
<input type="hidden" type="number" name="attr_TGHwrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Toughness test."
value="@{sendapistring} {{[[[[@{TGHnewbase}]]d6]]}} {{[[@{TGHwrath}d6]]}} --++Name++|@{character_name} --Attribute|Toughness --Modifier|@{TGHRollMod} --Wrath Die|Test"
name="roll_toughness" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Toughness test; bonus dice are added, modifiers are not applied."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} Tests Toughness}} {{dice=[[@{TGHAdj} + @{TGHBonusRoll}]]}} {{roll=[[[[@{TGHnewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{TGHwrath}D6>4cs>6cf<1]]}}"
name="roll_dice4toughness" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5>Intellect</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_INTBase" value="1" title="Base Intellect rating."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_INTMod" value="0" title="Modifier to base Intellect rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_INTAdj" disabled="true" value="((@{INTBase} + @{INTMod}))" title="Adjusted (Base + Modifier) Intellect."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_INTBonusRoll" value="0" title="Number of Bonus Dice added to the Intellect roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_INTRollMod" value="0" title="Modifier to the result of the die roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_INTnewbase" value="0" />
<input type="hidden" type="number" name="attr_INTwrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make an Intellect test."
value="@{sendapistring} {{[[[[@{INTnewbase}]]d6]]}} {{[[@{INTwrath}d6]]}} --++Name++|@{character_name} --Attribute|Intellect --Modifier|@{INTRollMod} --Wrath Die|Test"
name="roll_intellect" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make an Intellect test; bonus dice are added, modifiers are not applied."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} Tests Intellect}} {{dice=[[@{INTAdj} + @{INTBonusRoll}]]}} {{roll=[[[[@{INTnewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{INTwrath}D6>4cs>6cf<1]]}}"
name="roll_dice4intellect" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5>Willpower</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_WILLBase" value="1" title="Base Willpower rating."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_WILLMod" value="0" title="Modifier to base Willpower rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_WILLAdj" disabled="true" value="((@{WILLBase} + @{WILLMod}))" title="Adjusted (Base + Modifier) Willpower."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_WILLBonusRoll" value="0" title="Number of Bonus Dice added to the Willpower roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_WILLRollMod" value="0" title="Modifier to the result of the die roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_WILLnewbase" value="0" />
<input type="hidden" type="number" name="attr_WILLwrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Willpower test."
value="@{sendapistring} {{[[[[@{WILLnewbase}]]d6]]}} {{[[@{WILLwrath}d6]]}} --++Name++|@{character_name} --Attribute|Willpower --Modifier|@{WILLRollMod} --Wrath Die|Test"
name="roll_willpower" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Willpower test; bonus dice are added, modifiers are not applied."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} Tests Willpower}} {{dice=[[@{WILLAdj} + @{WILLBonusRoll}]]}} {{roll=[[[[@{WILLnewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{WILLwrath}D6>4cs>6cf<1]]}}"
name="roll_dice4willpower" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5>Fellowship</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_FELBase" value="1" title="Base Fellowship rating."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_FELMod" value="0" title="Modifier to base Fellowship rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_FELAdj" disabled="true" value="((@{FELBase} + @{FELMod}))" title="Adjusted (Base + Modifier) Fellowship."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_FELBonusRoll" value="0" title="Number of Bonus Dice added to the Fellowship roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_FELRollMod" value="0" title="Modifier to the result of the die roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_FELnewbase" value="0" />
<input type="hidden" type="number" name="attr_FELwrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Fellowship test."
value="@{sendapistring} {{[[[[@{FELnewbase}]]d6]]}} {{[[@{FELwrath}d6]]}} --++Name++|@{character_name} --Attribute|Fellowship --Modifier|@{FELRollMod} --Wrath Die|Test"
name="roll_fellowship" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Fellowship test; bonus dice are added, modifiers are not applied."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} Tests Fellowship}} {{dice=[[@{FELAdj} + @{FELBonusRoll}]]}} {{roll=[[[[@{FELnewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{FELwrath}D6>4cs>6cf<1]]}}"
name="roll_dice4fellowship" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5>Initiative</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_INITBase" value="1" title="Base Initiative rating."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_INITMod" value="0" title="Modifier to base Initiative rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_INITAdj" disabled="true" value="((@{INITBase} + @{INITMod}))" title="Adjusted (Base + Modifier) Initiative."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_INITBonusRoll" value="0" title="Number of Bonus Dice added to the Initiative roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_INITRollMod" value="0" title="Modifier to the result of the die roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_INITnewbase" value="0" />
<input type="hidden" type="number" name="attr_INITwrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make an Initiative test; if this is a combat initiative roll, use 'roll initiative' on the combat tab."
value="@{sendapistring} {{[[[[@{INITnewbase}]]d6]]}} {{[[@{INITwrath}d6]]}} --++Name++|@{character_name} --Attribute|Initiative --Modifier|@{INITRollMod} --Wrath Die|Test"
name="roll_initiative" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make an Initiative test; bonus dice are added, modifiers are not applied. Use 'roll initiative' on the combat tab if this is a combat initiative roll."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} Tests Initiative}} {{dice=[[@{INITAdj} + @{INITBonusRoll}]]}} {{roll=[[[[@{INITnewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{INITwrath}D6>4cs>6cf<1]]}}"
name="roll_dice4initiative" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
</table>
</div>
<!-- COLUMN 2 - Mental/Social Traits -->
<div class="sheet-col">
<div class="sheet-header" title="Note: Combat Traits are on the Combat tab.">Mental/Social Traits</div>
<table>
<tr>
<th class="sheet-width-W15"><H3 class="header-override">Trait</H3></th>
<th class="sheet-width-W18"><H3>Rating</H3></th>
<th class="sheet-width-W10"><H3>Mod</H3></th>
<th class="sheet-width-W20"><H3>Adj Rating</H3></th>
<th class="sheet-width-W15"><H3>Bonus Die</H3></th>
<th class="sheet-width-W15"><H3>Roll Mod</H3></th>
<th class="sheet-width-W7"><H3>Roll</H3></th>
</tr>
<tr>
<td><H5>Conviction</H5></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" readonly name="attr_ConvBase" value="1" title="Base Conviction rating."/></span></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_ConvMod" value="0" title="Modifier to base Conviction rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_ConvAdj" readonly value="" title="Adjusted (Base + Modifier) Conviction."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_ConvBonusRoll" value="0" title="Number of Bonus Dice added to the Conviction roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_ConvRollMod" value="0" title="Modifier to the result of the die roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_Convnewbase" value="0" />
<input type="hidden" type="number" name="attr_Convwrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Conviction test."
value="@{sendapistring} {{[[[[@{Convnewbase}]]d6]]}} {{[[@{Convwrath}d6]]}} --++Name++|@{character_name} --Trait|Conviction --Modifier|@{ConvRollMod} --Wrath Die|Test"
name="roll_conviction" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Conviction test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Conviction test}} {{dice=[[@{ConvAdj} + @{ConvBonusRoll}]]}} {{roll=[[[[@{Convnewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{Convwrath}D6>4cs>6cf<1]]}}"
name="roll_dice4conviction" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5>Corruption</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_CorrBase" value="0" title="Total Corruption Points"/></td>
<td class="sheet-center"><span class="sheet-background sheet-pad-text">Level:</span></td>
<td class="sheet-left" colspan="2"><input class="sheet-width-W100" type="text" readonly name="attr_CorrLevel" title="Level of Corruption."/></td>
<td class="sheet-center" colspan="1"><span class="sheet-background sheet-pad-text">DN:</span></td>
<td class="sheet-left"><span class="sheet-circle"><input type="text" readonly name="attr_CorrResistDN" title="DN to resist Corruption; Base of 3 + Modifier from Corruption Level"/></span></td>
</tr>
<tr>
<td><H5>Resist Corr</H5></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" readonly name="attr_CorrResistBase" value="" title="Base number used for resisting corruption; equal to adjusted conviction."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_CorrResistMod" value="0" title="Modifier to base resist corruption roll."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" name="attr_CorrResistAdj" readonly value="" title="Adjusted (Base + Modifier) Resist Corruption."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_CorrResistBonusRoll" value="0" title="Number of Bonus Dice added to the Resist Corruption roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_CorrResistRollMod" value="0" title="Modifier to the result of the die roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_CorrResistNewbase" value="0" />
<input type="hidden" type="number" name="attr_CorrResistWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Resist Corruption test."
value="@{sendapistring} {{[[[[@{CorrResistNewbase}]]d6]]}} {{[[@{CorrResistWrath}d6]]}} --++Name++|@{character_name} --Test|Resist Corruption --Modifier|@{CorrResistRollMod} --Wrath Die|Test"
name="roll_resistcorruption" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Resist Corruption test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Resist Corruption test}} {{dice=[[@{CorrResistAdj} + @{CorrResistBonusRoll}]]}} {{roll=[[[[@{CorrResistNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{CorrResistWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4resistcorruption" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5>Passive Awareness</H5></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" readonly name="attr_PAwBase" value="1" title="Base Awareness rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_PAwMod" value="0" title="Modifier to base Awareness rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_PAwAdj" readonly value="" title="Adjusted (Base + Modifier) Awareness."/></span></td>
<td class="sheet-center" colspan="3"><span><i>Not Applicable</i></span></td>
</tr>
<tr>
<td><H5>Resolve</H5></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" readonly name="attr_ResvBase" value="1" title="Base Resolve rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_ResvMod" value="0" title="Modifier to base Resolve rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_ResvAdj" readonly value="" title="Adjusted (Base + Modifier) Resolve."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_ResvBonusRoll" value="0" title="Number of Bonus Dice added to the Resolve roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_ResvRollMod" value="0" title="Modifier to the result of the die roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_ResvNewbase" value="0" />
<input type="hidden" type="number" name="attr_ResvWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Resolve trait test."
value="@{sendapistring} {{[[[[@{ResvNewbase}]]d6]]}} {{[[@{ResvWrath}d6]]}} --++Name++|@{character_name} --Trait|Resolve --Modifier|@{ResvRollMod} --Wrath Die|Test"
name="roll_resolve" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Resolve test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Resolve test}} {{dice=[[@{ResvAdj} + @{ResvBonusRoll}]]}} {{roll=[[[[@{ResvNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{ResvWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4resolve" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5>Influence</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_InflBase" value="1" title="Base Influence rating = Fellowship -1, minimum of 1."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_InflMod" value="0" title="Modifier to base Influence rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_InflAdj" readonly value="" title="Adjusted (Base + Modifier) Influence."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_InflBonusRoll" value="0" title="Number of Bonus Dice added to the Influence roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_InflRollMod" value="0" title="Modifier to the result of the die roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_InflNewbase" value="0" />
<input type="hidden" type="number" name="attr_InflWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make an Influence test."
value="@{sendapistring} {{[[[[@{InflNewbase}]]d6]]}} {{[[@{InflWrath}d6]]}} --++Name++|@{character_name} --Trait|Influence --Modifier|@{InflRollMod} --Wrath Die|Test"
name="roll_influence" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make an Influence test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes an Influence test}} {{dice=[[@{InflAdj} + @{InflBonusRoll}]]}} {{roll=[[[[@{InflNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{InflWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4influence" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5>Wealth</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_WlthBase" value="1" title="Base Wealth rating."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_WlthMod" value="0" title="Modifier to base Wealth rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" readonly name="attr_WlthAdj" value="" title="Adjusted (Base + Modifier) Wealth."/></span></td>
<td class="sheet-center" colspan="3"><span><i>Not Applicable</i></span></td>
</tr>
</table>
</div>
</div>
</div>
<!-- Tab 2: SKILLS -------------------------------------------------------------------------------------->
<div class="sheet-section sheet-section-pc2">
<div class="sheet-header">Skills</div>
<table class="sheet-tableColorRows">
<tr>
<th class="sheet-width-W20"><H3 class="header-override">Skill</H3></th>
<th class="sheet-width-W9"><H3>Rating</H3></th>
<th class="sheet-width-W15"><H3>Linked Attribute</H3></th>
<th class="sheet-width-W9"><H3>Attr Rating</H3></th>
<th class="sheet-width-W9"><H3>Total</H3></th>
<th class="sheet-width-W9"><H3>Bonus Die</H3></th>
<th class="sheet-width-W9"><H3>Roll Mod</H3></th>
<th class="sheet-width-W10"><H3>Roll</H3></th>
<th class="sheet-width-W10"><H3>Assist</H3></th>
</tr>
<tr><!-- ATHLETICS -->
<td><H5 title="Physical prowess used for climbing, swimming, and acrobatics.">Athletics</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_AthBaseRat" value="0" title="Base Athletics score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_AthLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})" selected="true" >Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intellect</option>
<option value="(@{WILLAdj})">Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_AthAttrRat" disabled="true" value="((@{AthLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_AthTotal" disabled="true" value="((@{AthLinkedAttr}+@{AthBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_AthBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_AthRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_AthNewbase" value="0" />
<input type="hidden" type="number" name="attr_AthWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make an Athletics skill test."
value="@{sendapistring} {{[[[[@{AthNewbase}]]d6]]}} {{[[@{AthWrath}d6]]}} --++Name++|@{character_name} --Skill|Athletics --Modifier|@{AthRollMod} --Wrath Die|Test"
name="roll_athletics" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Athletics skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Athletics Skill test}} {{dice=[[@{AthTotal} + @{AthBonusRoll}]]}} {{roll=[[[[@{AthNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{AthWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4athletics" style="font-size: 175%;">F</button>
</button>
</td>
<!-- Assist Roll -->
<td class="sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Athletics skill."
value="@{sendapistring} {{[[[[@{AthTotal} + @{AthBonusRoll}]]d6]]}} --++Name++|@{character_name} --Skill|Athletics Assist --Modifier|@{AthRollMod}"
name="roll_athleticsAssist" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-assist" type="roll"
title="Click to make an Assist roll using the Athletics skill."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a Athletics Skill roll}} {{dice=[[@{AthTotal} + @{AthBonusRoll}]]}} {{roll=[[[[@{AthTotal} + @{AthBonusRoll}]]d6>4cs>6cf<0]]}}"
name="roll_dice4athleticsAssist" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr><!-- AWARENESS -->
<td><H5 title="Notice details or perceive hidden or obscured objects - including clues.">Awareness</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_AwareBaseRat" value="0" title="Base Awareness score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_AwareLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})" selected="true" >Intellect</option>
<option value="(@{WILLAdj})">Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_AwareAttrRat" disabled="true" value="((@{AwareLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_AwareTotal" disabled="true" value="((@{AwareLinkedAttr}+@{AwareBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_AwareBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_AwareRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_AwareNewbase" value="0" />
<input type="hidden" type="number" name="attr_AwareWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make an Awareness skill test."
value="@{sendapistring} {{[[[[@{AwareNewbase}]]d6]]}} {{[[@{AwareWrath}d6]]}} --++Name++|@{character_name} --Skill|Awareness --Modifier|@{AwareRollMod} --Wrath Die|Test"
name="roll_awareness" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make an Awareness skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Awareness Skill test}} {{dice=[[@{AwareTotal} + @{AwareBonusRoll}]]}} {{roll=[[[[@{AwareNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{AwareWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4awareness" style="font-size: 175%;">F</button>
</button>
</td>
<!-- Assist Roll -->
<td class="sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Awareness skill."
value="@{sendapistring} {{[[[[@{AwareTotal} + @{AwareBonusRoll}]]d6]]}} --++Name++|@{character_name} --Skill|Awareness Assist --Modifier|@{AwareRollMod}"
name="roll_awarenessAssist" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Awareness skill."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a Awareness Skill Assist roll}} {{dice=[[@{AwareTotal} + @{AwareBonusRoll}]]}} {{roll=[[[[@{AwareTotal} + @{AwareBonusRoll}]]d6>4cs>6cf<0]]}}"
name="roll_dice4awarenessAssist" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr><!-- BALLISTIC SKILL -->
<td><H5 title="Competency with firearms used to make attacks with ranged weapons, maintain/repair ranged weapons, and working knowledge of firearms. Optional Rule: requires Rating 1 to use for anything other than attacks.">Ballistic Skill</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_BallBaseRat" value="0" title="Base Ballistic score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_BallLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})" selected="true" >Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intellect</option>
<option value="(@{WILLAdj})">Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_BallAttrRat" disabled="true" value="((@{BallLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_BallTotal" disabled="true" value="((@{BallLinkedAttr}+@{BallBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_BallBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_BallRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_BallNewbase" value="0" />
<input type="hidden" type="number" name="attr_BallWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Ballistics skill test."
value="@{sendapistring} {{[[[[@{BallNewbase}]]d6]]}} {{[[@{BallWrath}d6]]}} --++Name++|@{character_name} --Skill|Ballistics --Modifier|@{BallRollMod} --Wrath Die|Test"
name="roll_ballistics" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Ballistics skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Ballistics Skill test}} {{dice=[[@{BallTotal} + @{BallBonusRoll}]]}} {{roll=[[[[@{BallNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{BallWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4ballistics" style="font-size: 175%;">F</button>
</button>
</td>
<!-- Assist Roll -->
<td class="sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Ballistics skill."
value="@{sendapistring} {{[[[[@{BallTotal} + @{BallBonusRoll}]]d6]]}} --++Name++|@{character_name} --Skill|Ballistics Assist --Modifier|@{BallRollMod}"
name="roll_ballisticsAssist" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Ballistics skill."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a Ballistics Skill Assist roll}} {{dice=[[@{BallTotal} + @{BallBonusRoll}]]}} {{roll=[[[[@{BallTotal} + @{BallBonusRoll}]]d6>4cs>6cf<0]]}}"
name="roll_dice4ballisticsAssist" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr><!-- CUNNING -->
<td><H5 title="Locate and interact with parties to obtain goods, services and information outside of traditional/official channels. Also used to question a witness or person of interest.">Cunning</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_CunnBaseRat" value="0" title="Base Cunning score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_CunnLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intellect</option>
<option value="(@{WILLAdj})">Willpower</option>
<option value="(@{FELAdj})" selected="true" >Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_CunnAttrRat" disabled="true" value="((@{CunnLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_CunnTotal" disabled="true" value="((@{CunnLinkedAttr}+@{CunnBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_CunnBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_CunnRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_CunnNewbase" value="0" />
<input type="hidden" type="number" name="attr_CunnWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Cunning skill test."
value="@{sendapistring} {{[[[[@{CunnNewbase}]]d6]]}} {{[[@{CunnWrath}d6]]}} --++Name++|@{character_name} --Skill|Cunning --Modifier|@{CunnRollMod} --Wrath Die|Test"
name="roll_Cunning" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Cunning skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Cunning Skill test}} {{dice=[[@{CunnTotal} + @{CunnBonusRoll}]]}} {{roll=[[[[@{CunnNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{CunnWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4Cunning" style="font-size: 175%;">F</button>
</button>
</td>
<!-- Assist Roll -->
<td class="sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Cunning skill."
value="@{sendapistring} {{[[[[@{CunnTotal} + @{CunnBonusRoll} ]]d6]]}} --++Name++|@{character_name} --Skill|Cunning Assist --Modifier|@{CunnRollMod}"
name="roll_CunningAssist" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Cunning skill."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a Cunning Skill Assist roll}} {{dice=[[@{CunnTotal} + @{CunnBonusRoll}]]}} {{roll=[[[[@{CunnTotal} + @{CunnBonusRoll}]]d6>4cs>6cf<0]]}}"
name="roll_dice4CunningAssist" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr><!-- DECEPTION -->
<td><H5 title="Tell a credible lie; resisted by Deception.">Deception</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_DecepBaseRat" value="0" title="Base Deception score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_DecepLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intellect</option>
<option value="(@{WILLAdj})">Willpower</option>
<option value="(@{FELAdj})" selected="true" >Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_DecepAttrRat" disabled="true" value="((@{DecepLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_DecepTotal" disabled="true" value="((@{DecepLinkedAttr}+@{DecepBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_DecepBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_DecepRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_DecepNewbase" value="0" />
<input type="hidden" type="number" name="attr_DecepWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Deception skill test."
value="@{sendapistring} {{[[[[@{DecepNewbase}]]d6]]}} {{[[@{DecepWrath}d6]]}} --++Name++|@{character_name} --Skill|Deception --Modifier|@{DecepRollMod} --Wrath Die|Test"
name="roll_Deception" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Deception skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Deception Skill test}} {{dice=[[@{DecepTotal} + @{DecepBonusRoll}]]}} {{roll=[[[[@{DecepNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{DecepWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4Deception" style="font-size: 175%;">F</button>
</button>
</td>
<!-- Assist Roll -->
<td class="sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Deception skill."
value="@{sendapistring} {{[[[[@{DecepTotal} + @{DecepBonusRoll}]]d6]]}} --++Name++|@{character_name} --Skill|Deception Assist --Modifier|@{DecepRollMod}"
name="roll_DeceptionAssist" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Deception skill."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a Deception Skill Assist roll}} {{dice=[[@{DecepTotal} + @{DecepBonusRoll}]]}} {{roll=[[[[@{DecepTotal} + @{DecepBonusRoll}]]d6>4cs>6cf<0]]}}"
name="roll_dice4DeceptionAssist" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr><!-- Insight -->
<td><H5 title="Determine motives, goals, read social clues, and see through lies. Resists Deception.">Insight</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_insightBaseRat" value="0" title="Base Insight score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_insightLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intellect</option>
<option value="(@{WILLAdj})">Willpower</option>
<option value="(@{FELAdj})" selected="true" >Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_insightAttrRat" disabled="true" value="((@{insightLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_insightTotal" disabled="true" value="((@{insightLinkedAttr}+@{insightBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_insightBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_insightRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_insightNewbase" value="0" />
<input type="hidden" type="number" name="attr_insightWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make an Insight skill test."
value="@{sendapistring} {{[[[[@{insightNewbase}]]d6]]}} {{[[@{insightWrath}d6]]}} --++Name++|@{character_name} --Skill|Insight --Modifier|@{insightRollMod} --Wrath Die|Test"
name="roll_Insight" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make an Insight skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Insight Skill test}} {{dice=[[@{insightTotal} + @{insightBonusRoll}]]}} {{roll=[[[[@{insightNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{insightWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4Insight" style="font-size: 175%;">F</button>
</button>
</td>
<!-- Assist Roll -->
<td class="sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Insight skill."
value="@{sendapistring} {{[[[[@{insightTotal} + @{insightBonusRoll}]]d6]]}} --++Name++|@{character_name} --Skill|Insight Assist --Modifier|@{insightRollMod}"
name="roll_InsightAssist" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Insight skill."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a Insight Skill Assist roll}} {{dice=[[@{insightTotal} + @{insightBonusRoll}]]}} {{roll=[[[[@{insightTotal} + @{insightBonusRoll}]]d6>4cs>6cf<0]]}}"
name="roll_dice4InsightAssist" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr><!-- INTIMIDATION -->
<td><H5 title="Frighten a foe into making a mistake in combat or exert force of will to cow an opponent into taking an action. Resisted by Intimidation or Resolve.">Intimidation</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_IntimBaseRat" value="0" title="Base Intimidation score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_IntimLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intellect</option>
<option value="(@{WILLAdj})" selected="true" >Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_IntimAttrRat" disabled="true" value="((@{IntimLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_IntimTotal" disabled="true" value="((@{IntimLinkedAttr}+@{IntimBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_IntimBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_IntimRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_IntimNewbase" value="0" />
<input type="hidden" type="number" name="attr_IntimWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make an Intimidation skill test."
value="@{sendapistring} {{[[[[@{IntimNewbase}]]d6]]}} {{[[@{IntimWrath}d6]]}} --++Name++|@{character_name} --Skill|Intimidation --Modifier|@{IntimRollMod} --Wrath Die|Test"
name="roll_Intimidation" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make an Intimidation skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Intimidation Skill test}} {{dice=[[@{IntimTotal} + @{IntimBonusRoll}]]}} {{roll=[[[[@{IntimNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{IntimWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4Intimidation" style="font-size: 175%;">F</button>
</button>
</td>
<!-- Assist Roll -->
<td class="sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Intimidation skill."
value="@{sendapistring} {{[[[[@{IntimTotal} + @{IntimBonusRoll}]]d6]]}} --++Name++|@{character_name} --Skill|Intimidation Assist --Modifier|@{IntimRollMod}"
name="roll_IntimidationAssist" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Intimidation skill."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a Intimidation Skill Assist roll}} {{dice=[[@{IntimTotal} + @{IntimBonusRoll}]]}} {{roll=[[[[@{IntimTotal} + @{IntimBonusRoll}]]d6>4cs>6cf<0]]}}"
name="roll_dice4IntimidationAssist" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr><!-- INVESTIGATION -->
<td><H5 title="Research and assemble clues into a coherent picture by revealing motives and inconsistencies.">Investigation</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_InvestBaseRat" value="0" title="Base Investigation score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_InvestLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})" selected="true" >Intellect</option>
<option value="(@{WILLAdj})">Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_InvestAttrRat" disabled="true" value="((@{InvestLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_InvestTotal" disabled="true" value="((@{InvestLinkedAttr}+@{InvestBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_InvestBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_InvestRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_InvestNewbase" value="0" />
<input type="hidden" type="number" name="attr_InvestWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make an Investigation skill test."
value="@{sendapistring} {{[[[[@{InvestNewbase}]]d6]]}} {{[[@{InvestWrath}d6]]}} --++Name++|@{character_name} --Skill|Investigation --Modifier|@{InvestRollMod} --Wrath Die|Test"
name="roll_Investigation" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make an Investigation skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Investigation Skill test}} {{dice=[[@{InvestTotal} + @{InvestBonusRoll}]]}} {{roll=[[[[@{InvestNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{InvestWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4Investigation" style="font-size: 175%;">F</button>
</button>
</td>
<!-- Assist Roll -->
<td class="sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Investigation skill."
value="@{sendapistring} {{[[[[@{InvestTotal} + @{InvestBonusRoll}]]d6]]}} --++Name++|@{character_name} --Skill|Investigation Assist --Modifier|@{InvestRollMod}"
name="roll_InvestigationAssist" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Investigation skill."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a Investigation Skill Assist roll}} {{dice=[[@{InvestTotal} + @{InvestBonusRoll}]]}} {{roll=[[[[@{InvestTotal} + @{InvestBonusRoll}]]d6>4cs>6cf<0]]}}"
name="roll_dice4InvestigationAssist" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr><!-- LEADERSHIP -->
<td><H5 title="Execute a strategy without error, inspire to exceed abilities through encouragement or intimidation. Used to remove combat effects.">Leadership</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_LeadBaseRat" value="0" title="Base Leadership score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_LeadLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intellect</option>
<option value="(@{WILLAdj})" selected="true" >Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_LeadAttrRat" disabled="true" value="((@{LeadLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_LeadTotal" disabled="true" value="((@{LeadLinkedAttr}+@{LeadBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_LeadBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_LeadRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_LeadNewbase" value="0" />
<input type="hidden" type="number" name="attr_LeadWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Leadership skill test."
value="@{sendapistring} {{[[[[@{LeadNewbase}]]d6]]}} {{[[@{LeadWrath}d6]]}} --++Name++|@{character_name} --Skill|Leadership --Modifier|@{LeadRollMod} --Wrath Die|Test"
name="roll_Leadership" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Leadership skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Leadership Skill test}} {{dice=[[@{LeadTotal} + @{LeadBonusRoll}]]}} {{roll=[[[[@{LeadNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{LeadWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4Leadership" style="font-size: 175%;">F</button>
</button>
</td>
<!-- Assist Roll -->
<td class="sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Leadership skill."
value="@{sendapistring} {{[[[[@{LeadTotal} + @{LeadBonusRoll}]]d6]]}} --++Name++|@{character_name} --Skill|Leadership Assist --Modifier|@{LeadRollMod}"
name="roll_LeadershipAssist" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Leadership skill."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a Leadership Skill Assist roll}} {{dice=[[@{LeadTotal} + @{LeadBonusRoll}]]}} {{roll=[[[[@{LeadTotal} + @{LeadBonusRoll}]]d6>4cs>6cf<0]]}}"
name="roll_dice4LeadershipAssist" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr><!-- MEDICAE -->
<td><H5 title="Diagnose and heal wounds, cure diseases, counter toxins, and other problems of the physical body. Optional Rule: requires Rating 1 to use.">Medicae</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_MediBaseRat" value="0" title="Base Medicae score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_MediLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})" selected="true" >Intellect</option>
<option value="(@{WILLAdj})">Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_MediAttrRat" disabled="true" value="((@{MediLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_MediTotal" disabled="true" value="((@{MediLinkedAttr}+@{MediBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_MediBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_MediRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_MediNewbase" value="0" />
<input type="hidden" type="number" name="attr_MediWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Medicae skill test."
value="@{sendapistring} {{[[[[@{MediNewbase}]]d6]]}} {{[[@{MediWrath}d6]]}} --++Name++|@{character_name} --Skill|Medicae --Modifier|@{MediRollMod} --Wrath Die|Test"
name="roll_Medicae" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Medicae skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Medicae Skill test}} {{dice=[[@{MediTotal} + @{MediBonusRoll}]]}} {{roll=[[[[@{MediNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{MediWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4Medicae" style="font-size: 175%;">F</button>
</button>
</td>
<!-- Assist Roll -->
<td class="sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Medicae skill."
value="@{sendapistring} {{[[[[@{MediTotal} + @{MediBonusRoll}]]d6]]}} --++Name++|@{character_name} --Skill|Medicae Assist --Modifier|@{MediRollMod}"
name="roll_MedicaeAssist" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Medicae skill."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a Medicae Skill Assist roll}} {{dice=[[@{MediTotal} + @{MediBonusRoll}]]}} {{roll=[[[[@{MediTotal} + @{MediBonusRoll}]]d6>4cs>6cf<0]]}}"
name="roll_dice4MedicaeAssist" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr><!-- PERSUASION -->
<td><H5 title="Use logic, emotional requests, and seduction to persuade an opponent into taking an action. Resisted by itself or Resolve.">Persuasion</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_PersBaseRat" value="0" title="Base Persuasion score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_PersLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intellect</option>
<option value="(@{WILLAdj})">Willpower</option>
<option value="(@{FELAdj})" selected="true" >Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_PersAttrRat" disabled="true" value="((@{PersLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_PersTotal" disabled="true" value="((@{PersLinkedAttr}+@{PersBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_PersBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_PersRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_PersNewbase" value="0" />
<input type="hidden" type="number" name="attr_PersWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Persuasion skill test."
value="@{sendapistring} {{[[[[@{PersNewbase}]]d6]]}} {{[[@{PersWrath}d6]]}} --++Name++|@{character_name} --Skill|Persuasion --Modifier|@{PersRollMod} --Wrath Die|Test"
name="roll_PersuasionAssist" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Persuasion skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Persuasion Skill roll}} {{dice=[[@{PersTotal} + @{PersBonusRoll}]]}} {{roll=[[[[@{PersNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{PersWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4PersuasionAssist" style="font-size: 175%;">F</button>
</button>
</td>
<!-- Assist Roll -->
<td class="sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Persuasion skill."
value="@{sendapistring} {{[[[[@{PersTotal} + @{PersBonusRoll}]]d6]]}} --++Name++|@{character_name} --Skill|Persuasion Assist --Modifier|@{PersRollMod}"
name="roll_PersuasionAssist" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Persuasion skill."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a Persuasion Skill Assist roll}} {{dice=[[@{PersTotal} + @{PersBonusRoll}]]}} {{roll=[[[[@{PersTotal} + @{PersBonusRoll}]]d6>4cs>6cf<0]]}}"
name="roll_dice4PersuasionAssist" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr><!-- PILOT -->
<td><H5 title="Driving a land, sea, air or void vehicle. Opposed by itself in a chase. Optional Rule: requires Rating 1 to use.">Pilot</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_PilotBaseRat" value="0" title="Base Pilot score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_PilotLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})" selected="true" >Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intellect</option>
<option value="(@{WILLAdj})">Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_PilotAttrRat" disabled="true" value="((@{PilotLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_PilotTotal" disabled="true" value="((@{PilotLinkedAttr}+@{PilotBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_PilotBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_PilotRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_PilotNewbase" value="0" />
<input type="hidden" type="number" name="attr_PilotWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Pilot skill test."
value="@{sendapistring} {{[[[[@{PilotNewbase}]]d6]]}} {{[[@{PilotWrath}d6]]}} --++Name++|@{character_name} --Skill|Pilot --Modifier|@{PilotRollMod} --Wrath Die|Test"
name="roll_Pilot" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Pilot skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Pilot Skill test}} {{dice=[[@{PilotTotal} + @{PilotBonusRoll}]]}} {{roll=[[[[@{PilotNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{PilotWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4Pilot" style="font-size: 175%;">F</button>
</button>
</td>
<!-- Assist Roll -->
<td class="sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Pilot skill."
value="@{sendapistring} {{[[[[@{PilotTotal} + @{PilotBonusRoll}]]d6]]}} --++Name++|@{character_name} --Skill|Pilot Assist --Modifier|@{PilotRollMod}"
name="roll_PilotAssist" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Pilot skill."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a Pilot Skill Assist roll}} {{dice=[[@{PilotTotal} + @{PilotBonusRoll}]]}} {{roll=[[[[@{PilotTotal} + @{PilotBonusRoll}]]d6>4cs>6cf<0]]}}"
name="roll_dice4PilotAssist" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr><!-- PSYCHIC MASTERY -->
<td><H5 title="Activate psychic powers; requires Psyker keyword.">Psychic Mastery</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_PsychicBaseRat" value="0" title="Base Psychic Mastery score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_PsychicLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intellect</option>
<option value="(@{WILLAdj})" selected="true" >Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_PsychicAttrRat" disabled="true" value="((@{PsychicLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_PsychicTotal" disabled="true" value="((@{PsychicLinkedAttr}+@{PsychicBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_PsychicBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_PsychicRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_PsychicNewbase" value="0" />
<input type="hidden" type="number" name="attr_PsychicWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Psychic Mastery skill test."
value="@{sendapistring} {{[[[[@{PsychicNewbase}]]d6]]}} {{[[@{PsychicWrath}d6]]}} {{[[1d6]]}} --++Name++|@{character_name} --Skill|Psychic Mastery --Modifier|@{PsychicRollMod} --Wrath Die|Test"
name="roll_PsychicMastery" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Psychic Mastery skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Psychic Mastery Skill test}} {{dice=[[@{PsychicTotal} + @{PsychicBonusRoll}]]}} {{roll=[[[[@{PsychicNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{PsychicWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4PsychicMastery" style="font-size: 175%;">F</button>
</button>
</td>
<!-- Assist Roll -->
<td class="sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Psychic Mastery skill."
value="@{sendapistring} {{[[[[@{PsychicTotal} + @{PsychicBonusRoll}]]d6]]}} --++Name++|@{character_name} --Skill|Psychic Mastery Assist --Modifier|@{PsychicRollMod}"
name="roll_PsychicMasteryAssist" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Psychic Mastery skill."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a Psychic Mastery Skill Assist roll}} {{dice=[[@{PsychicTotal} + @{PsychicBonusRoll}]]}} {{roll=[[[[@{PsychicTotal} + @{PsychicBonusRoll}]]d6>4cs>6cf<0]]}}"
name="roll_dice4PsychicMasteryAssist" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr><!-- Scholar -->
<td><H5 title="Measure of understanding of the greater world; includes forbidden lore and public information. Optional Rule: requires Rating 1 to use.">Scholar</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_SchoBaseRat" value="0" title="Base Scholar score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_SchoLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})" selected="true" >Intellect</option>
<option value="(@{WILLAdj})">Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_SchoAttrRat" disabled="true" value="((@{SchoLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_SchoTotal" disabled="true" value="((@{SchoLinkedAttr}+@{SchoBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_SchoBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_SchoRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_SchoNewbase" value="0" />
<input type="hidden" type="number" name="attr_SchoWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Scholar skill test."
value="@{sendapistring} {{[[[[@{SchoNewbase}]]d6]]}} {{[[@{SchoWrath}d6]]}} --++Name++|@{character_name} --Skill|Scholar --Modifier|@{SchoRollMod} --Wrath Die|Test"
name="roll_Scholar" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Scholar skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Scholar Skill test}} {{dice=[[@{SchoTotal} + @{SchoBonusRoll}]]}} {{roll=[[[[@{SchoNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{SchoWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4Scholar" style="font-size: 175%;">F</button>
</button>
</td>
<!-- Assist Roll -->
<td class="sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Scholar skill."
value="@{sendapistring} {{[[[[@{SchoTotal} + @{SchoBonusRoll}]]d6]]}} --++Name++|@{character_name} --Skill|Scholar Assist --Modifier|@{SchoRollMod}"
name="roll_ScholarAssist" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Scholar skill."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a Scholar Skill Assist roll}} {{dice=[[@{SchoTotal} + @{SchoBonusRoll}]]}} {{roll=[[[[@{SchoTotal} + @{SchoBonusRoll}]]d6>4cs>6cf<0]]}}"
name="roll_dice4ScholarAssist" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr><!-- STEALTH -->
<td><H5 title="Remain unnoticed through concealment and bypass security measures.">Stealth</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_StealthBaseRat" value="0" title="Base Stealth score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_StealthLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})" selected="true" >Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intellect</option>
<option value="(@{WILLAdj})">Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_StealthAttrRat" disabled="true" value="((@{StealthLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_StealthTotal" disabled="true" value="((@{StealthLinkedAttr}+@{StealthBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_StealthBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_StealthRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_StealthNewbase" value="0" />
<input type="hidden" type="number" name="attr_StealthWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Stealth skill test."
value="@{sendapistring} {{[[[[@{StealthNewbase}]]d6]]}} {{[[@{StealthWrath}d6]]}} --++Name++|@{character_name} --Skill|Stealth --Modifier|@{StealthRollMod} --Wrath Die|Test"
name="roll_Stealth" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Stealth skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Stealth Skill test}} {{dice=[[@{StealthTotal} + @{StealthBonusRoll}]]}} {{roll=[[[[@{StealthNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{StealthWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4Stealth" style="font-size: 175%;">F</button>
</button>
</td>
<!-- Assist Roll -->
<td class="sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Stealth skill."
value="@{sendapistring} {{[[[[@{StealthTotal} + @{StealthBonusRoll}]]d6]]}} --++Name++|@{character_name} --Skill|Stealth Assist --Modifier|@{StealthRollMod}"
name="roll_StealthAssist" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Stealth skill."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a Stealth Skill Assist roll}} {{dice=[[@{StealthTotal} + @{StealthBonusRoll}]]}} {{roll=[[[[@{StealthTotal} + @{StealthBonusRoll}]]d6>4cs>6cf<0]]}}"
name="roll_dice4StealthAssist" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr><!-- SURVIVAL -->
<td><H5 title="find basic provisions, secure shelter, navigate surface, and tracking. Optional Rule: requires Rating 1 to use.">Survival</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_SurvBaseRat" value="0" title="Base Survival score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_SurvLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intellect</option>
<option value="(@{WILLAdj})" selected="true" >Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_SurvAttrRat" disabled="true" value="((@{SurvLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_SurvTotal" disabled="true" value="((@{SurvLinkedAttr}+@{SurvBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_SurvBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_SurvRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_SurvNewbase" value="0" />
<input type="hidden" type="number" name="attr_SurvWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Survival skill test."
value="@{sendapistring} {{[[[[@{SurvNewbase}]]d6]]}} {{[[@{SurvWrath}d6]]}} --++Name++|@{character_name} --Skill|Survival --Modifier|@{SurvRollMod} --Wrath Die|Test"
name="roll_Survival" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Survival skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Survival Skill test}} {{dice=[[@{SurvTotal} + @{SurvBonusRoll}]]}} {{roll=[[[[@{SurvNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{SurvWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4Survival" style="font-size: 175%;">F</button>
</button>
</td>
<!-- Assist Roll -->
<td class="sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Survival skill."
value="@{sendapistring} {{[[[[@{SurvTotal} + @{SurvBonusRoll}]]d6]]}} --++Name++|@{character_name} --Skill|Survival Assist --Modifier|@{SurvRollMod}"
name="roll_SurvivalAssist" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Survival skill."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a Survival Skill Assist roll}} {{dice=[[@{SurvTotal} + @{SurvBonusRoll}]]}} {{roll=[[[[@{SurvTotal} + @{SurvBonusRoll}]]d6>4cs>6cf<0]]}}"
name="roll_dice4SurvivalAssist" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr><!-- TECH -->
<td><H5 title="Utilize, maintain, and repair technology. Optional Rule: requires Rating 1 to use.">Tech</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_TechBaseRat" value="0" title="Base Tech score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_TechLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})" selected="true" >Intellect</option>
<option value="(@{WILLAdj})">Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_TechAttrRat" disabled="true" value="((@{TechLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_TechTotal" disabled="true" value="((@{TechLinkedAttr}+@{TechBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_TechBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_TechRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_TechNewbase" value="0" />
<input type="hidden" type="number" name="attr_TechWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Tech skill test."
value="@{sendapistring} {{[[[[@{TechNewbase}]]d6]]}} {{[[@{TechWrath}d6]]}} --++Name++|@{character_name} --Skill|Tech --Modifier|@{TechRollMod} --Wrath Die|Test"
name="roll_Tech" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Tech skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Tech Skill test}} {{dice=[[@{TechTotal} + @{TechBonusRoll}]]}} {{roll=[[[[@{TechNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{TechWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4Tech" style="font-size: 175%;">F</button>
</button>
</td>
<!-- Assist Roll -->
<td class="sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Tech skill."
value="@{sendapistring} {{[[[[@{TechTotal} + @{TechBonusRoll}]]d6]]}} --++Name++|@{character_name} --Skill|Tech Assist --Modifier|@{TechRollMod}"
name="roll_TechAssist" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Tech skill."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a Tech Skill Assist roll}} {{dice=[[@{TechTotal} + @{TechBonusRoll}]]}} {{roll=[[[[@{TechTotal} + @{TechBonusRoll}]]d6>4cs>6cf<0]]}}"
name="roll_dice4TechAssist" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr><!-- WEAPON SKILL -->
<td><H5 title="Competency in armed and unarmed melee, conduct maintenance of melee weapons, and familiarity with rare or unknown weapons. Optional Rule: requires Rating 1 to use for anything other than attacks.">Weapon Skill</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_WpnSkillBaseRat" value="0" title="Base Weapon Skill score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_WpnSkillLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intellect</option>
<option value="(@{WILLAdj})">Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})" selected="true" >Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_WpnSkillAttrRat" disabled="true" value="((@{WpnSkillLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_WpnSkillTotal" disabled="true" value="((@{WpnSkillLinkedAttr}+@{WpnSkillBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_WpnSkillBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_WpnSkillRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<input type="hidden" type="number" name="attr_WpnSkillNewbase" value="0" />
<input type="hidden" type="number" name="attr_WpnSkillWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Weapons Skill test."
value="@{sendapistring} {{[[[[@{WpnSkillNewbase}]]d6]]}} {{[[@{WpnSkillWrath}d6]]}} --++Name++|@{character_name} --Skill|Weapon Skill --Modifier|@{WpnSkillRollMod} --Wrath Die|Test"
name="roll_WeaponSkill" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Weapons Skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Weapons Skill test}} {{dice=[[@{WpnSkillTotal} + @{WpnSkillBonusRoll}]]}} {{roll=[[[[@{WpnSkillNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{WpnSkillWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4WeaponSkill" style="font-size: 175%;">F</button>
</button>
</td>
<!-- Assist Roll -->
<td class="sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Weapons skill."
value="@{sendapistring} {{[[[[@{WpnSkillTotal} + @{WpnSkillBonusRoll}]]d6]]}} --++Name++|@{character_name} --Skill|Weapon Skill Assist --Modifier|@{WpnSkillRollMod}"
name="roll_WeaponSkillAssist" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the Weapons skill."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a Weapons Skill Assist roll}} {{dice=[[@{WpnSkillTotal} + @{WpnSkillBonusRoll}]]}} {{roll=[[[[@{WpnSkillTotal} + @{WpnSkillBonusRoll}]]d6>4cs>6cf<0]]}}"
name="roll_dice4WeaponSkillAssist" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
</table> <!-- CUSTOM SKILLS -->
<fieldset class="repeating_skill">
<table>
<tr>
<td class="sheet-width-W20"><input class="sheet-width-W95" type="text" placeholder="Skill Name" name="attr_repSkillName"/></td>
<td class="sheet-width-W9 sheet-center"><input class="sheet-spin-button" type="number" name="attr_repSkillBaseRat" value="0" title="Base score of the skill."/></td>
<td class="sheet-width-W15 sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_repSkillLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)" selected="true" >None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intellect</option>
<option value="(@{WILLAdj})">Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-width-W9 sheet-center"><span class="sheet-circle"><input type="number" name="attr_repSkillAttrRat" disabled="true" value="((@{repSkillLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-width-W9 sheet-center"><span class="sheet-circle"><input type="number" name="attr_repSkillTotal" disabled="true" value="((@{repSkillLinkedAttr}+@{repSkillBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-width-W9 sheet-center"><input class="sheet-spin-button" type="number" name="attr_repSkillBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-width-W9 sheet-center"><input class="sheet-spin-button" type="number" name="attr_repSkillRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-width-W10 sheet-center">
<input type="hidden" type="number" name="attr_repSkillNewbase" value="0" />
<input type="hidden" type="number" name="attr_repSkillWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make a skill test."
value="@{sendapistring} {{[[[[@{repSkillNewbase}]]d6]]}} {{[[@{repSkillWrath}d6]]}} --++Name++|@{character_name} --Skill|@{repSkillName} --Modifier|@{repSkillRollMod} --Wrath Die|Test"
name="roll_repeatingSkill" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to makes a skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a @{repSkillName} test.}} {{dice=[[@{repSkillTotal} + @{repSkillBonusRoll}]]}} {{roll=[[[[@{repSkillNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{repSkillWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4repeatingSkill" style="font-size: 175%;">F</button>
</button>
</td>
<!-- Assist Roll -->
<td class="sheet-width-W10 sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-assist" type="roll"
title="Click to make an assist roll using the skill."
value="@{sendapistring} {{[[[[@{repSkillTotal} + @{repSkillBonusRoll}]]d6]]}} --++Name++|@{character_name} --Skill|@{repSkillName} Assist --Modifier|@{repSkillRollMod}"
name="roll_repeatingSkillAssist" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-assist" type="roll"
title="Click to makes an assist roll using the skill."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a @{repSkillName} Assist roll.}} {{dice=[[@{repSkillTotal} + @{repSkillBonusRoll}]]}} {{roll=[[[[@{repSkillTotal} + @{repSkillBonusRoll}]]d6>4cs>6cf<0]]}}"
name="roll_dice4repeatingSkillAssist" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
</table>
</fieldset>
</div>
<!-- Tab 3: Combat ------------------------------------------------------------------------------------ -->
<div class="sheet-section sheet-section-pc3">
<div class="sheet-3colrow">
<!-- COLUMN 1 - Defense & Resilience -->
<div class="sheet-col">
<div class="sheet-header">Defense/Speed/Reloads</div>
<table>
<tr>
<td class="sheet-width-W15"><span class="sheet-background">Defense:</span></td>
<td class="sheet-width-W50 sheet-left"><span class="sheet-circle"><input type="number" readonly value="0" name="attr_Defense" title="Defense Score."/></span></td>
<td class="sheet-width-W35"><span class="sheet-background">Mod: </span><input type="number" value="0" name="attr_defensemod" title="Permanent modifier to defense from Species, abilities, talents, or other."/></td>
</tr>
<tr>
<td class="sheet-width-W15"><span class="sheet-background">Resilience/AV:</span></td>
<td class="sheet-width-W50 sheet-left"><span class="sheet-circle"><input type="number" value="0" readonly name="attr_Resilience" title="Resilience."/></span><span> / </span><input type="number" value="0" name="attr_ArmorValue" title="Armor Value."/></td>
<td class="sheet-width-W35"><span class="sheet-background">Mod: </span><input type="number" value="0" name="attr_resiliencemod" title="Permanent modifier to resilience from Species, abilities, talents, or other."/></td>
</tr>
<tr>
<td class="sheet-width-W15"><span class="sheet-background">Speed:</span></td>
<td class="sheet-width-W85 sheet-left" colspan="2"><input type="number" value="0" name="attr_speed" title="Speed."/></td>
</tr>
<tr>
<td class="sheet-width-W15"><span class="sheet-background sheet-right">Reloads:</span></td>
<td class="sheet-width-W85 sheet-left" colspan="2"><input type="number" value="0" name="attr_reloads" title="Rounds of ammo available."/></td>
</tr>
</table>
</div>
<!-- COLUMN 2 - Shock & Wounds -->
<div class="sheet-col">
<div class="sheet-header">Health</div>
<table>
<tr>
<td class="sheet-width-W30 sheet-left"><span class="sheet-background">Shock(Curr/Max)</span></td>
<td class="sheet-width-W30"><span><input class="sheet-2digitspin-button" type="number" value="0" name="attr_shock" title="Current Shock."/></span> / <span class="sheet-circle"><input type="number" value="0" name="attr_shock_max" readonly title="Max Shock Rating."/></span></td>
<td class="sheet-width-W38 sheet-right"><span class="sheet-background">Shk Mod</span><input class="sheet-2digitspin-button" type="number" value="0" name="attr_shockmod" title="Permanent modifier to Shock from Species, abilities, talents, or other."/></td>
</tr>
<tr>
<td class="sheet-width-W30 sheet-left"><span class="sheet-background">Wnds(Curr/Max)</span></td>
<td class="sheet-width-W30"><span><input class="sheet-2digitspin-button" type="number" value="0" name="attr_wounds" title="Current Wounds."/></span> / <span class="sheet-circle"><input type="number" readonly value="0" name="attr_wounds_max" title="Max Wound Rating."/></span></td>
<td class="sheet-width-W38 sheet-right"><span class="sheet-background">Wnd Mod</span><input class="sheet-2digitspin-button" type="number" value="0" name="attr_woundsmod" title="Permanent modifier to Wounds from Species, abilities, talents, or other."/></td>
</tr>
</table>
<table>
<tr>
<td class="sheet-width-W33"><span class="sheet-background">Determination:</span></td>
<td class="sheet-width-W21"><span class="sheet-circle"><input type="number" readonly value="0" name="attr_Soak" title="Determination."/></span></td>
<td class="sheet-width-W50 sheet-right"><span class="sheet-background">Determ. Mod: </span><input class="sheet-2digitspin-button" type="number" value="0" name="attr_soakmod" title="Permanent modifier to determination from Species, abilities, talents, or other."/></td>
</tr>
</table>
</div>
<!-- COLUMN 3 - Rolls -->
<div class="sheet-col">
<div class="sheet-header">Rolls</div>
<table>
<tr>
<td class="sheet-width-W50"><span class="sheet-background">Bonus Dice: </span><input class="sheet-spin-button" type="number" value="0" name="attr_combatBD" title="Bonus Dice for Determination and Combat Initiative Rolls; the number of dice cannot be changed for recovering shock."/></td>
<td class="sheet-width-W50 sheet-left" ><span class="sheet-background sheet-right">Die Mod: </span><input class="sheet-spin-button" type="number" value="0" name="attr_combatRollMod" title="Modifier applied to dice on a glory, combat initiative, Determination, or recover shock roll."/></td>
</tr>
</table>
<table>
<tr>
<td class="sheet-width-W40"><span class="sheet-background">Combat Initiative </span></td>
<td class="sheet-width-W20 sheet-left">
<button class="sheet-diebutton-api sheet-diebutton-notest sheet-right" type="roll"
title="Click to roll initiative for combat (no wrath die)"
value="@{sendapistring} {{[[[[@{INITAdj} + @{combatBD}]]d6]]}} --++Name++|@{character_name} --Action|Combat Initiative --Modifier|@{combatRollMod}"
name="roll_combatinitiative" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-notest" type="roll"
title="Click to roll initiative for combat"
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a combat initiative roll.}} {{dice=[[@{INITAdj} + @{combatBD}]]}} {{roll=[[[[@{INITAdj} + @{combatBD}]]d6>4cs>6cf<0]]}}"
name="roll_dice4combatinitiative" style="font-size: 175%;">F</button>
</button>
</td>
<td class="sheet-width-W25"><span class="sheet-background sheet-left">Determination</span></td>
<td class="sheet-width-W15">
<button class="sheet-diebutton-api sheet-diebutton-notest sheet-right" type="roll"
title="Click to make a Determination roll. To modify the number of dice update Roll BD and to add a modifier to the roll update Die Mod above."
value="@{sendapistring} {{[[[[@{Soak} + @{combatBD}]]d6]]}} --++Name++|@{character_name} --Action|Determination Roll --Modifier|@{combatRollMod}"
name="roll_soak" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-notest" type="roll"
title="Click to make a Determination roll. To modify the number of dice update Roll BD."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} makes a Determination roll}} {{dice=[[@{Soak} + @{combatBD}]]}} {{roll=[[[[@{Soak} + @{combatBD}]]d6>4cs>6cf<0]]}}"
name="roll_dice4soak" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td class="sheet-width-W40"><span class="sheet-background">Recover Shock </span></td>
<td class="sheet-width-W20 sheet-left">
<button class="sheet-diebutton-all sheet-diebutton-notest sheet-right" type="roll"
title="Click to roll 1d3+3 to recover shock. To add a modifier to the roll update Die Mod above; the number of dice cannot be changed."
value="@{sendinlinestring}{template:recovershock_roll} {{name=@{character_name} Recovers Shock}} {{roll=[[1d3 + 3 + @{combatRollMod}]]}}"
name="roll_recovershock" style="font-size: 175%;">F</button>
</button>
</td>
<td class="sheet-width-W40"><span class="sheet-background">Melta</span></td>
<td class="sheet-width-W20 sheet-left">
<button class="sheet-diebutton-all sheet-diebutton-notest sheet-right" type="roll"
title="Click to roll damage inflicted by a Melta to a Vehicle or Structure. To set the number of dice rolled, click Bonus Dice above. If you want to add a bonus to the final roll enter a value in Die Mod above."
value="@{sendinlinestring}{template:meltadamage_roll} {{name=@{character_name} Inflicts Vehicle/structure damage with Melta}} {{dice=[[ 1 + @{combatBD}]]}} {{roll=[[[[[[1 + @{combatBD}]]d3]] + @{combatRollMod}]]}}"
name="roll_recovershock" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td class="sheet-width-W40"><span># of Glory Spent: </span></td>
<td class="sheet-width-W20 sheet-left"><input class="sheet-smallspin-button" type="number" value="1" name="attr_gloryUsed" title="Number of Glory spent to roll additional bonus dice."/></td>
<td class="sheet-width-W25"><span>Roll Glory </span></td>
<td class="sheet-width-W15">
<button class="sheet-diebutton-api sheet-diebutton-glory sheet-diebutton-attack" type="roll"
title="Click to roll Glory dice."
value="@{sendapistring} {{[[[[@{gloryUsed}]]d6]]}} --++Name++|@{character_name} --Glory|@{gloryUsed}d6"
name="roll_GloryDice" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-glory sheet-right" type="roll"
title="Click to roll one or more Dice for Glory."
value="@{sendinlinestring}{template:glory_roll} {{name=@{character_name} Rolls Glory}} {{number=@{gloryUsed}}} {{roll=[[[[@{gloryUsed}]]d6>4cs>6cf<0]]}}"
name="roll_dice4glory" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
</table>
<table style="margin-top: 2px;">
<tr>
<td class="sheet-width-W7 sheet-right"><h6 class="sheet-header-overrideright" title="Number of Dice"># Dice:</h6></td>
<td class="sheet-width-W3 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_altPCNumberDice" value="1" title="Number of Dice to Roll."/></td>
<td class="sheet-width-W7 sheet-right"><h6 class="sheet-header-overrideright" title="Number of Dice">Mod:</h6></td>
<td class="sheet-width-W3 sheet-left"><input class="sheet-smallspin-button" type="number" name="attr_altPCRollMod" value="0" title="Modifier to the roll. Example: 1d3+3 - this modifier is the '+3'."/></td>
<td class="sheet-width-W4 sheet-center">
<button class="sheet-diebutton-all sheet-diebutton-notest sheet-left sheet-diebutton-smaller" type="roll"
title="Click to roll a d3. To add a modifier to the roll update Mod."
value="@{sendinlinestring}{template:alternative_roll} {{name=@{character_name} Rolls @{altPCNumberDice}d3+@{altPCRollMod}}} {{roll=[[@{altPCNumberDice}d3cs>20cf<0 + @{altPCRollMod}]]}}"
name="roll_altd3Roll" style="font-size: 175%;">I
</button>
</td>
<td class="sheet-width-W4 sheet-center">
<button style="font-size: 125%;"
class="sheet-diebutton-all sheet-diebutton-notest sheet-left sheet-diebutton-smaller" type="roll"
title="Click to roll a d6. To add a modifier to the roll update Mod."
value="@{sendinlinestring}{template:alternative_roll} {{name=@{character_name} Rolls @{altPCNumberDice}d6+@{altPCRollMod}}} {{roll=[[@{altPCNumberDice}d6cs>20cf<0 + @{altPCRollMod}]]}}"
name="roll_altd6Roll" style="font-size: 175%;">F
</button>
</td>
<td class="sheet-width-W4 sheet-center">
<button style="font-size: 125%;"
class="sheet-diebutton-all sheet-diebutton-notest sheet-left sheet-diebutton-smaller" type="roll"
title="Click to roll a d66. Note: '# Dice' are not applied to this roll and 'Mod' is applied to the first d6 roll."
value="@{sendinlinestring}{template:alternative_rolld66} {{name=@{character_name} Rolls d66+@{altPCRollMod}}} {{rolla=[[1d6cs>10cf<0 + @{altPCRollMod}]]}} {{rollb=[[1d6cs>10cf<0]]}}"
name="roll_altd6Roll" style="font-size: 175%;">FF
</button>
</td>
</tr>
</table>
</div>
</div>
<!-- Injuries -->
<div class="sheet-2colrow" width="100%">
<div class="sheet-col">
<div class="sheet-header">Traumatic Injuries</div>
<table>
<tr>
<td class="sheet-width-W65 sheet-left"><Span class="sheet-block-text" title="Check when the character is dying."><b>Dying?&nbsp;&nbsp;</b></span><input type="checkbox" name="attr_isDying" value="1" title="Check when the character is dying."/><br>
<td class="sheet-width-W30 sheet-right"><span class="sheet-background">Trauma Count:&nbsp;&nbsp;</span></td>
<td class="sheet-width-W5 sheet-left"><span class="sheet-circle"><input type="number" readonly value="0" name="attr_tcount" title="Count of Traumatic Injuries."/></span></td>
</tr>
</table>
<table>
<tr>
<th class="sheet-width-W40 sheet-left"><h3 class="sheet-header-override">Trauma</h3></th>
</tr>
</table>
<fieldset class="repeating_trauma">
<table>
<tr>
<td class="sheet-width-W100"><textarea name="attr_trauma" class="sheet-width-W100"></textarea></td>
</tr>
</table>
</fieldset>
</div>
<div class="sheet-col">
<div class="sheet-header">Memorable Injuries</div>
<table>
<tr>
<th class="sheet-width-W40"><h3 class="sheet-header-override">Injury</h3></th>
<th class="sheet-width-W60"><h3 class="sheet-header-override">How the Injury was Received</h3></th>
</tr>
</table>
<fieldset class="repeating_memorableinjury">
<table>
<tr>
<td class="sheet-width-W40"><textarea name="attr_rinjury" class="sheet-width-W95" placeholder="Injury Name."></textarea></td>
<td class="sheet-width-W60"><textarea name="attr_rinjuryDescription" placeholder="How was it received?"></textarea></td>
</tr>
</table>
</fieldset>
</div>
</div>
<!-- Character weapons -->
<div class="sheet-header">Weapon and Attack Details</div>
<table>
<tr>
<th class="sheet-width-W15"><H3 class="sheet-header-override" title="name of the weapon.">Weapon</H3></th>
<th class="sheet-width-W3"><H3 title="Weapon traits and additional details.">NB</H3></th>
<th class="sheet-width-W3"><H3 title="Is the weapon a melee weapon? check so adjusted str is applied.">Mel?</H3></th>
<th class="sheet-width-W3"><H3 title="Is the weapon a force weapon? check so DR is adjusted based on being a psyker or not.">Frc?</H3></th>
<th class="sheet-width-W5"><H3 title="Base Weapon DR">Base DR</H3></th>
<th class="sheet-width-W4"><H3 title="Base Weapon DR + Adjusted STR">DR</H3></th>
<th class="sheet-width-W5"><H3 title="Number of Extra Dice applied to Damage.">+ED</H3></th>
<th class="sheet-width-W5"><H3 title="Armor Piercing Value of the weapon.">AP</H3></th>
<th class="sheet-width-W4"><H3 title="The weapons salvo value.">Salvo</H3></th>
<th class="sheet-width-W4"><H3 title="EMPTY. Is the weapon out of ammo?">EMTY?</H3></th>
<th class="sheet-width-W5"><H3 title="Range of the weapon; enter M for melee.">Rng</H3></th>
<th class="sheet-width-W8"><H3 class="sheet-header-override" title="The Skill and Attribute applied to the weapon attack roll; based on the skill on the skills tab.">Skill/Attr</H3></th>
<th class="sheet-width-W4"><H3 title="Combined rating of the Skill and Attribute applied to the weapon attack roll; based on the skill on the skills tab.">Rating</H3></th>
<th class="sheet-width-W5"><H3 title="Bonus Dice applied to the attack roll.">A BD</H3></th>
<th class="sheet-width-W5"><H3 title="A modifier applied to each die in the attack roll">A Mod</H3></th>
<th class="sheet-width-W4"><H3 title="Click to make an attack roll.">Atk</H3></th>
<th class="sheet-width-W5"><H3 title="Bonus Dice applied to the damage roll.">D BD</H3></th>
<th class="sheet-width-W5"><H3 title="A modifier applied to each die in the damage roll; enter +1 here for Brutal Weapons and Melta Short Range.">D Mod</H3></th>
<th class="sheet-width-W4"><H3 title="Click to make a damage roll.">Dmg</H3></th>
</tr>
</table>
<fieldset class="repeating_weapon">
<table>
<tr>
<td class="sheet-width-W18">
<input class="sheet-width-W85 smaller-text sheet-hover" placeholder="Weapon Name" type="text" name="attr_Weapon" title="name of the weapon."/>
<span class="sheet-tooltip" name="attr_wpnDetailTrait-tooltip" ></span>
<input type="checkbox" class="sheet-hover-hidden"/><span></span>
<textarea placeholder="Enter additional weapon details -- such as traits with description." class="sheet-tooltip sheet-width-W75" name="attr_wpnDetailTrait-tooltip"></textarea>
</td>
<td class="sheet-width-W3 sheet-center"><input class="sheet-objective-checkbox sheet-center" type="checkbox" name="attr_meleeWpn" value="1" title="Check if the weapon is melee and strength is applied to the DR should be applied."/></td>
<td class="sheet-width-W3 sheet-center"><input class="sheet-objective-checkbox sheet-center" type="checkbox" name="attr_forceWpn" value="1" title="Check if the weapon is a force weapon; if a psyker add 1/2 Willpower to DR (pg 275), otherwise -2 to DR (pg 292)."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_wpnBaseDR" value="0" title="Base Damage Rating of the weapon."/></td>
<td class="sheet-width-W4 sheet-center"><span class="sheet-circle"><input type="number" name="attr_wpnDR" readonly value="0" title="Weapon Base DR + Adjusted Strength + 1/2 Willpower if psyker and a force weapon or -2 if not a psyker and a force weapon."/></span></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_wpnED" value="1" title="Weapon Extra Damage Dice to be rolled."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_wpnAP" value="0" title="Weapon Armor Penetration."/></td>
<td class="sheet-width-W4 sheet-center"><input class="sheet-tiny-textblock sheet-center" type="text" name="attr_wpnSalvo" value="0" title="Weapon Salvo value."/></td>
<td class="sheet-width-W4 sheet-center"><input class="sheet-objective-checkbox sheet-center" type="checkbox" name="attr_wpnEmpty" value="1" title="Check if the weapon ammo is out."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-verysmall-textblock sheet-center" type="text" name="attr_wpnRange" value="0" title="The range of the attack; enter M for melee."/></span></td>
<td class="sheet-width-W8 sheet-center">
<select class="sheet-width-W95 smaller-text sheet-meddropdown sheet-left" name="attr_wpnAttackSkill" value="0" title="Select the skill used to make the attack. Note if you change the linked attribute in the Ballistic or Weapon Skill it will change which attribute is used here.">
<option value="(0)" selected="true" >None</option>
<option value="(@{BallTotal})">BS/AG</option>
<option value="(@{WpnSkillTotal})">WS/IN</option>
<option value="(@{WpnSkilAgilTotal})">WS/AG</option>
</select>
</td>
<td class="sheet-width-W4 sheet-center"><span class="sheet-circle"><input type="number" name="attr_wpnAttkSkill" disabled="true" value="((@{wpnAttackSkill}))" title="Attribute + Attribute Mod (+Adj) + Skill modifier. Does not include BD from the attribute or skill table."/></span></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_wpnAttBD" value="0" title="Bonus Dice for Attack Roll."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_wpnAttMod" value="0" title="Modifier to each die rolled on the attack."/></td>
<td class="sheet-width-W4 sheet-center">
<input type="hidden" type="number" name="attr_repWeaponNewbase" value="0" />
<input type="hidden" type="number" name="attr_repWeaponWrath" value="0" />
<button class="sheet-diebutton-api sheet-diebutton-attack" type="roll"
title="Click to make an Attack roll."
value="@{sendapistring} {{[[[[@{repWeaponNewbase}]]d6]]}} {{[[@{repWeaponWrath}d6]]}} --++Name++|@{character_name} --Weapon|@{Weapon} --Bonus Dice|@{wpnAttBD} --Modifier|@{wpnAttMod} --Wrath Die|Combat"
name="roll_repeatingWeaponattack" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-attack" type="roll"
title="Click to make an Attack roll."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes an Attack test.}} {{dice=[[@{wpnAttkSkill} + @{wpnAttBD}]]}} {{roll=[[[[@{repWeaponNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{repWeaponWrath}D6>4cs>6cf<1]]}}"
name="roll_dice4repeatingWeaponattack" style="font-size: 175%;">F</button>
</button>
</td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_wpnDmgBD" value="0" title="Bonus Dice for Damage Roll."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_wpnDmgMod" value="0" title="Modifier to each die rolled for Damage."/></td>
<td class="sheet-width-W4 sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-damage" type="roll"
title="Click to make a Damage roll."
value="@{sendapistring} {{[[[[@{wpnED} + @{wpnDmgBD}]]d6]]}} --++Name++|@{character_name} --Weapon|@{Weapon} --Damage|@{wpnDR} --AP|@{wpnAP} --Modifier|@{wpnDmgMod}"
name="roll_wpnDamage" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-damage" type="roll"
title="Click to make a Damage roll with @{Weapon}"
value="@{sendinlinestring}{template:roll_dicepool_damage} {{name=@{character_name} does damage with @{Weapon}.}} {{dice=[[@{wpnED} + @{wpnDmgBD}]]}} {{dmgmod=@{wpnDmgMod}}} {{roll=[[[[@{wpnED} + @{wpnDmgBD}]]d6>4cs>6cf<0]]}}"
name="roll_dice4wpnDamage" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
</table>
</fieldset>
</div>
<!-- Tab 4: Powers -------------------------------------------------------------------------------------->
<div class="sheet-section sheet-section-pc4">
<div class="sheet-2colrow" width="100%">
<div class="sheet-col">
<div class="sheet-header">Abilities</div>
<fieldset class="repeating_ability">
<table>
<tr>
<td class="sheet-width-W10"><h3>Name:</h3></td>
<td class="sheet-width-W40"><input class="sheet-width-W95" type="text" name="attr_ability" title="Name of the Ability"/></td>
<td class="sheet-width-W20 sheet-right"><h3># Uses/Pool:</h3></td>
<td class="sheet-width-W10 sheet-left"><input class="sheet-spin-button" type="number" name="attr_abilitypool" title="Number of uses or pool of points for the ability." /></td>
</tr>
<tr>
<td colspan="4"><textarea class="sheet-width-W100" name="attr_abilityDescription" title="Enter a brief summary of the Ability"></textarea></td>
</tr>
</table>
</fieldset>
</div>
<div class="sheet-col">
<div class="sheet-header">Talents</div>
<fieldset class="repeating_talent">
<table>
<tr>
<td class="sheet-width-W10"><h3>Name:</h3></td>
<td class="sheet-width-W40 sheet-left"><input class="sheet-width-W90" type="text" name="attr_talent" title="Name of the Talent"/></td>
<td class="sheet-width-W20 sheet-right"><h3># Uses/Pool:</h3></td>
<td class="sheet-width-W10 sheet-left"><input class="sheet-spin-button" type="number" name="attr_talentpool" title="Number of uses or pool of points for the talent." /></td>
</tr>
<tr>
<td colspan="4"><textarea class="sheet-width-W100" name="attr_talentDescription" title="Enter a brief summary of the talent"></textarea></td>
</tr>
</table>
</fieldset>
</div>
</div>
<div class="sheet-header">Psychic Powers</div>
<fieldset class="repeating_PsychicPower">
<table style="margin-top:10px;">
<tr>
<td class="sheet-width-W3"><h3 class="sheet-header-override">Power:</h3></td>
<td class="sheet-width-W17 sheet-right"><input class="sheet-width-W95" type="text" name="attr_psyPower" title="Name of the Psychic Power"/></td>
<td class="sheet-width-W4"><h3 class="sheet-header-overrideright">DN:</h3></td>
<td class="sheet-width-W3 sheet-left"><input class="sheet-smallmed-textblock sheet-center" type="text" value="0" name="attr_psyDN" title="Bare minimum Difficulty Number needed to activate the power." /></td>
<td class="sheet-width-W8"><h3 class="sheet-header-overrideright">Activation:</h3></td>
<td class="sheet-width-W5">
<select class="sheet-meddropdown sheet-left" name="attr_psyActivation" value="0" title="Select the time to activate the psychic power; describe other in the description.">
<option value="0" selected="true" ></option>
<option value="1">Free</option>
<option value="2">Simple</option>
<option value="3">2 Simple</option>
<option value="4">Move</option>
<option value="5">Action</option>
<option value="6">Full Act</option>
<option value="7">20 min</option>
<option value="8">30 min</option>
<option value="9">Other</option>
</select>
</td>
<td class="sheet-width-W8"><h3 class="sheet-header-overrideright">Duration:</h3></td>
<td class="sheet-width-W5">
<select class="sheet-largedropdown sheet-left" name="attr_psyDuration" value="0" title="Select the duration of the activated psychic power; describe other in the description.">
<option value="0" selected="true" ></option>
<option value="1">Instant</option>
<option value="2">Sustained</option>
<option value="3">1 round</option>
<option value="4">1 combat</option>
<option value="5">1 scene</option>
<option value="6">Other</option>
</select>
</td>
<td class="sheet-width-W7"><h3 class="sheet-header-overrideright">Range:</h3></td>
<td class="sheet-width-W8 sheet-left"><input class="sheet-width-W95" type="text" name="attr_psyRange" title="Range of the Psychic Power"/></td>
<td class="sheet-width-W5"><h3 class="sheet-header-overrideright">Multi?</h3></td>
<td class="sheet-width-W7">
<select class="sheet-smeddropdown sheet-left" name="attr_psyMultiTarget" value="0" title="Select if the power can target multiple individuals; default is No.">
<option value="0" selected="true" >N</option>
<option value="1">Y</option>
</select>
</td>
</tr>
</table>
<table>
<tr>
<td class="sheet-width-W5 sheet-left"><h6 class="sheet-header-override" title="Psychic Mastery skill">Psychic Mastery</h6></td>
<td class="sheet-width-W3 sheet-left"><span class="sheet-circle sheet-left"><input type="number" type="number" name="attr_psyPowerTestBasePMRate" disabled="true" value="((@{PsychicBaseRat}))" value="0" title="Base Psychic Mastery skill rating."/></td>
<td class="sheet-width-W6 sheet-right"><h6 class="sheet-header-overrideright" title="Attribute to be used for the test.">Linked&nbsp;&nbsp; Attribute</h6></td>
<td class="sheet-width-W5 sheet-center">
<select class="sheet-verylargedropdown sheet-smaller-text" name="attr_psyPowerTestLinkedAttr" value="0" title="Select the attribute associated with the power; default is WLP - Willpower.">
<option value="(0)" selected="true">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intelligence</option>
<option value="(@{WILLAdj})" selected="true" >Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-width-W3 sheet-left"><span class="sheet-circle"><input type="number" type="number" name="attr_psyPowerTestAttrRat" disabled="true" value="((@{psyPowerTestLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td><input type="hidden" type="number" name="attr_psyPowerTestTotal" value="((@{psyPowerTestLinkedAttr}+@{psyPowerTestBasePMRate}))"/></td>
<td class="sheet-width-W5 sheet-right"><h6 class="sheet-header-overrideright" title="Enter the number of additional wrath dice. If no additional wrath dice, set to 0.">Bonus Wrath:</h6></td>
<td class="sheet-width-W4 sheet-left"><input class="sheet-2digitspin-button" type="number" name="attr_psyPowerPush" value="0" title="Number of Additional Wrath Dice added to the skill roll."/></td>
<td class="sheet-width-W6"><h6 class="sheet-header-overrideright" title="Bonus Dice">Bonus Dice:&nbsp;&nbsp;</h6></td>
<td class="sheet-width-W4 sheet-left"><input class="sheet-2digitspin-button" type="number" name="attr_psyPowerBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-width-W4 sheet-right"><h6 class="sheet-header-overrideright" title="Dice Modifier">Dice Mod:</h6></td>
<td class="sheet-width-W4 sheet-left"><input class="sheet-2digitspin-button" type="number" name="attr_psyPowerRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-width-W5 sheet-center">
<input type="hidden" type="number" name="attr_repPsyPowerNewbase" value="0" />
<input type="hidden" type="number" name="attr_repPsyPowerWrath" value="0" />
<button class="sheet-diebutton-api" type="roll"
title="Click to make an Psychic Mastery test."
value="@{sendapistring} {{[[[[@{repPsyPowerNewbase}]]d6]]}} {{[[@{repPsyPowerWrath}d6]]}} --++Name++|@{character_name} --Power|@{psyPower} --DN|@{psyDN} --Modifier|@{psyPowerRollMod}"
name="roll_psyPowerTestRoll" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Psychic Mastery Skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a @{psyPower} test}} {{dice=[[@{psyPowerTestTotal} + @{psyPowerBonusRoll}]]}} {{roll=[[[[@{repPsyPowerNewbase}]]d6>4cs>6cf<0]]}} {{wrath=[[@{repPsyPowerWrath}D6>4cs>6cf<1]]}}"
name="roll_psyPowerDice4TestRoll" style="font-size: 175%;">F</button>
</button>
</td>
<td class="sheet-width-W3"><h1 class="sheet-header-overrideright">|</h1></td>
<td class="sheet-width-W3 sheet-right"><h6 class="sheet-header-overrideright" title="Damage Rating">DR:</h6></td>
<td class="sheet-width-W4 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_psyPowerDR" value="0" title="Psychic Power Base DR."/></td>
<td class="sheet-width-W5 sheet-right"><h6 class="sheet-header-overrideright" title="Extra Dice">+ED:</h6></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_psyPowerED" value="1" title="Psychic Power Extra Damage Dice to be rolled."/></td>
<td class="sheet-width-W5"><h6 class="sheet-header-overrideright">Bonus Dice:&nbsp;&nbsp;</h6></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_psyPowerDmgBD" value="0" title="Bonus Dice for Psychic Power Damage Roll."/></td>
<td class="sheet-width-W4 sheet-right"><h6 class="sheet-header-overrideright" title="Dice Modifier">Dice Mod:</h6></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_psyPowerDmgMod" value="0" title="Modifier to each die rolled for Psychic Power Damage."/></td>
<td class="sheet-width-W5 sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-damage" type="roll"
title="Click to make a Damage roll with @{psyPower}."
value="@{sendapistring} {{[[[[@{psyPowerED} + @{psyPowerDmgBD}]]d6]]}} --++Name++|@{character_name} --PsyPower|@{psyPower} --Damage|@{psyPowerDR} --Modifier|@{psyPowerDmgMod}"
name="roll_psyPowerDamage" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-damage" type="roll"
title="Click to make a Damage roll with @{psyPower}."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} does damage with @{psyPower}.}} {{dice=[[@{psyPowerED} + @{psyPowerDmgBD}]]}} {{roll=[[[[@{psyPowerED} + @{psyPowerDmgBD}]]d6>4cs>6cf<0]]}}"
name="roll_dice4psyPowerDamage" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
</table>
<table style="margin-top: 5px;">
<tr>
<td class="sheet-width-W5"><h3 class="sheet-header-override">Keywords:</h3></td>
<td class="sheet-width-W35 sheet-left"><input class="sheet-width-W100" type="text" name="attr_psyKeywords" title="Psychic Power keywords"/></td>
<td class="sheet-width-W3"><h1 class="sheet-header-overrideright">|</h1></td>
<td class="sheet-width-W7"><h3>Dice Rolls:</h3></td>
<td class="sheet-width-W5 sheet-right"><h6 class="sheet-header-overrideright" title="Number of Dice"># Dice:</h6></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_altPCNumberDice" value="1" title="Number of Dice to Roll."/></td>
<td class="sheet-width-W7 sheet-right"><h6 class="sheet-header-overrideright" title="Dice Roll Modifier">Roll Mod:</h6></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_altPCRollMod" value="1" title="Modifier to the roll. Example: 1d3+3 - this modifier is the '+3'."/></td>
<td class="sheet-width-W15 sheet-center">
<select class="sheet-xverylargedropdown sheet-smaller-text" name="attr_altPCRollTag" value="0" title="Select the tag to accompany the roll outcome.">
<option value="" selected="true"></option>
<option value="Shock">Shock</option>
<option value="Wound(s)">Wound(s)</option>
<option value="Mortal Wound(s)">Mortal Wound(s)</option>
</select>
</td>
<td class="sheet-width-W3 sheet-center">
<button class="sheet-diebutton-all sheet-diebutton-notest sheet-left" type="roll"
title="Click to roll a d3. To add a modifier to the roll update Roll Mod."
value="@{sendinlinestring}{template:alternative_roll} {{name=@{character_name} Rolls @{altPCNumberDice}d3+@{altPCRollMod}}} {{roll=[[@{altPCNumberDice}d3cs>20cf<0 + @{altPCRollMod}]]}} {{tag=@{altPCRollTag}}}"
name="roll_altd3Roll" style="font-size: 175%;">I</button>
</button>
</td>
<td class="sheet-width-W3 sheet-center">
<button class="sheet-diebutton-all sheet-diebutton-notest sheet-left" type="roll"
title="Click to roll a d6. To add a modifier to the roll update Roll Mod."
value="@{sendinlinestring}{template:alternative_roll} {{name=@{character_name} Rolls @{altPCNumberDice}d6+@{altPCRollMod}}} {{roll=[[@{altPCNumberDice}d6cs>20cf<0 + @{altPCRollMod}]]}} {{tag=@{altPCRollTag}}}"
name="roll_altd6Roll" style="font-size: 175%;">F</button>
</button>
</td>
<td class="sheet-width-W5 sheet-center">
<button class="sheet-diebutton-all sheet-diebutton-notest sheet-left" type="roll"
title="Click to roll a d66. Note: '# Dice' are not applied to this roll and 'Roll Mod' is applied to the first d6 roll."
value="@{sendinlinestring}{template:alternative_rolld66} {{name=@{character_name} Rolls d66+@{altPCRollMod}}} {{rolla=[[1d6cs>10cf<0 + @{altPCRollMod}]]}} {{rollb=[[1d6cs>10cf<0]]}}"
name="roll_altd6Roll" style="font-size: 175%;">FF</button>
</button>
</td>
</tr>
</table>
<table class="sheet-bottom-border">
<tr>
<td class="sheet-width-W90" colspan="2"><textarea name="attr_PsyPowerDescription" Placeholder="Enter a brief description of the power."></textarea></td>
</tr>
<tr>
<td class="sheet-width-W90" colspan="2"><textarea name="attr_PsyPowerPotency" Placeholder="Enter psychic power potency."></textarea></td>
</tr>
</table>
</fieldset>
</div>
<!---Tab 5: Equipment -------------------------------------------------------------------------------------->
<div class="sheet-section sheet-section-pc5">
<div class="sheet-header">Gear & Assets</div>
<table>
<tr>
<th class="sheet-width-W20"><h3 class="sheet-header-override" title="Name of the Gear or Asset">Gear/Asset</h3></th>
<th class="sheet-width-W5"><h3 class="sheet-header-override" title="Gear Detail">Notes</h3></th>
<th class="sheet-width-W5"><h3 title="Brief description of the gear or asset">Quantity</h3></th>
<th class="sheet-width-W65"><h3 class="sheet-header-override" title="Brief description of the gear or asset">Brief Description</h3></th>
</tr>
</table>
<fieldset class="repeating_gear">
<table>
<tr>
<td class="sheet-width-W25">
<input class="sheet-width-W85 smaller-text sheet-hover" placeholder="Gear" type="text" name="attr_gear" title="name of the weapon."/>
<span class="sheet-tooltip" name="attr_gearDetail-tooltip" ></span>
<input type="checkbox" class="sheet-hover-hidden"/><span></span>
<textarea placeholder="Enter additional gear details." class="sheet-tooltip sheet-width-W75" name="attr_gearDetail-tooltip"></textarea>
</td>
<td class="sheet-width-W5 sheet-center"><span class="sheet-circle"><input type="text" class="sheet-width-W100" type="text" name="attr_gearQuantity"/></span></td>
<td class="sheet-width-W65"><input class="sheet-width-W100" type="text" name="attr_gearDescription"/></td>
</tr>
</table>
</fieldset>
<br>
<div class="sheet-header">Vehicles</div>
<fieldset class="repeating_vehicle">
<table class="sheet-margin-top">
<tr>
<td class="sheet-width-W5"><h3 class="sheet-header-override">Name:</h3></td>
<td class="sheet-width-W20 sheet-left"><input class="sheet-width-W95" type="text" name="attr_vehName" title="Name of the Vehicle"/></td>
<td class="sheet-width-W5 sheet-right"><h3 class="sheet-header-overrideright">Crew:</h3></td>
<td class="sheet-width-W50 sheet-left"><input class="sheet-width-W95" type="text" name="attr_vehCrew" title="Vehicle crew the vehicle carries"/></td>
<td class="sheet-width-W5 sheet-right"><h3 class="sheet-header-overrideright">Speed:</h3></td>
<td class="sheet-width-W5 sheet-left"><input class="sheet-small-textblock" type="text" value="0" name="attr_vehSpeed" title="Vehicle crusing speed in meters."/></td>
<td class="sheet-width-W5 sheet-right"><h3 class="sheet-header-overrideright">Value:</h3>
<td class="sheet-width-W5 sheet-left"><input class="sheet-small-textblock" type="text" value="0" name="attr_vehValue" title="Value of the vehicle."/></td>
</tr>
</table>
<table>
<tr>
<td class="sheet-width-W5"><h3 class="sheet-header-override">Def:</h3></td>
<td class="sheet-width-W5 sheet-left"><input class="sheet-spin-button" type="number" value="0" name="attr_vehDef" title="Defence of the vehicle." /></td>
<td class="sheet-width-W9 sheet-right"><h3 class="sheet-header-overrideright">Resilience:</h3></td>
<td class="sheet-width-W5 sheet-left"><input class="sheet-spin-button" type="number" value="0" name="attr_vehRes" title="Resilience of the vehicle." /></td>
<td class="sheet-width-W10 sheet-right"><h3 class="sheet-header-overrideright">Wounds/Curr:</h3></td>
<td class="sheet-width-W15 sheet-left"><span class="sheet-circle sheet-left"><input type="number" value="0" name="attr_vehWounds" title="Vehicle Wound Rating."/></span><span> / </span><input class="sheet-spin-button" type="number" value="0" name="attr_VehWoundsCurrent" title="Vehicle Current Wounds; starts equal to wounds."/></td>
<td class="sheet-width-W5 sheet-right"><h3 class="sheet-header-overrideright">Traits:</h3></td>
<td class="sheet-width-W45 sheet-left"><input class="sheet-width-W100" type="text" name="attr_vehTraits" title="Vehicle traits."/></td>
</tr>
</table>
<table class="sheet-bottom-border">
<tr>
<td class="sheet-width-W5"><h3 class="sheet-header-override sheet-margin-bottom">Wpns:</h3></td>
<td class="sheet-width-W45 sheet-left"><input class="sheet-width-W95 sheet-margin-bottom" type="text" name="attr_vehWpns" title="Vehicle weapons."/></td>
<td class="sheet-width-W5 sheet-right"><h3 class="sheet-header-overrideright sheet-margin-bottom">Keywords:</h3></td>
<td class="sheet-width-W45 sheet-left"><input class="sheet-width-W100 sheet-margin-bottom" type="text" name="attr_vehKeywords" title="Vehicle relevant keywords"/></td>
</tr>
</table>
</fieldset>
<br>
<div class="sheet-header">Voidships</div>
<fieldset class="repeating_voidships">
<table class="sheet-margin-top">
<tr>
<td class="sheet-width-W5"><h3 class="sheet-header-override">Name:</h3></td>
<td class="sheet-width-W30 sheet-left"><input class="sheet-width-W95" type="text" name="attr_voidName" title="Name of the Voidship; such as 'Pride of the Imperium'."/></td>
<td class="sheet-width-W5 sheet-right"><h3 class="sheet-header-overrideright">Speed:</h3></td>
<td class="sheet-width-W5 sheet-left"><input class="sheet-small-textblock" type="text" value="0" name="attr_voidSpeed" title="Voidship crusing speed in kilometers (km)."/></td>
<td class="sheet-width-W5 sheet-right"><h3 class="sheet-header-overrideright">Def:</h3></td>
<td class="sheet-width-W5 sheet-left"><input class="sheet-spin-button" type="number" value="0" name="attr_voidDef" title="Defence of the Voidship." /></td>
<td class="sheet-width-W10 sheet-right"><h3 class="sheet-header-overrideright">Resilience:</h3></td>
<td class="sheet-width-W5 sheet-left"><input class="sheet-spin-button" type="number" value="0" name="attr_voidRes" title="Resilience of the Voidship." /></td>
<td class="sheet-width-W10"><h3 class="sheet-header-overrideright">Wounds/Curr:</h3></td>
<td class="sheet-width-W15 sheet-left"><span class="sheet-circle sheet-left"><input type="number" value="0" name="attr_voidWounds" title="Voidship Wound Rating."/></span><span> / </span><input class="sheet-spin-button" type="number" value="0" name="attr_VoidWoundsCurrent" title="Voidship Current Wounds; starts equal to wounds."/></td>
</tr>
</table>
<table>
<tr>
<td class="sheet-width-W5"><h3 class="sheet-header-override">Class:</h3></td>
<td class="sheet-width-W20 sheet-left"><input class="sheet-width-W95" type="text" name="attr_voidName" title="Class of the Voidship per the core rulebook name; such as 'Imperial Frigate'."/></td>
<td class="sheet-width-W5 sheet-right"><h3 class="sheet-header-overrideright">Systems:</h3></td>
<td class="sheet-width-W65 sheet-left"><input class="sheet-width-W100" type="text" name="attr_voidSystems" title="Voidship Systems."/></td>
<td class="sheet-width-W5">
<span class="sheet-tooltip" name="attr_voidSystemNotes-tooltip" ></span>
<input type="checkbox" class="sheet-hover-hidden"/><span></span>
<textarea placeholder="Enter Voidship system notes here." class="sheet-tooltip sheet-width-W75" name="attr_voidSystemNotes-tooltip" title="Voidship system notes"></textarea>
</td>
</tr>
</table>
<table class="sheet-bottom-border">
<tr>
<td class="sheet-width-W5"><h3 class="sheet-header-override sheet-margin-bottom">Wpns:</h3></td>
<td class="sheet-width-W65 sheet-left"><input class="sheet-width-W95 sheet-margin-bottom" type="text" name="attr_voidWpns" title="Voidship weapons."/></td>
<td class="sheet-width-W5 sheet-right"><h3 class="sheet-header-overrideright sheet-margin-bottom">Keywords:</h3></td>
<td class="sheet-width-W25 sheet-left"><input class="sheet-width-W100 sheet-margin-bottom" type="text" name="attr_voidKeywords" title="Voidship relevant keywords"/></td>
</tr>
</table>
</fieldset>
</div>
<!---Tab 6: Personal -------------------------------------------------------------------------------------->
<div class="sheet-section sheet-section-pc6">
<div class="sheet-header">Objectives</div>
<table>
<tr>
<th class="sheet-width-W7"><h3 title="Check the objective that is the focus of the session.">Focus</h3></th>
<th class="sheet-width-W8"><h3 title="Check if the objective has been completed.">Completed</h3></th>
<th class="sheet-width-W85"><h3 class="sheet-header-override" title="Description of the objective.">Objective</h3></th>
</tr>
</table>
<fieldset class="repeating_objective">
<table>
<tr>
<td class="sheet-width-W7"><input class="sheet-objective-checkbox" type="checkbox" name="attr_focus"/></td>
<td class="sheet-width-W8"><input class="sheet-objective-checkbox" type="checkbox" name="attr_completed"/></td>
<td class="sheet-width-W85"><textarea name="attr_objective" placeholder="describe an objective to be achieved."></textarea></td>
</tr>
</table>
</fieldset>
<div class="sheet-header">Appearance</div>
<div class="sheet-2colrow" width="100%">
<div class="sheet-col">
<table>
<tr>
<td class="sheet-width-W10"><span class="sheet-background sheet-pad-text">Age:</span></td>
<td class="sheet-width-W10 sheet-left"><input class="sheet-small-textblock sheet-width-W95" type="text" name="attr_age" title="Character age."/></td>
<td class="sheet-width-W10 sheet-right"><span class="sheet-background sheet-pad-text">Hgt:</span></td>
<td class="sheet-width-W10 sheet-left"><input class="sheet-small-textblock sheet-width-W95" type="text" name="attr_height" title="Character height."/></td>
<td class="sheet-width-W10"><span class="sheet-background sheet-pad-text">Size:</span></td>
<td class="sheet-width-W60 sheet-left">
<select class="sheet-largedropdown" name="attr_charSize" value="0" title="Size of the character.">
<option value="0" selected="true" ></option>
<option value="2">Small</option>
<option value="3">Average</option>
<option value="4">Large</option>
</select>
</td>
</tr>
</table>
<table>
<tr>
<td class="sheet-width-W10"><span class="sheet-background sheet-pad-text">Eyes:</span></td>
<td class="sheet-width-W90 sheet-left"><input class="sheet-width-W100" type="text" name="attr_eyes" title="Character eye color." style="width:98%;"/></td>
</tr>
<tr>
<td class="sheet-width-W10"><span class="sheet-background sheet-pad-text">Hair:</span></td>
<td class="sheet-width-W90 sheet-left"><input class="sheet-width-W100" type="text" name="attr_hair" title="Character hair color/style." style="width:98%;"/></td>
</tr>
</table>
</div>
<div class="sheet-col">
<fieldset class="repeating_characterfeatures">
<table>
<tr>
<td class="sheet-width-W1"><input class="sheet-width-W100" type="text" name="attr_charfeature" placeholder="Describe a distinquishing feature (pg 33)" style="width:98%;"/></td>
</tr>
</table>
</fieldset>
</div>
</div>
<div class="sheet-2colrow" width="100%">
<div class="sheet-col">
<div class="sheet-header">Background</div>
<table>
<tr>
<td class="sheet-width-W50"><span class="sheet-left">Background Type:</span>
<select class="sheet-xtralargedropdown" name="attr_definingtrait" value="0" title="Select the background trait that defines the character.">
<option value="0" selected="true"></option>
<option value="1">Origin</option>
<option value="2">Accomplishment</option>
<option value="3">Goal</option>
<option value="4">Other</option>
</select>
</td>
<td class="sheet-width-W50"><span class="sheet-left">Other Background:</span><input type="text" name="attr_customtrait" placeholder="Other Background Type Name"/></td>
</tr>
</table>
<table>
<tr>
<td><textarea name="attr_backgroundbenefit" placeholder="Background Benefit"></textarea></td>
</tr>
<tr>
<td><textarea name="attr_background" placeholder="Character Background Description"></textarea></td>
</tr>
</table>
</div>
<div class="sheet-col">
<div class="sheet-header">Mutations</div>
<table>
<td class="sheet-width-W60"><span class="sheet-left">Name:</span><input type="text" name="attr_malname" placeholder="Name of the Mutations"/></td>
<td class="sheet-width-W40 sheet-right"><span class="sheet-right">Type:</span>
<select class="sheet-xverylargedropdown" name="attr_maltype" value="0" title="Select the category of the Mutations: mental trauma, minor mutation, or severe mutation.">
<option value="0" selected="true"></option>
<option value="1">Mental Trauma</option>
<option value="2">Minor Mutation</option>
<option value="3">Severe Mutation</option>
</select>
</td>
</table>
<table>
<td class="sheet-width-W100">
<textarea name="attr_malignancy" placeholder="Mutations Description."></textarea>
</td>
</table>
<fieldset class="repeating_malignancy">
<table>
<td class="sheet-width-W60"><span class="sheet-left">Name:</span><input type="text" name="attr_rmalname" placeholder="Name of the Mutations"/></td>
<td class="sheet-width-W40 sheet-right"><span class="sheet-right">Type:</span>
<select class="sheet-xverylargedropdown" name="attr_rmaltype" value="0" title="Select the category of the Mutations: mental trauma, minor mutation, or severe mutation.">
<option value="0" selected="true"></option>
<option value="1">Mental Trauma</option>
<option value="2">Minor Mutation</option>
<option value="3">Severe Mutation</option>
</select>
</td>
</table>
<table>
<td class="sheet-width-W100">
<textarea name="attr_rmalignancy" placeholder="Mutations Description."></textarea>
</td>
</table>
</fieldset>
</div>
</div>
<div class="sheet-header">Character Alliances</div>
<fieldset class="repeating_alliance">
<table>
<tr>
<td class="sheet-width-W10"><span>Character:</span></td>
<td class="sheet-width-W20"><input type="text" name="attr_charAllianceName" placeholder="Allied character name"/></td>
<td class="sheet-width-W10"><span class="sheet-left">Archetype:</span></td>
<td class="sheet-width-W60"><input type="text" name="attr_charArchetype" placeholder="Allied character archetype"/></td>
</tr>
<tr>
<td class="sheet-width-W10"><span>Description:</span></td>
<td class="sheet-width-W90" colspan="3"><textarea name="attr_allianceDesc" class="sheet-hover" placeholder="Brief description of the relationship with the character."></textarea></td>
</tr>
</table>
</fieldset>
</div>
<!---Tab 7: Progression -------------------------------------------------------------------------------------->
<div class="sheet-section sheet-section-pc7">
<div class="sheet-header">Experience Points Tracking</div>
<table>
<tr>
<td class="sheet-width-w5"><h3 class="sheet-header-overrideright">Tier:</h3></td>
<td class="sheet-width-w5"><span class="sheet-archetype" name="attr_tier"></span></td>
<td class="sheet-width-w5"><h3 class="sheet-header-overrideright">Rank:</h3></td>
<td class="sheet-width-w5"><span class="sheet-archetype" name="attr_rank"></span></td>
<td class="sheet-width-w5"><h3 class="sheet-header-overrideright">Title:</h3></td>
<td class="sheet-width-w15"><span class="sheet-archetype" name="attr_rankTitle"></span></td>
<td class="sheet-width-w5"><h3 class="sheet-header-override">Starting XP:</h3></td>
<td class="sheet-width-w5 sheet-left"><input class="sheet-small-textblock" type="number" name="attr_StartingXP" value="0" title="Enter your starting Experience Points (XP) for character build"/></td>
<td class="sheet-width-w5"><h3 class="sheet-header-override">Starting XP Spent:</h3></td>
<td class="sheet-width-w5 sheet-left"><input class="sheet-small-textblock" type="number" name="attr_StartingXPSpent" value="0" title="Enter the amount of starting Experience Points (XP) Spent"/></td>
<td class="sheet-width-w5"><h3 class="sheet-header-overrideright">Total XP Earned:</h3></td>
<td class="sheet-width-w5 sheet-left"><input type="hidden" value="0" name="attr_hiddenxpearned"/><span class="sheet-circle sheet-header-override"><input class="sheet-attr-display" type="text" name="attr_TotalXPEarned" value="((@{hiddenxpearned}))" title="Total all Experience Points (XP) earned after character creation" disabled /></span></td>
<td class="sheet-width-w5"><h3 class="sheet-header-overrideright">Total XP Spent:</h3></td>
<td class="sheet-width-w5 sheet-left "><input type="hidden" value="0" name="attr_hiddenxpspent"/><span class="sheet-circle sheet-header-override"><input class="sheet-attr-display" type="text" name="attr_TotalXPSpent" value="((@{hiddenxpspent}))" title="Total all Experience Points (XP) spent after character creation" disabled /></span></td>
<td class="sheet-width-w5"><h3 class="sheet-header-overrideright">XP Available:</h3></td>
<td class="sheet-width-w5 sheet-left"><input type="hidden" value="0" name="attr_hiddenxpavailable"/><span class="sheet-circle sheet-header-override"><input class="sheet-attr-display" type="text" name="attr_XPAvailable" value="((@{hiddenxpavailable}))" title="How much Experience Points (XP) is available for spend." disabled /></span></td>
</tr>
</table>
<br>
<div class="sheet-header">Progression Log</div>
<table>
<tr>
<td class="sheet-width-w95"><h3 class="sheet-header-override">Advancements (Experience Points Spent)</h3></td>
<td class="sheet-small-textblock "><h3>XP Spent</h3></td>
</tr>
</table>
<fieldset class="repeating_advancements">
<table>
<tr>
<td class="sheet-width-w95"><input class="sheet-width-W100" type="text" name="attr_AdvancementR" title="List the advancement purchased" placeholder="Advancements Purchased" /></td>
<td class="sheet-small-textblock sheet-center"><span class="sheet-circle"><input type="number" name="attr_XPSpent" value="0" title="cost in Experience Points (XP) to purchase the advancement" /></span></td>
</tr>
</table>
</fieldset>
<br>
<div class="sheet-header">Mission Log (Mission Details and Experience Points Awarded)</div>
<table>
<tr>
<td class="sheet-verylarge-textblock"><h3 class="sheet-header-override" >Mission Name</H3></td>
<td class="sheet-med-textblock"><H3 class="sheet-header-override" >Award Date</H3></td>
<td class="sheet-width-w60"><H3 class="sheet-header-override" >Milestone\Mission Highlight</H3></td>
<td class="sheet-small-textblock "><H3>XP Award</H3></td>
</tr>
</table>
<fieldset class="repeating_serial">
<table>
<tr>
<td class="sheet-verylarge-textblock"><input class="sheet-width-W100" type="text" name="attr_MissionName" title="name of the Mission" placeholder="Mission Name" /></td>
<td class="sheet-med-textblock"><input class="sheet-width-W100" type="text" name="attr_MissionDate" title="date of the game"/></td>
<td class="sheet-width-w95">
<input class="sheet-hover sheet-width-W95" type="text" name="attr_MissionHighlight" />
<span name="attr_MissionDetail-tooltip" class="sheet-tooltip"></span>
<input type="checkbox" class="sheet-hover-hidden" title="click to show or hide more details on the Mission." /><span></span>
<textarea placeholder="Enter more details on the Mission here for reference." class="sheet-tooltip sheet-width-W75" name="attr_MissionDetail-tooltip"></textarea>
</td>
<td class="sheet-small-textblock sheet-center"><span class="sheet-circle"><input type="number" name="attr_XPEarned" value="0" title="list Experience Points (XP) awarded at the conclusion of the Mission"/></span></td>
</tr>
</table>
</fieldset>
</div>
</div> <!-- END OF Block A: PC's and Adversaries -->
<!-- ************************************** NPC's ************************************** -->
<div class="sheet-multi-view sheet-isNPC">
<div class="sheet-header" Style="color: white; font-weight: bold;font-variant: small-caps;"><b>NPC's<b></div>
<!-- General NPC Details -->
<table>
<tr>
<td class="sheet-width-W24"><span>Tag:</span><input class="sheet-verylarge-textblock" type="text" name="attr_archetype"/></td>
<td class="sheet-width-W21"><span class="sheet-background">Type:</span>
<select class="sheet-xtralargedropdown" name="attr_typeOfThreat" value="0" title="Select the type of threat.">
<option value="0" selected="true" ></option>
<option value="1">Adversary</option>
<option value="2">Elite</option>
<option value="3">Mob</option>
<option value="4">Monstrous Creature</option>
<option value="5">Troop</option>
</select>
</td>
<td class="sheet-width-W16 sheet-left"><span class="sheet-background">Size:</span>
<select class="sheet-verylargedropdown" name="attr_npcSize" value="0" title="Size of the NPC.">
<option value="0" selected="true" ></option>
<option value="1">Tiny</option>
<option value="2">Small</option>
<option value="3">Average</option>
<option value="4">Large</option>
<option value="5">Huge</option>
<option value="6">Gargantuan</option>
</select>
</td>
<td class="sheet-width-W9 sheet-left"><span class="sheet-background"># Mob:</span><input class="sheet-2digitspin-button" type="number" value="0" name="attr_mobSize" title="Number of Troops in the Mob."/></td>
<td class="sheet-width-W12"><span class="sheet-background">Tier:</span>
<select class="sheet-meddropdown sheet-hover" name="attr_tier" value="1" title="Character Tier.">
<option value="1" selected="true">I</option>
<option value="2">II</option>
<option value="3">III</option>
<option value="4">IV</option>
<option value="5">V</option>
<option value="6">Custom</option>
</select>
</td>
<td class="sheet-width-W10 sheet-left"><span class="sheet-background sheet-right">Custom:</span>
<input class="sheet-2digitspin-button" type="number" name="attr_customtier" value="0" title="Custom Tier Value; use only if Tier is greater than 5."/>
</td>
</tr>
</table>
<div>
<table>
<tr>
<td class="sheet-width-W5 sheet-left"><span class="sheet-background">Keywords:</span></td>
<td class="sheet-width-W95"><input class="sheet-width-W100" type="text" name="attr_keywords" title="Character keywords." style="width:98%;margin-left:4px;"/></td>
</tr>
</table>
<table>
<tr>
<td class="sheet-width-W6"></td>
<td class="sheet-width-W4 sheet-center"><input class="sheet-objective-checkbox sheet-center" type="checkbox" name="attr_keywordPsyker" value="1" title="Check if the character is a psyker; this applies 1/2 WillPower to the base DR of force weapons."/></td>
<td class="sheet-width-W90 sheet-left"><span class="sheet-background">Psyker</span></td>
</tr>
</table>
</div>
<!-- Attributes and Traits -->
<div class="sheet-2colrow" width="100%">
<!-- COLUMN 1 - Attributes -->
<div class="sheet-col">
<div class="sheet-header">Attributes & Traits</div>
<table>
<tr>
<th class="sheet-width-W15"><H3 class="header-override">Trait</H3></th>
<th class="sheet-width-W18"><H3>Rating</H3></th>
<th class="sheet-width-W10"><H3>+Adj</H3></th>
<th class="sheet-width-W20"><H3>Adj Rating</H3></th>
<th class="sheet-width-W15"><H3>Bonus Die</H3></th>
<th class="sheet-width-W15"><H3>Roll Mod</H3></th>
<th class="sheet-width-W7"><H3>Roll</H3></th>
</tr>
<tr>
<td><H5>Strength</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_STRBase" value="1" title="Base Strength rating."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_STRMod" value="0" title="Modifier to base Strength rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_STRAdj" disabled="true" value="((@{STRBase} + @{STRMod}))" title="Adjusted (Base + Modifier) Strength."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_STRBonusRoll" value="0" title="Number of Bonus Dice added to the Strength roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_STRRollMod" value="0" title="Modifier to the result of the die roll."/></td>
<td class="sheet-center">
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Strength test."
value="@{sendapistring} {{[[[[@{STRAdj} + @{STRBonusRoll} - 1]]d6]]}} {{[[1d6]]}} --++Name++|@{character_name} --Attribute|Strength --Modifier|@{STRRollMod} --Wrath Die|Test"
name="roll_NPCstrength" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Strength roll; bonus dice are added, modifiers are not applied."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} Tests Strength}} {{dice=[[@{STRAdj} + @{STRBonusRoll}]]}} {{roll=[[[[@{STRAdj} + @{STRBonusRoll} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[1D6>4cs>6cf<1]]}}"
name="roll_NPCdice4strength" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5>Agility</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_AGLBase" value="1" title="Base Agility rating."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_AGLMod" value="0" title="Modifier to base Agility rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_AGLAdj" disabled="true" value="((@{AGLBase} + @{AGLMod}))" title="Adjusted (Base + Modifier) Agility."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_AGLBonusRoll" value="0" title="Number of Bonus Dice added to the Agility roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_AGLRollMod" value="0" title="Modifier to the result of the die roll."/></td>
<td class="sheet-center">
<button class="sheet-diebutton-api" type="roll"
title="Click to make an Agility test."
value="@{sendapistring} {{[[[[@{AGLAdj} + @{AGLBonusRoll} - 1]]d6]]}} {{[[1d6]]}} --++Name++|@{character_name} --Attribute|Agility --Modifier|@{AGLRollMod} --Wrath Die|Test"
name="roll_NPCagility" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Agility test; bonus dice are added, modifiers are not applied."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} Tests Agility}} {{dice=[[@{AGLAdj} + @{AGLBonusRoll}]]}} {{roll=[[[[@{AGLAdj} + @{AGLBonusRoll} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[1D6>4cs>6cf<1]]}}"
name="roll_NPCdice4agility" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5>Toughness</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_TGHBase" value="1" title="Base Toughness rating."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_TGHMod" value="0" title="Modifier to base Toughness rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_TGHAdj" disabled="true" value="((@{TGHBase} + @{TGHMod}))" title="Adjusted (Base + Modifier) Toughness."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_TGHBonusRoll" value="0" title="Number of Bonus Dice added to the Toughness roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_TGHRollMod" value="0" title="Modifier to the result of the die roll."/></td>
<td class="sheet-center">
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Toughness test."
value="@{sendapistring} {{[[[[@{TGHAdj} + @{TGHBonusRoll} - 1]]d6]]}} {{[[1d6]]}} --++Name++|@{character_name} --Attribute|Toughness --Modifier|@{TGHRollMod} --Wrath Die|Test"
name="roll_NPCtoughness" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Toughness test; bonus dice are added, modifiers are not applied."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} Tests Toughness}} {{dice=[[@{TGHAdj} + @{TGHBonusRoll}]]}} {{roll=[[[[@{TGHAdj} + @{TGHBonusRoll} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[1D6>4cs>6cf<1]]}}"
name="roll_NPCdice4toughness" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5>Intellect</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_INTBase" value="1" title="Base Intellect rating."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_INTMod" value="0" title="Modifier to base Intellect rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_INTAdj" disabled="true" value="((@{INTBase} + @{INTMod}))" title="Adjusted (Base + Modifier) Intellect."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_INTBonusRoll" value="0" title="Number of Bonus Dice added to the Intellect roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_INTRollMod" value="0" title="Modifier to the result of the die roll."/></td>
<td class="sheet-center">
<button class="sheet-diebutton-api" type="roll"
title="Click to make an Intellect test."
value="@{sendapistring} {{[[[[@{INTAdj} + @{INTBonusRoll} - 1]]d6]]}} {{[[1d6]]}} --++Name++|@{character_name} --Attribute|Intellect --Modifier|@{INTRollMod} --Wrath Die|Test"
name="roll_NPCintellect" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make an Intellect test; bonus dice are added, modifiers are not applied."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} Tests Intellect}} {{dice=[[@{INTAdj} + @{INTBonusRoll}]]}} {{roll=[[[[@{INTAdj} + @{INTBonusRoll} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[1D6>4cs>6cf<1]]}}"
name="roll_NPCdice4intellect" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5>Willpower</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_WILLBase" value="1" title="Base Willpower rating."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_WILLMod" value="0" title="Modifier to base Willpower rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_WILLAdj" disabled="true" value="((@{WILLBase} + @{WILLMod}))" title="Adjusted (Base + Modifier) Willpower."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_WILLBonusRoll" value="0" title="Number of Bonus Dice added to the Willpower roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_WILLRollMod" value="0" title="Modifier to the result of the die roll."/></td>
<td class="sheet-center">
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Willpower test."
value="@{sendapistring} {{[[[[@{WILLAdj} + @{WILLBonusRoll} - 1]]d6]]}} {{[[1d6]]}} --++Name++|@{character_name} --Attribute|Willpower --Modifier|@{WILLRollMod} --Wrath Die|Test"
name="roll_NPCwillpower" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Willpower test; bonus dice are added, modifiers are not applied."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} Tests Willpower}} {{dice=[[@{WILLAdj} + @{WILLBonusRoll}]]}} {{roll=[[[[@{WILLAdj} + @{WILLBonusRoll} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[1D6>4cs>6cf<1]]}}"
name="roll_NPCdice4willpower" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5>Fellowship</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_FELBase" value="1" title="Base Fellowship rating."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_FELMod" value="0" title="Modifier to base Fellowship rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_FELAdj" disabled="true" value="((@{FELBase} + @{FELMod}))" title="Adjusted (Base + Modifier) Fellowship."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_FELBonusRoll" value="0" title="Number of Bonus Dice added to the Fellowship roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_FELRollMod" value="0" title="Modifier to the result of the die roll."/></td>
<td class="sheet-center">
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Fellowship test."
value="@{sendapistring} {{[[[[@{FELAdj} + @{FELBonusRoll} - 1]]d6]]}} {{[[1d6]]}} --++Name++|@{character_name} --Attribute|Fellowship --Modifier|@{FELRollMod} --Wrath Die|Test"
name="roll_NPCfellowship" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Fellowship test; bonus dice are added, modifiers are not applied."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} Tests Fellowship}} {{dice=[[@{FELAdj} + @{FELBonusRoll}]]}} {{roll=[[[[@{FELAdj} + @{FELBonusRoll} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[1D6>4cs>6cf<1]]}}"
name="roll_NPCdice4fellowship" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5>Initiative</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_INITBase" value="1" title="Base Initiative rating."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_INITMod" value="0" title="Modifier to base Initiative rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_INITAdj" disabled="true" value="((@{INITBase} + @{INITMod}))" title="Adjusted (Base + Modifier) Initiative."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_INITBonusRoll" value="0" title="Number of Bonus Dice added to the Initiative roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_INITRollMod" value="0" title="Modifier to the result of the die roll."/></td>
<td class="sheet-center">
<button class="sheet-diebutton-api" type="roll"
title="Click to make an Initiative test; if this is a combat initiative roll, use 'roll initiative' on the combat tab."
value="@{sendapistring} {{[[[[@{INITAdj} + @{INITBonusRoll} - 1]]d6]]}} {{[[1d6]]}} --++Name++|@{character_name} --Attribute|Initiative --Modifier|@{INITRollMod} --Wrath Die|Test"
name="roll_NPCinitiative" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make an Initiative test; bonus dice are added, modifiers are not applied. Use 'roll initiative' on the combat tab if this is a combat initiative roll."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} Tests Initiative}} {{dice=[[@{INITAdj} + @{INITBonusRoll}]]}} {{roll=[[[[@{INITAdj} + @{INITBonusRoll} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[1D6>4cs>6cf<1]]}}"
name="roll_NPCdice4initiative" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5>Conviction</H5></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" readonly name="attr_ConvBase" value="1" title="Base Conviction rating."/></span></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_ConvMod" value="0" title="Modifier to base Conviction rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_ConvAdj" readonly value="" title="Adjusted (Base + Modifier) Conviction."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_ConvBonusRoll" value="0" title="Number of Bonus Dice added to the Conviction roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_ConvRollMod" value="0" title="Modifier to the result of the die roll."/></td>
<td class="sheet-center">
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Conviction test."
value="@{sendapistring} {{[[[[@{ConvAdj} + @{ConvBonusRoll} - 1]]d6]]}} {{[[1d6]]}} --++Name++|@{character_name} --Trait|Conviction --Modifier|@{ConvRollMod} --Wrath Die|Test"
name="roll_conviction" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Conviction test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Conviction test}} {{dice=[[@{ConvAdj} + @{ConvBonusRoll}]]}} {{roll=[[[[@{ConvAdj} + @{ConvBonusRoll} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[1D6>4cs>6cf<1]]}}"
name="roll_dice4conviction" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5>Resolve</H5></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" readonly name="attr_ResvBase" value="1" title="Base Resolve rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_ResvMod" value="0" title="Modifier to base Resolve rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_ResvAdj" readonly value="" title="Adjusted (Base + Modifier) Resolve."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_ResvBonusRoll" value="0" title="Number of Bonus Dice added to the Resolve roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_ResvRollMod" value="0" title="Modifier to the result of the die roll."/></td>
<td class="sheet-center">
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Resolve trait test."
value="@{sendapistring} {{[[[[@{ResvAdj} + @{ResvBonusRoll} - 1]]d6]]}} {{[[1d6]]}} --++Name++|@{character_name} --Trait|Resolve --Modifier|@{ResvRollMod} --Wrath Die|Test"
name="roll_resolve" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Resolve test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Resolve test}} {{dice=[[@{ResvAdj} + @{ResvBonusRoll}]]}} {{roll=[[[[@{ResvAdj} + @{ResvBonusRoll} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[1D6>4cs>6cf<1]]}}"
name="roll_dice4resolve" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5>Passive Awareness</H5></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" readonly name="attr_PAwBase" value="1" title="Base Awareness rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_PAwMod" value="0" title="Modifier to base Awareness rating."/></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_PAwAdj" readonly value="" title="Adjusted (Base + Modifier) Awareness."/></span></td>
<td class="sheet-center" colspan="3"><span><i>Not Applicable</i></span></td>
</tr>
</table>
</div>
<!-- COLUMN 2 - Mental/Social Traits -->
<div class="sheet-col">
<div class="sheet-header">Traits</div>
<!-- Defense & Resilience -->
<table>
<td class="sheet-width-W23 sheet-left"><span class="sheet-background sheet-right">Reloads:</span><input type="number" value="0" name="attr_reloads" title="Rounds of ammo available."/></td>
<td class="sheet-width-W16 sheet-left"><span class="sheet-background">Speed:</span><span class="sheet-circle"><input type="number" value="0" name="attr_speed" title="Speed."/></td>
<td class="sheet-width-W27 sheet-right"><span class="sheet-background">Determination </span><span class="sheet-circle"><input readonly type="number" value="0" name="attr_Soak" title="Determination."/></span></td>
<td class="sheet-width-W16 sheet-left"><input type="number" value="0" name="attr_soakmod" title="Permanent modifier to Determination from Species, abilities, talents, or other."/></td>
<td class="sheet-width-W18 sheet-center"><span class="sheet-background">Ruin:</span><input class="sheet-2digitspin-button" type="number" name="attr_wrath" title="Adversary ruin pool."/></td>
</tr>
</table>
<div class="sheet-minorheader">Defensive</div>
<table>
<tr>
<td class="sheet-width-W12"><span class="sheet-background">Defense:</span></td>
<td class="sheet-width-W8 sheet-left"><span class="sheet-circle"><input type="number" readonly value="0" name="attr_Defense" title="Defense Score."/></span></td>
<td class="sheet-width-W20"><input type="number" value="0" name="attr_defensemod" title="Permanent modifier to defense from Species, abilities, talents, or other."/></td>
<td class="sheet-width-W10 sheet-right"><span class="sheet-background">Resilience/AV:</span></td>
<td class="sheet-width-W30 sheet-left"><span class="sheet-circle"><input type="number" value="0" readonly name="attr_Resilience" title="Resilience."/></span><span> / </span><input type="number" value="0" name="attr_ArmorValue" title="Armor Value."/></td>
<td class="sheet-width-W20"><input type="number" value="0" name="attr_resiliencemod" title="Permanent modifier to resilience from Species, abilities, talents, or other."/></td>
</tr>
</table>
<div class="sheet-minorheader">Health</div>
<table>
<tr>
<td class="sheet-width-W20"><span class="sheet-background">Shock: </span></td>
<td class="sheet-width-W40 sheet-left"><span class="sheet-circle"><input type="number" value="0" name="attr_shock_max" readonly title="Shock Rating."/></span><span> / </span><input class="sheet-spin-button" type="number" value="0" name="attr_shock" title="Current Shock."/></td>
<td class="sheet-width-W40"><span class="sheet-background">Mod: </span><input type="number" value="0" name="attr_shockmod" title="Permanent modifier to Shock from Species, abilities, talents, or other."/></td>
</tr>
<tr>
<td class="sheet-width-W20"><span class="sheet-background">Wounds: </span></td>
<td class="sheet-width-W40 sheet-left"><span class="sheet-circle"><input type="number" value="0" name="attr_wounds_max" readonly title="Wound Rating."/></span><span> / </span><input class="sheet-spin-button" type="number" value="0" name="attr_wounds" title="Current Wounds."/></td>
<td class="sheet-width-W40"><span class="sheet-background">Mod: </span><input type="number" value="0" name="attr_woundsmod" title="Permanent modifier to Wounds from Species, abilities, talents, or other."/></td>
</tr>
</table>
</table>
<div class="sheet-minorheader">Rolls</div>
<table>
<tr>
<td class="sheet-width-W30"><span class="sheet-background">Bonus Dice: </span><input class="sheet-spin-button" type="number" value="0" name="attr_combatBD" title="Bonus Dice for Determination and Combat Initiative Rolls; the number of dice cannot be changed for recovering shock."/></td>
<td class="sheet-width-W30 sheet-left"><span class="sheet-background sheet-right">Die Mod: </span><input class="sheet-spin-button" type="number" value="0" name="attr_combatRollMod" title="Modifier applied to dice on a combat initiative, recover shock, or Determination roll."/></td>
<td class="sheet-width-W40 sheet-center"><span class="sheet-background">Tag: </span><input class="sheet-large-textblock" type="text" value="" name="attr_altTag" title="Add a tag to a d3, d6, or d66 die roll."/></td>
</tr>
</table>
<table>
<tr>
<td class="sheet-width-W40 sheet-left">
<span class="sheet-background">Roll Combat Initiative </span>
<button class="sheet-diebutton-api sheet-diebutton-notest sheet-left" type="roll"
title="Click to roll initiative for combat (no wrath die)"
value="@{sendapistring} {{[[[[@{INITAdj} + @{combatBD}]]d6]]}} --++Name++|@{character_name} --Action|Combat Initiative --Modifier|@{combatRollMod}"
name="roll_NPCcombatinitiative" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-notest" type="roll"
title="Click to roll initiative for combat"
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} Rolls Combat Initiative}} {{dice=[[@{INITAdj} + @{combatBD}]]}} {{roll=[[[[@{INITAdj} + @{combatBD}]]d6>4cs>6cf<0]]}}"
name="roll_NPCdice4combatinitiative" style="font-size: 175%;">F</button>
</button>
</td>
<td class="sheet-width-W30 sheet-left">
<span class="sheet-background">Recover Shock </span>
<button class="sheet-diebutton-all sheet-diebutton-notest sheet-left" type="roll"
title="Click to roll 1d3+3 to recover shock. To add a modifier to the roll update Die Mod above; the number of dice cannot be changed."
value="@{sendinlinestring}{template:recovershock_roll} {{name=@{character_name} Recovers Shock}} {{roll=[[1d3 + 3 + @{combatRollMod}]]}}"
name="roll_NPCdice4recovershock" style="font-size: 175%;">F</button>
</button>
</td>
<td class="sheet-width-W30 sheet-left">
<span class="sheet-background sheet-diebutton-notest sheet-left">Determination</span>
<button class="sheet-diebutton-api sheet-diebutton-notest sheet-left" type="roll"
title="Click to make a Determination roll for an adversary. To modify the number of dice update Roll BD and to add a modifier to the roll update Die Mod above."
value="@{sendapistring} {{[[[[@{Soak} + @{combatBD}]]d6]]}} --++Name++|@{character_name} --Action|Determination Roll --Modifier|@{combatRollMod}"
name="roll_NPCsoak" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-notest" type="roll"
title="Click to make a Determination roll for an adversary. To modify the number of dice update Roll BD."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} Makes a Determination Roll}} {{dice=[[@{Soak} + @{combatBD}]]}} {{roll=[[[[@{Soak} + @{combatBD}]]d6>4cs>6cf<0]]}}"
name="roll_NPCdice4soak" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
</table>
<table style="margin-top: 5px;">
<tr>
<td class="sheet-width-W12 sheet-left"><span class="sheet-background">Roll d3/d6/d66:</span></td>
<td class="sheet-width-W5 sheet-right"><h6 class="sheet-header-overrideright" title="Number of Dice"># Dice:</h6></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_altNumberDice" value="1" title="Number of Dice to Roll."/></td>
<td class="sheet-width-W8 sheet-right"><h6 class="sheet-header-overrideright" title="Dice Roll Modifier">Roll Mod:</h6></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_altRollMod" value="1" title="Modifier to the roll. Example: 1d3+3 - this modifier is the '+3'."/></td>
<td class="sheet-width-W3 sheet-center">
<button class="sheet-diebutton-all sheet-diebutton-notest sheet-left" type="roll"
title="Click to roll a d3. To add a modifier to the roll update Roll Mod."
value="@{sendinlinestring}{template:alternative_roll} {{name=@{character_name} Rolls @{altNumberDice}d3+@{altRollMod}}} {{roll=[[@{altNumberDice}d3cs>20cf<0 + @{altRollMod}]]}} {{tag=@{altTag}}}"
name="roll_altd3Roll" style="font-size: 175%;">I</button>
</button>
</td>
<td class="sheet-width-W3 sheet-center">
<button class="sheet-diebutton-all sheet-diebutton-notest sheet-left" type="roll"
title="Click to roll a d6. To add a modifier to the roll update Roll Mod."
value="@{sendinlinestring}{template:alternative_roll} {{name=@{character_name} Rolls @{altNumberDice}d6+@{altRollMod}}} {{roll=[[@{altNumberDice}d6cs>20cf<0 + @{altRollMod}]]}} {{tag=@{altTag}}}"
name="roll_altd6Roll" style="font-size: 175%;">F</button>
</button>
</td>
<td class="sheet-width-W5 sheet-center">
<button class="sheet-diebutton-all sheet-diebutton-notest sheet-left" type="roll"
title="Click to roll a d66. Note: '# Dice' are not applied to this roll and 'Roll Mod' is applied to the first d6 roll."
value="@{sendinlinestring}{template:alternative_rolld66} {{name=@{character_name} Rolls d66+@{altRollMod}}} {{rolla=[[1d6cs>10cf<0 + @{altRollMod}]]}} {{rollb=[[1d6cs>10cf<0]]}}"
name="roll_altd6Roll" style="font-size: 175%;">FF</button>
</button>
</td>
</tr>
</table>
</div>
</div>
<!-- Skills -->
<div class="sheet-header">Skills</div>
<table class="sheet-tableColorRows">
<tr>
<th class="sheet-width-W25"><H3 class="header-override">Skill</H3></th>
<th class="sheet-width-W10"><H3>Rating</H3></th>
<th class="sheet-width-W15"><H3>Linked Attribute</H3></th>
<th class="sheet-width-W10"><H3>Attr Rating</H3></th>
<th class="sheet-width-W10"><H3>Total</H3></th>
<th class="sheet-width-W10"><H3>Bonus Die</H3></th>
<th class="sheet-width-W10"><H3>Roll Mod</H3></th>
<th class="sheet-width-W10"><H3>Roll</H3></th>
</tr>
<tr>
<td><H5>Default</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_defaultRat" value="0" title="Base default skill rating."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_defaultLinkedAttr" value="0" title="Select the attribute associated with the default skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})" selected="true" >Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intellect</option>
<option value="(@{WILLAdj})">Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_defaultAttrRat" disabled="true" value="((@{defaultLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_defaultTotal" disabled="true" value="((@{defaultLinkedAttr}+@{defaultRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_defaultBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_defaultRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<button class="sheet-diebutton-api" type="roll"
title="Click to make a default skill test."
value="@{sendapistring} {{[[[[@{defaultTotal} + @{defaultBonusRoll} - 1]]d6]]}} {{[[1d6]]}} --++Name++|@{character_name} --Skill|Default --Modifier|@{defaultRollMod} --Wrath Die|Test"
name="roll_NPCdefaultskill" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a default skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a default skill test}} {{dice=[[@{defaultTotal} + @{defaultBonusRoll}]]}} {{roll=[[[[@{defaultTotal} + @{defaultBonusRoll} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[1D6>4cs>6cf<1]]}}"
name="roll_NPCdice4defaultskill" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5 title="Notice details or perceive hidden or obscured objects - including clues.">Awareness</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_AwareBaseRat" value="0" title="Base Awareness score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_AwareLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})" selected="true" >Intellect</option>
<option value="(@{WILLAdj})">Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_AwareAttrRat" disabled="true" value="((@{AwareLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_AwareTotal" disabled="true" value="((@{AwareLinkedAttr}+@{AwareBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_AwareBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_AwareRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<button class="sheet-diebutton-api" type="roll"
title="Click to make an Awareness skill test."
value="@{sendapistring} {{[[[[@{AwareTotal} + @{AwareBonusRoll} - 1]]d6]]}} {{[[1d6]]}} --++Name++|@{character_name} --Skill|Awareness --Modifier|@{AwareRollMod} --Wrath Die|Test"
name="roll_awareness" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make an Awareness skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Awareness Skill test}} {{dice=[[@{AwareTotal} + @{AwareBonusRoll}]]}} {{roll=[[[[@{AwareTotal} + @{AwareBonusRoll} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[1D6>4cs>6cf<1]]}}"
name="roll_dice4awareness" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5>Ballistic Skill</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_BallBaseRat" value="0" title="Base Ballistic score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_BallLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})" selected="true" >Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intellect</option>
<option value="(@{WILLAdj})">Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_BallAttrRat" disabled="true" value="((@{BallLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_BallTotal" disabled="true" value="((@{BallLinkedAttr}+@{BallBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_BallBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_BallRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Ballistics skill test."
value="@{sendapistring} {{[[[[@{BallTotal} + @{BallBonusRoll} - 1]]d6]]}} {{[[1d6]]}} --++Name++|@{character_name} --Skill|Ballistics --Modifier|@{BallRollMod} --Wrath Die|Test"
name="roll_NPCballisticsSkill" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Ballistics skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Ballistics skill test}} {{dice=[[@{BallTotal} + @{BallBonusRoll}]]}} {{roll=[[[[@{BallTotal} + @{BallBonusRoll} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[1D6>4cs>6cf<1]]}}"
name="roll_NPCdice4ballisticsSkill" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
<tr>
<td><H5 title="Activate psychic powers; requires Psyker keyword.">Psychic Mastery</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_PsychicBaseRat" value="0" title="Base Psychic Mastery score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_PsychicLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intellect</option>
<option value="(@{WILLAdj})" selected="true" >Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_PsychicAttrRat" disabled="true" value="((@{PsychicLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_PsychicTotal" disabled="true" value="((@{PsychicLinkedAttr}+@{PsychicBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_PsychicBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_PsychicRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Psychic Mastery skill test."
value="@{sendapistring} {{[[[[@{PsychicTotal} + @{PsychicBonusRoll} - 1]]d6]]}} {{[[1d6]]}} --++Name++|@{character_name} --Skill|Psychic Mastery --Modifier|@{PsychicRollMod} --Wrath Die|Test"
name="roll_PsychicMastery" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Psychic Mastery skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Psychic Mastery Skill test}} {{dice=[[@{PsychicTotal} + @{PsychicBonusRoll}]]}} {{roll=[[[[@{PsychicTotal} + @{PsychicBonusRoll} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[1D6>4cs>6cf<1]]}}"
name="roll_dice4PsychicMastery" style="font-size: 175%;">F</button>
</button>
</td>
<tr>
<td><H5>Weapon Skill</H5></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_WpnSkillBaseRat" value="0" title="Base Weapon Skill score."/></td>
<td class="sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_WpnSkillLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intellect</option>
<option value="(@{WILLAdj})">Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})" selected="true" >Initiative</option>
</select>
</td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_WpnSkillAttrRat" disabled="true" value="((@{WpnSkillLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><span class="sheet-circle"><input type="number" type="number" name="attr_WpnSkillTotal" disabled="true" value="((@{WpnSkillLinkedAttr}+@{WpnSkillBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_WpnSkillBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-center"><input class="sheet-spin-button" type="number" name="attr_WpnSkillRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-center">
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Weapons Skill test."
value="@{sendapistring} {{[[[[@{WpnSkillTotal} + @{WpnSkillBonusRoll} - 1]]d6]]}} {{[[1d6]]}} --++Name++|@{character_name} --Skill|Weapon Skill --Modifier|@{WpnSkillRollMod} --Wrath Die|Test"
name="roll_NPCWeaponSkill" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Weapons Skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a Weapons Skill test}} {{dice=[[@{WpnSkillTotal} + @{WpnSkillBonusRoll}]]}} {{roll=[[[[@{WpnSkillTotal} + @{WpnSkillBonusRoll} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[1D6>4cs>6cf<1]]}}"
name="roll_NPCdice4WeaponSkill" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
</table>
<fieldset class="repeating_skill">
<table>
<tr>
<td class="sheet-width-W25"><input class="sheet-width-W95" type="text" placeholder="Skill Name" name="attr_repSkillName"/></td>
<td class="sheet-width-W10 sheet-center"><input class="sheet-spin-button" type="number" name="attr_repSkillBaseRat" value="0" title="Base score of the skill."/></td>
<td class="sheet-width-W15 sheet-center">
<select class="sheet-width-W95 sheet-dropdown" name="attr_repSkillLinkedAttr" value="0" title="Select the attribute associated with the skill.">
<option value="(0)" selected="true" >None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intellect</option>
<option value="(@{WILLAdj})">Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-width-W10 sheet-center"><span class="sheet-circle"><input type="number" name="attr_repSkillAttrRat" disabled="true" value="((@{repSkillLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-width-W10 sheet-center"><span class="sheet-circle"><input type="number" name="attr_repSkillTotal" disabled="true" value="((@{repSkillLinkedAttr}+@{repSkillBaseRat}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td class="sheet-width-W10 sheet-center"><input class="sheet-spin-button" type="number" name="attr_repSkillBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-width-W10 sheet-center"><input class="sheet-spin-button" type="number" name="attr_repSkillRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-width-W10 sheet-center">
<button class="sheet-diebutton-api" type="roll"
title="Click to make a skill test."
value="@{sendapistring} {{[[[[@{repSkillTotal} + @{repSkillBonusRoll}]]d6]]}} {{[[1d6]]}} --++Name++|@{character_name} --Skill|@{repSkillName} --Modifier|@{repSkillRollMod} --Wrath Die|Test"
name="roll_NPCrepeatingSkill" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a a '+@{repSkillName}+' test}} {{dice=[[@{repSkillTotal} + @{repSkillBonusRoll}]]}} {{roll=[[[[@{repSkillTotal} + @{repSkillBonusRoll} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[1D6>4cs>6cf<1]]}}"
name="roll_NPCdice4repeatingSkill" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
</table>
</fieldset>
<!-- WARGEAR & Attacks -->
<div class="sheet-header">Wargear & Attacks</div>
<table>
<tr>
<th class="sheet-width-W15"><H3 class="sheet-header-override" title="name of the weapon.">Weapon</H3></th>
<th class="sheet-width-W3"><H3 title="Weapon traits and additional details.">NB</H3></th>
<th class="sheet-width-W3"><H3 title="Is the weapon a melee weapon? check so adjusted str is applied.">Mel?</H3></th>
<th class="sheet-width-W3"><H3 title="Is the weapon a force weapon? check so DR is adjusted based on being a psyker or not.">Frc?</H3></th>
<th class="sheet-width-W5"><H3 title="Base Weapon DR">Base DR</H3></th>
<th class="sheet-width-W4"><H3 title="Base Weapon DR + Adjusted STR">DR</H3></th>
<th class="sheet-width-W5"><H3 title="Number of Extra Dice applied to Damage.">+ED</H3></th>
<th class="sheet-width-W5"><H3 title="Armor Piercing Value of the weapon.">AP</H3></th>
<th class="sheet-width-W4"><H3 title="The weapons salvo value.">Salvo</H3></th>
<th class="sheet-width-W4"><H3 title="EMPTY. Is the weapon out of ammo?">EMTY?</H3></th>
<th class="sheet-width-W5"><H3 title="Range of the weapon; enter M for melee.">Rng</H3></th>
<th class="sheet-width-W8"><H3 class="sheet-header-override" title="The Skill and Attribute applied to the weapon attack roll; based on the skill on the skills tab.">Skill/Attr</H3></th>
<th class="sheet-width-W4"><H3 title="Combined rating of the Skill and Attribute applied to the weapon attack roll; based on the skill on the skills tab.">Rating</H3></th>
<th class="sheet-width-W5"><H3 title="Bonus Dice applied to the attack roll.">A BD</H3></th>
<th class="sheet-width-W5"><H3 title="A modifier applied to each die in the attack roll.">A Mod</H3></th>
<th class="sheet-width-W4"><H3 title="Click to make an attack roll.">Atk</H3></th>
<th class="sheet-width-W5"><H3 title="Bonus Dice applied to the damage roll.">D BD</H3></th>
<th class="sheet-width-W5"><H3 title="A modifier applied to each die in the damage roll; enter +1 here for Brutal Weapons and Melta Short Range.">D Mod</H3></th>
<th class="sheet-width-W4"><H3 title="Click to make a damage roll.">Dmg</H3></th>
</tr>
</table>
<fieldset class="repeating_weapon">
<table>
<tr>
<td class="sheet-width-W18">
<input class="sheet-width-W85 smaller-text sheet-hover" placeholder="Weapon Name" type="text" name="attr_Weapon" title="name of the weapon."/>
<span class="sheet-tooltip" name="attr_wpnDetailTrait-tooltip" ></span>
<input type="checkbox" class="sheet-hover-hidden"/><span></span>
<textarea placeholder="Enter additional weapon details -- such as traits with description." class="sheet-tooltip sheet-width-W75" name="attr_wpnDetailTrait-tooltip"></textarea>
</td>
<td class="sheet-width-W3 sheet-center"><input class="sheet-objective-checkbox sheet-center" type="checkbox" name="attr_meleeWpn" value="1" title="Check if the weapon is melee and strength is applied to the DR should be applied."/></td>
<td class="sheet-width-W3 sheet-center"><input class="sheet-objective-checkbox sheet-center" type="checkbox" name="attr_forceWpn" value="1" title="Check if the weapon is a force weapon; if a psyker add 1/2 Willpower to DR (pg 275), otherwise -2 to DR (pg 292)."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_wpnBaseDR" value="0" title="Base Damage Rating of the weapon."/></td>
<td class="sheet-width-W4 sheet-center"><span class="sheet-circle"><input type="number" name="attr_wpnDR" readonly value="0" title="Weapon Base DR + Adjusted Strength + 1/2 Willpower if psyker and a force weapon or -2 if not a psyker and a force weapon."/></span></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_wpnED" value="1" title="Weapon Extra Damage Dice to be rolled."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_wpnAP" value="0" title="Weapon Armor Penetration."/></td>
<td class="sheet-width-W4 sheet-center"><input class="sheet-tiny-textblock sheet-center" type="text" name="attr_wpnSalvo" value="0" title="Weapon Salvo value."/></td>
<td class="sheet-width-W4 sheet-center"><input class="sheet-objective-checkbox sheet-center" type="checkbox" name="attr_wpnEmpty" value="1" title="Check if the weapon ammo is out."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-verysmall-textblock sheet-center" type="text" name="attr_wpnRange" value="0" title="The range of the attack; enter M for melee."/></span></td>
<td class="sheet-width-W8 sheet-center">
<select class="sheet-width-W95 smaller-text sheet-meddropdown sheet-left" name="attr_wpnAttackSkill" value="0" title="Select the skill used to make the attack.">
<option value="(0)" selected="true" >None</option>
<option value="(@{BallTotal})">BS/AG</option>
<option value="(@{WpnSkillTotal})">WS/IN</option>
<option value="(@{WpnSkilAgilTotal})">WS/AG</option>
</select>
</td>
<td class="sheet-width-W4 sheet-center"><span class="sheet-circle"><input type="number" name="attr_wpnAttkSkill" disabled="true" value="((@{wpnAttackSkill}))" title="Attribute + Skill modifier. Does not include BD or Mod from the attribute or skill table."/></span></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_wpnAttBD" value="0" title="Bonus Dice for Attack Roll."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_wpnAttMod" value="0" title="Modifier to each die rolled on the attack."/></td>
<td class="sheet-width-W4 sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-attack" type="roll"
title="Click to make an Attack roll."
value="@{sendapistring} {{[[[[@{wpnAttkSkill} + @{wpnAttBD} - 1]]d6]]}} {{[[1d6]]}} --++Name++|@{character_name} --Weapon|@{Weapon} --Bonus Dice|@{wpnAttBD} --Modifier|@{wpnAttMod} --Wrath Die|Combat"
name="roll_repeatingWeaponattack" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-attack" type="roll"
title="Click to make an Attack roll."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes an Attack test.}} {{dice=[[@{wpnAttkSkill} + @{wpnAttBD}]]}} {{roll=[[[[@{wpnAttkSkill} + @{wpnAttBD} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[1D6>4cs>6cf<1]]}}"
name="roll_dice4repeatingWeaponattack" style="font-size: 175%;">F</button>
</button>
</td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_wpnDmgBD" value="0" title="Bonus Dice for Damage Roll."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_wpnDmgMod" value="0" title="Modifier to each die rolled for Damage."/></td>
<td class="sheet-width-W4 sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-damage" type="roll"
title="Click to make a Damage roll with @{Weapon}."
value="@{sendapistring} {{[[[[@{wpnED} + @{wpnDmgBD}]]d6]]}} --++Name++|@{character_name} --Weapon|@{Weapon} --Damage|@{wpnDR} --AP|@{wpnAP} --Modifier|@{wpnDmgMod}"
name="roll_wpnDamage" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-damage" type="roll"
title="Click to make a Damage roll with @{Weapon}."
value="@{sendinlinestring}{template:roll_dicepool_damage} {{name=@{character_name} does damage with @{Weapon}.}} {{dice=[[@{wpnED} + @{wpnDmgBD}]]}} {{dmgmod=@{wpnDmgMod}}} {{roll=[[[[@{wpnED} + @{wpnDmgBD}]]d6>4cs>6cf<0]]}}"
name="roll_dice4wpnDamage" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
</table>
</fieldset>
<!-- Abilities -->
<div class="sheet-header">Abilities</div>
<fieldset class="repeating_ability">
<table>
<tr>
<td class="sheet-width-W10"><h3 class="sheet-header-override">Ability Name:</h3></td>
<td class="sheet-width-W40"><input class="sheet-width-W90" type="text" name="attr_ability" title="Name of the Ability"/></td>
<td class="sheet-width-W10 sheet-right"><h3 class="sheet-header-override" ># Uses/Pool:</h3></td>
<td class="sheet-width-W40 sheet-left"><input class="sheet-spin-button" type="number" name="attr_abilitypool" title="Number of uses or pool of points for the ability." /></td>
</tr>
<tr>
<td colspan="4"><textarea class="sheet-width-W100" name="attr_abilityDescription" title="Enter a brief summary of the Ability" /></textarea></td>
</tr>
</table>
</fieldset>
<!-- Psychic Powers -->
<div class="sheet-header">Psychic Powers</div>
<fieldset class="repeating_PsychicPower">
<table style="margin-top:10px;">
<tr>
<td class="sheet-width-W3"><h3 class="sheet-header-override">Power:</h3></td>
<td class="sheet-width-W17 sheet-right"><input class="sheet-width-W95" type="text" name="attr_psyPower" title="Name of the Psychic Power"/></td>
<td class="sheet-width-W4"><h3 class="sheet-header-overrideright">DN:</h3></td>
<td class="sheet-width-W3 sheet-left"><input class="sheet-smallmed-textblock sheet-center" type="text" value="0" name="attr_psyDN" title="Bare minimum Difficulty Number needed to activate the power." /></td>
<td class="sheet-width-W8"><h3 class="sheet-header-overrideright">Activation:</h3></td>
<td class="sheet-width-W5">
<select class="sheet-meddropdown sheet-left" name="attr_psyActivation" value="0" title="Select the time to activate the psychic power; describe other in the description.">
<option value="0" selected="true" ></option>
<option value="1">Free</option>
<option value="2">Simple</option>
<option value="3">2 Simple</option>
<option value="4">Move</option>
<option value="5">Action</option>
<option value="6">Full Act</option>
<option value="7">20 min</option>
<option value="8">30 min</option>
<option value="9">Other</option>
</select>
</td>
<td class="sheet-width-W8"><h3 class="sheet-header-overrideright">Duration:</h3></td>
<td class="sheet-width-W5">
<select class="sheet-largedropdown sheet-left" name="attr_psyDuration" value="0" title="Select the duration of the activated psychic power; describe other in the description.">
<option value="0" selected="true" ></option>
<option value="1">Instant</option>
<option value="2">Sustained</option>
<option value="3">1 round</option>
<option value="4">1 combat</option>
<option value="5">1 scene</option>
<option value="6">Other</option>
</select>
</td>
<td class="sheet-width-W7"><h3 class="sheet-header-overrideright">Range:</h3></td>
<td class="sheet-width-W8 sheet-left"><input class="sheet-width-W95" type="text" name="attr_psyRange" title="Range of the Psychic Power"/></td>
<td class="sheet-width-W5"><h3 class="sheet-header-overrideright">Multi?</h3></td>
<td class="sheet-width-W7">
<select class="sheet-smeddropdown sheet-left" name="attr_psyMultiTarget" value="0" title="Select if the power can target multiple individuals; default is No.">
<option value="0" selected="true" >N</option>
<option value="1">Y</option>
</select>
</td>
</tr>
</table>
<table>
<tr>
<td class="sheet-width-W5 sheet-left"><h6 class="sheet-header-override" title="Psychic Mastery skill">Psychic Mastery</h6></td>
<td class="sheet-width-W3 sheet-left"><span class="sheet-circle sheet-left"><input type="number" type="number" name="attr_psyPowerTestBasePMRate" disabled="true" value="((@{PsychicBaseRat}))" value="0" title="Base Psychic Mastery skill rating."/></td>
<td class="sheet-width-W6 sheet-right"><h6 class="sheet-header-overrideright" title="Attribute to be used for the test.">Linked&nbsp;&nbsp; Attribute</h6></td>
<td class="sheet-width-W5 sheet-center">
<select class="sheet-verylargedropdown sheet-smaller-text" name="attr_psyPowerTestLinkedAttr" value="0" title="Select the attribute associated with the power; default is WLP - Willpower.">
<option value="(0)" selected="true">None</option>
<option value="(@{STRAdj})">Strength</option>
<option value="(@{AGLAdj})">Agility</option>
<option value="(@{TGHAdj})">Toughness</option>
<option value="(@{INTAdj})">Intelligence</option>
<option value="(@{WILLAdj})" selected="true" >Willpower</option>
<option value="(@{FELAdj})">Fellowship</option>
<option value="(@{INITAdj})">Initiative</option>
</select>
</td>
<td class="sheet-width-W3 sheet-left"><span class="sheet-circle"><input type="number" type="number" name="attr_psyPowerTestAttrRat" disabled="true" value="((@{psyPowerTestLinkedAttr}))" title="Attribute adjusted rating to be added to the skill rating."/></span></td>
<td><input type="hidden" type="number" name="attr_psyPowerTestTotal" value="((@{psyPowerTestLinkedAttr}+@{psyPowerTestBasePMRate}))"/></td>
<td class="sheet-width-W5 sheet-right"><h6 class="sheet-header-overrideright" title="Enter the number of additional wrath dice. If no bonus Wrath Die set to 0.">Bonus Wrath:</h6></td>
<td class="sheet-width-W4 sheet-left"><input class="sheet-2digitspin-button" type="number" name="attr_psyPowerPush" value="0" title="Number of Additional Wrath Dice added to the skill roll."/></td>
<td class="sheet-width-W6"><h6 class="sheet-header-overrideright" title="Bonus Dice">Bonus Dice:&nbsp;&nbsp;</h6></td>
<td class="sheet-width-W4 sheet-left"><input class="sheet-2digitspin-button" type="number" name="attr_psyPowerBonusRoll" value="0" title="Number of Bonus Dice added to the skill roll."/></td>
<td class="sheet-width-W4 sheet-right"><h6 class="sheet-header-overrideright" title="Dice Modifier">Dice Mod:</h6></td>
<td class="sheet-width-W4 sheet-left"><input class="sheet-2digitspin-button" type="number" name="attr_psyPowerRollMod" value="0" title="Modifier to the result of the skill roll."/></td>
<td class="sheet-width-W5 sheet-center">
<button class="sheet-diebutton-api" type="roll"
title="Click to make an Psychic Mastery test."
value="@{sendapistring} {{[[[[@{psyPowerTestTotal} + @{psyPowerBonusRoll} - 1]]d6]]}} {{[[[[1+@{psyPowerPush}]]d6]]}} --++Name++|@{character_name} --Power|@{psyPower} --DN|@{psyDN} --Modifier|@{psyPowerRollMod}"
name="roll_psyPowerTestRoll" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make a Psychic Mastery Skill test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{character_name} makes a @{psyPower} test}} {{dice=[[@{psyPowerTestTotal} + @{psyPowerBonusRoll}]]}} {{roll=[[[[@{psyPowerTestTotal} + @{psyPowerBonusRoll} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[[[1+@{psyPowerPush}]]d6>4cs>6cf<0]]}}"
name="roll_psyPowerDice4TestRoll" style="font-size: 175%;">F</button>
</button>
</td>
<td class="sheet-width-W3"><h1 class="sheet-header-overrideright">|</h1></td>
<td class="sheet-width-W3 sheet-right"><h6 class="sheet-header-overrideright" title="Damage Rating">DR:</h6></td>
<td class="sheet-width-W4 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_psyPowerDR" value="0" title="Psychic Power Base DR."/></td>
<td class="sheet-width-W5 sheet-right"><h6 class="sheet-header-overrideright" title="Extra Dice">+ED:</h6></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_psyPowerED" value="1" title="Psychic Power Extra Damage Dice to be rolled."/></td>
<td class="sheet-width-W5"><h6 class="sheet-header-overrideright">Bonus Dice:&nbsp;&nbsp;</h6></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_psyPowerDmgBD" value="0" title="Bonus Dice for Psychic Power Damage Roll."/></td>
<td class="sheet-width-W4 sheet-right"><h6 class="sheet-header-overrideright" title="Dice Modifier">Dice Mod:</h6></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_psyPowerDmgMod" value="0" title="Modifier to each die rolled for Psychic Power Damage."/></td>
<td class="sheet-width-W5 sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-damage" type="roll"
title="Click to make a Damage roll with @{psyPower}."
value="@{sendapistring} {{[[[[@{psyPowerED} + @{psyPowerDmgBD}]]d6]]}} --++Name++|@{character_name} --PsyPower|@{psyPower} --Damage|@{psyPowerDR} --Modifier|@{psyPowerDmgMod}"
name="roll_psyPowerDamage" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-damage" type="roll"
title="Click to make a Damage roll with @{psyPower}."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{character_name} does damage with @{psyPower}.}} {{dice=[[@{psyPowerED} + @{psyPowerDmgBD}]]}} {{roll=[[[[@{psyPowerED} + @{psyPowerDmgBD}]]d6>4cs>6cf<0]]}}"
name="roll_dice4psyPowerDamage" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
</table>
<table>
<tr>
<td class="sheet-width-W5"><h3 class="sheet-header-override">Keywords:</h3></td>
<td class="sheet-width-W35 sheet-left"><input class="sheet-width-W100" type="text" name="attr_psyKeywords" title="Psychic Power keywords"/></td>
<td class="sheet-width-W3"><h1 class="sheet-header-overrideright">|</h1></td>
<td class="sheet-width-W7"><h3>Dice Rolls:</h3></td>
<td class="sheet-width-W5 sheet-right"><h6 class="sheet-header-overrideright" title="Number of Dice"># Dice:</h6></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_altNumberDice" value="1" title="Number of Dice to Roll."/></td>
<td class="sheet-width-W7 sheet-right"><h6 class="sheet-header-overrideright" title="Dice Roll Modifier">Roll Mod:</h6></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_altRollMod" value="1" title="Modifier to the roll. Example: 1d3+3 - this modifier is the '+3'."/></td>
<td class="sheet-width-W15 sheet-center">
<select class="sheet-xverylargedropdown sheet-smaller-text" name="attr_altRollTag" value="0" title="Select the tag to accompany the roll outcome.">
<option value="" selected="true"></option>
<option value="Shock">Shock</option>
<option value="Wound(s)">Wound(s)</option>
<option value="Mortal Wound(s)">Mortal Wound(s)</option>
</select>
</td>
<td class="sheet-width-W3 sheet-center">
<button class="sheet-diebutton-all sheet-diebutton-notest sheet-left" type="roll"
title="Click to roll a d3. To add a modifier to the roll update Roll Mod."
value="@{sendinlinestring}{template:alternative_roll} {{name=@{character_name} Rolls @{altNumberDice}d3+@{altRollMod}}} {{roll=[[@{altNumberDice}d3cs>20cf<0 + @{altRollMod}]]}} {{tag=@{altRollTag}}}"
name="roll_altd3Roll" style="font-size: 175%;">I</button>
</button>
</td>
<td class="sheet-width-W3 sheet-center">
<button class="sheet-diebutton-all sheet-diebutton-notest sheet-left" type="roll"
title="Click to roll a d6. To add a modifier to the roll update Roll Mod."
value="@{sendinlinestring}{template:alternative_roll} {{name=@{character_name} Rolls @{altNumberDice}d6+@{altRollMod}}} {{roll=[[@{altNumberDice}d6cs>20cf<0 + @{altRollMod}]]}} {{tag=@{altRollTag}}}"
name="roll_altd6Roll" style="font-size: 175%;">F</button>
</button>
</td>
<td class="sheet-width-W5 sheet-center">
<button class="sheet-diebutton-all sheet-diebutton-notest sheet-left" type="roll"
title="Click to roll a d66. Note: '# Dice' are not applied to this roll and 'Roll Mod' is applied to the first d6 roll."
value="@{sendinlinestring}{template:alternative_rolld66} {{name=@{character_name} Rolls d66+@{altRollMod}}} {{rolla=[[1d6cs>10cf<0 + @{altRollMod}]]}} {{rollb=[[1d6cs>10cf<0]]}}"
name="roll_altd6Roll" style="font-size: 175%;">FF</button>
</button>
</td>
</tr>
</table>
<table class="sheet-bottom-border">
<tr>
<td class="sheet-width-W90" colspan="2"><textarea name="attr_PsyPowerDescription" Placeholder="Enter a brief description of the power."></textarea></td>
</tr>
<tr>
<td class="sheet-width-W90" colspan="2"><textarea name="attr_PsyPowerPotency" Placeholder="Enter psychic power potency."></textarea></td>
</tr>
</table>
</fieldset>
<!-- Gear -->
<div class="sheet-header">Gear of Note</div>
<table>
<tr>
<th class="sheet-width-W20"><h3 class="sheet-header-override" title="Name of the Gear">Gear</h3></th>
<th class="sheet-width-W80"><h3 class="sheet-header-override" title="Brief description of the gear">Brief Description</h3></th>
</tr>
</table>
<fieldset class="repeating_gear">
<table>
<tr>
<td class="sheet-width-W20"><input class="sheet-width-W95" type="text" name="attr_gear" placeholder="Gear Name" /></td>
<td class="sheet-width-W80"><input class="sheet-width-W100" type="text" name="attr_gearDescription"/></td>
</tr>
</table>
</fieldset>
</div> <!-- END OF Block B: NPC's -->
<!-- ************************************** Vehicle ************************************** -->
<div class="sheet-multi-view sheet-isVehicle">
<div class="sheet-header">Vehicle General Details</div>
<table>
<tr>
<td class="sheet-width-W5"><h3 class="sheet-header-override">Name:</h3></td>
<td class="sheet-width-W20 sheet-left"><input class="sheet-width-W95" type="text" name="attr_vehName" title="Name of the Vehicle"/></td>
<td class="sheet-width-W5 sheet-right"><h3 class="sheet-header-overrideright">Crew:</h3></td>
<td class="sheet-width-W50 sheet-left"><input class="sheet-width-W95" type="text" name="attr_vehCrew" title="List of the vehicle crew and count."/></td>
<td class="sheet-width-W5 sheet-right"><h3 class="sheet-header-overrideright">Speed:</h3></td>
<td class="sheet-width-W5 sheet-left"><input class="sheet-small-textblock" type="text" value="0" name="attr_vehSpeed" title="Vehicle cruising speed in meters."/></td>
<td class="sheet-width-W5 sheet-right"><h3 class="sheet-header-overrideright">Value:</h3>
<td class="sheet-width-W5 sheet-left"><input class="sheet-small-textblock" type="text" value="0" name="attr_vehValue" title="Value of the vehicle."/></td>
</tr>
</table>
<table>
<tr>
<td class="sheet-width-W5 sheet-left"><h3 class="sheet-header-override">Traits:</h3></td>
<td class="sheet-width-W45 sheet-left"><input class="sheet-width-W95" type="text" name="attr_vehTraits" title="Vehicle traits."/></td>
<td class="sheet-width-W5 sheet-right"><h3 class="sheet-header-overrideright">Keywords:</h3></td>
<td class="sheet-width-W45 sheet-left"><input class="sheet-width-W100" type="text" name="attr_vehKeywords" title="Vehicle relevant keywords"/></td>
</tr>
</table>
<textarea name="attr_vehDescription" placeholder="Vehicle Description and Notes."></textarea>
<div class="sheet-3colrow">
<!-- COLUMN 1 - Vehicle Defense & Resilience -->
<div class="sheet-col">
<div class="sheet-header">Defense/Resilience/Reloads</div>
<table>
<tr>
<td class="sheet-width-W15"><span class="sheet-background">Defense:</span></td>
<td class="sheet-width-W85 sheet-left" colspan="3"><input type="number" value="0" name="attr_vehDef" title="Vehicle Defense Score."/></td>
</tr>
<tr>
<td class="sheet-width-W15"><span class="sheet-background">Resilience:</span></td>
<td class="sheet-width-W85 sheet-left" colspan="3"><input type="number" value="0" name="attr_vehRes" title="Vehicle Resilience."/><span>
</tr>
<tr>
<td class="sheet-width-W15"><span class="sheet-background sheet-right">Reloads:</span></td>
<td class="sheet-width-W85 sheet-left"><input type="number" value="0" name="attr_vehReloads" title="Reloads carried in the vehicle."/></td>
</tr>
</table>
</div>
<!-- COLUMN 2 - Vehicle Health -->
<div class="sheet-col">
<div class="sheet-header">Health</div>
<table>
<tr>
<td class="sheet-width-W50"><span class="sheet-background">Wounds: </span></td>
<td class="sheet-width-W50 sheet-left"><input class="sheet-spin-button" type="number" value="0" name="attr_vehicleWounds_max" title="Vehicle Wound Rating."/></td>
</tr>
<tr>
<td class="sheet-width-W50"><span class="sheet-background">Current Wounds: </span></td>
<td class="sheet-width-W50 sheet-left"><input class="sheet-spin-button" type="number" value="0" name="attr_vehicleWounds" title="Current Wounds."/></td>
</tr>
</table>
<table>
<tr>
<td class="sheet-width-W60"><span class="sheet-background">Heavily Wounded at:</span></td>
<td class="sheet-width-W40 sheet-left"><span class="sheet-circle"><input type="number" readonly value="0" name="attr_vehHeavywound" title="The point the vehicle is considered heavily wounded."/></span></td>
</tr>
</table>
</div>
<!-- COLUMN 3 - Vehicle Rolls -->
<div class="sheet-col">
<div class="sheet-header">Rolls</div>
<table>
<tr>
<td class="sheet-width-W30 sheet-left"><span class="sheet-background sheet-left">Pool</span><input class="sheet-2digitspin-button" type="number" value="0" name="attr_vehDicePool" title="Base dice pool (Attribute + Skill of acting character) used for vehicle combat actions; alternative to use of a player character sheet."/></td>
<td class="sheet-width-W35 sheet-center"><span class="sheet-background">Bns Dice</span><input class="sheet-2digitspin-button" type="number" value="0" name="attr_vehCombatBD" title="Bonus Dice for Vehicle Soak and Combat Initiative Rolls."/></td>
<td class="sheet-width-W35 sheet-right"><span class="sheet-background sheet-right">Die Mod</span><input class="sheet-2digitspin-button" type="number" value="0" name="attr_vehCombatRollMod" title="Modifier applied to dice on a vehicle combat initiative or soak roll."/></td>
</tr>
</table>
<table>
<tr>
<td class="sheet-width-W35"><span class="sheet-background sheet-left">Vehicle Test?</span> </td>
<td class="sheet-width-W35 sheet-left" colspan="3">
<select class="sheet-verylargedropdown sheet-smaller-text" name="attr_vehicleTest" value="0" title="Select the Action being taken with the test roll.">
<option value="Bootleg Turn" selected="true">Bootleg Turn</option>
<option value="Evasion">Evasion</option>
<option value="Pilot">Pilot</option>
<option value="Ram">Ram</option>
<option value="Repair">Repair</option>
<option value="Other">Other</option>
</select>
</td>
<td class="sheet-width-W30 sheet-center">
<button class="sheet-diebutton-api" type="roll"
title="Click to make a vehicle test."
value="@{sendapistring} {{[[[[@{vehDicePool} + @{vehCombatBD} - 1]]d6]]}} {{[[1d6]]}} --Vehicle|@{vehName} --Test|@{vehicleTest} --Modifier|@{vehCombatRollMod} --Wrath Die|Test"
name="roll_vehicleTest" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make vehicle test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{vehName} makes a @{vehicleTest} test.}} {{dice=[[@{vehDicePool} + @{vehCombatBD}]]}} {{roll=[[[[@{vehDicePool} + @{vehCombatBD} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[1D6>4cs>6cf<1]]}}"
name="roll_dice4vehicleStunt" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
</table>
<table>
<tr>
<td class="sheet-width-W20"><span class="sheet-background">Initiative</span></td>
<td class="sheet-width-W30 sheet-left">
<button class="sheet-diebutton-api sheet-diebutton-notest" type="roll"
title="Click to roll vehicle initiative for combat (no wrath die)"
value="@{sendapistring} {{[[[[@{vehDicePool} + @{vehCombatBD}]]d6]]}} --Vehicle|@{vehName} --Action|Vehicle Combat Initiative --Modifier|@{vehCombatRollMod}"
name="roll_vehiclecombatinitiative" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-notest" type="roll"
title="Click to roll vehicle initiative for combat"
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{vehName} makes a combat initiative roll.}} {{dice=[[@{vehDicePool} + @{vehCombatBD}]]}} {{roll=[[[[@{vehDicePool} + @{vehCombatBD}]]d6>4cs>6cf<0]]}}"
name="roll_dice4vehiclecombatinitiative" style="font-size: 175%;">F</button>
</button>
</td>
<td class="sheet-width-W20"><span class="sheet-background sheet-right">Soak Roll</span></td>
<td class="sheet-width-W30 sheet-left">
<button class="sheet-diebutton-api sheet-diebutton-notest" type="roll"
title="Click to make a Vehicle Soak roll. To modify the number of dice update Roll BD and to add a modifier to the roll update Die Mod above."
value="@{sendapistring} {{[[[[@{vehDicePool} + @{vehCombatBD}]]d6]]}} --Vehicle|@{vehName} --Action|Vehicle Soak Roll --Modifier|@{vehCombatRollMod}"
name="roll_vehiclesoak" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-notest" type="roll"
title="Click to make a Vehicle Soak roll. To modify the number of dice update Roll BD."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{vehName} makes a soak roll}} {{dice=[[@{vehDicePool} + @{vehCombatBD}]]}} {{roll=[[[[@{vehDicePool} + @{vehCombatBD}]]d6>4cs>6cf<0]]}}"
name="roll_dice4vehiclesoak" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
</table>
</div>
</div>
<textarea name="attr_vehCriticalHits" placeholder="List vehicle criticals here."></textarea>
<!-- Vehicle Weapons and Attack Details -->
<div class="sheet-header">Vehicle Weapon and Attack Details</div>
<table>
<tr>
<th class="sheet-width-W30"><H3 class="sheet-header-override" title="name of the weapon.">Weapon</H3></th>
<th class="sheet-width-W5"><H3 class="sheet-header-override"title="Weapon traits and additional details.">Notes</H3></th>
<th class="sheet-width-W5"><H3 title="Base Weapon DR">DR</H3></th>
<th class="sheet-width-W5"><H3 title="Number of Extra Dice applied to Damage.">+ED</H3></th>
<th class="sheet-width-W5"><H3 title="Armor Piercing Value of the weapon.">AP</H3></th>
<th class="sheet-width-W5"><H3 title="The weapons salvo value.">Salvo</H3></th>
<th class="sheet-width-W5"><H3 title="Is the weapon out of ammo?">Empty?</H3></th>
<th class="sheet-width-W5"><H3 title="Range of the weapon; enter M for melee.">Rng</H3></th>
<th class="sheet-width-W5"><H3 title="Dice pool - combined Skill and Attribute - used for vehicle weapon attack roll.">Pool</H3></th>
<th class="sheet-width-W5"><H3 title="Bonus Dice applied to the attack roll.">A BD</H3></th>
<th class="sheet-width-W5"><H3 title="A modifier applied to each die in the attack roll.">A Mod</H3></th>
<th class="sheet-width-W5"><H3 title="Click to make an attack roll.">Atk</H3></th>
<th class="sheet-width-W5"><H3 title="Bonus Dice applied to the damage roll.">D BD</H3></th>
<th class="sheet-width-W5"><H3 title="A modifier applied to each die in the damage roll.">D Mod</H3></th>
<th class="sheet-width-W5"><H3 title="Click to make a damage roll.">Dmg</H3></th>
</tr>
</table>
<fieldset class="repeating_vehicleweapon">
<table>
<tr>
<td class="sheet-width-W35">
<input class="sheet-width-W85 smaller-text sheet-hover" placeholder="Weapon Name" type="text" name="attr_vehWeapon" title="name of the weapon."/>
<span class="sheet-tooltip" name="attr_vehwpnDetailTrait-tooltip" ></span>
<input type="checkbox" class="sheet-hover-hidden"/><span></span>
<textarea placeholder="Enter additional weapon details -- such as traits with description." class="sheet-tooltip sheet-width-W75" name="attr_vehwpnDetailTrait-tooltip"></textarea>
</td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-2digitspin-button" type="number" name="attr_vehWpnDR" value="0" title="Base Damage Rating of the weapon."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-2digitspin-button" type="number" name="attr_vehWpnED" value="1" title="Weapon Extra Damage Dice to be rolled."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-2digitspin-button" type="number" name="attr_vehWpnAP" value="0" title="Weapon Armor Penetration."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-2digitspin-button" type="number" name="attr_vehwpnSalvo" value="0" title="Weapon Salvo value."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-objective-checkbox sheet-center" type="checkbox" name="attr_vehwpnEmpty" value="1" title="Check if the weapon ammo is out."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-verysmall-textblock" type="text" name="attr_vehwpnRange" value="0" title="The range of the attack; enter M for melee."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-2digitspin-button" type="number" name="attr_vehwpnPool" value="0" title="Dice pool to be used for making an Weapon the weapon. Does not include BD or Mod from the attribute or skill table."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-2digitspin-button" type="number" name="attr_vehwpnAttBD" value="0" title="Bonus Dice for Attack Roll."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-2digitspin-button" type="number" name="attr_vehwpnAttMod" value="0" title="Modifier to each die rolled on the attack."/></td>
<td class="sheet-width-W5 sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-attack" type="roll"
title="Click to make an Attack roll."
value="@{sendapistring} {{[[[[@{vehwpnPool} + @{vehwpnAttBD} - 1]]d6]]}} {{[[1d6]]}} --Name|@{vehName} --Weapon|@{vehWeapon} --Bonus Dice|@{vehwpnAttBD} --Modifier|@{vehwpnAttMod} --Wrath Die|Combat"
name="roll_repeatingVehWeaponAttack" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-attack" type="roll"
title="Click to make an Attack roll."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{vehName} Attacks with @{vehWeapon}.}} {{dice=[[@{vehwpnPool} + @{vehwpnAttBD}]]}} {{roll=[[[[@{vehwpnPool} + @{vehwpnAttBD} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[1D6>4cs>6cf<1]]}}"
name="roll_dice4repeatingVehWeaponAttack" style="font-size: 175%;">F</button>
</button>
</td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_vehwpnDmgBD" value="0" title="Bonus Dice for Damage Roll."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_vehwpnDmgMod" value="0" title="Modifier to each die rolled for Damage."/></td>
<td class="sheet-width-W5 sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-damage" type="roll"
title="Click to make a Damage roll."
value="@{sendapistring} {{[[[[@{vehwpnED} + @{vehwpnDmgBD}]]d6]]}} --Name|@{vehName} --Weapon|@{vehWeapon} --Damage|@{vehWpnDR} --AP|@{vehWpnAP} --Modifier|@{vehwpnDmgMod}"
name="roll_VehWpnDamage" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-damage" type="roll"
title="Click to make a Damage roll."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{vehName} does damage with @{vehWeapon}.}} {{dice=[[@{vehWpnED} + @{vehwpnDmgBD}]]}} {{roll=[[[[@{vehwpnED} + @{vehwpnDmgBD}]]d6>4cs>6cf<0]]}}"
name="roll_dice4VehWpnDamage" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
</table>
</fieldset>
</div> <!-- END OF Block C: Vehicle -->
<!-- ************************************** Voidship ************************************** -->
<div class="sheet-multi-view sheet-isVoidship">
<div class="sheet-header">Voidship General Details</div>
<table>
<tr>
<td class="sheet-width-W5"><h3 class="sheet-header-override">Name:</h3></td>
<td class="sheet-width-W35 sheet-left"><input class="sheet-width-W95" type="text" name="attr_voidName" title="Name of the Voidship"/></td>
<td class="sheet-width-W5 sheet-left"><h3 class="sheet-header-override">Class:</h3></td>
<td class="sheet-width-W35 sheet-left"><input class="sheet-width-W95" type="text" name="attr_voidClass" title="Class of Ship; example 'Imperial Sword-Class Frigate'."/></td>
<td class="sheet-width-W5 sheet-right"><h3 class="sheet-header-overrideright">Speed:</h3></td>
<td class="sheet-width-W5 sheet-left"><input class="sheet-small-textblock" type="text" value="0" name="attr_voidSpeed" title="Voidship cruising speed in meters."/></td>
<td class="sheet-width-W5 sheet-right"><h3 class="sheet-header-overrideright">Value:</h3>
<td class="sheet-width-W5 sheet-left"><input class="sheet-small-textblock" type="text" value="0" name="attr_voidValue" title="Value of the Voidship."/></td>
</tr>
</table>
<table>
<tr>
<td class="sheet-width-W5 sheet-right"><h3 class="sheet-header-overrideright">Keywords:</h3></td>
<td class="sheet-width-W95 sheet-left"><input class="sheet-width-W100" type="text" name="attr_voidKeywords" title="Voidship relevant keywords"/></td>
</tr>
</table>
<textarea name="attr_voidDescription" placeholder="Voidship Description and Notes."></textarea>
<div class="sheet-header">Voidship Systems</div>
<table>
<tr>
<th class="sheet-width-W20"><h3 class="sheet-header-override" title="Name of the Voidship System">System</h3></th>
<th class="sheet-width-W80"><h3 class="sheet-header-override" title="Brief description of the gear or asset">Brief Description</h3></th>
</tr>
</table>
<fieldset class="repeating_voidsystems">
<table>
<tr>
<td class="sheet-width-W20"><input class="sheet-width-W95" type="text" name="attr_voidsystemname" placeholder="Voidship System Name" /></td>
<td class="sheet-width-W80"><textarea name="attr_voidSystems" placeholder="Voidship System Description and Notes."></textarea></td>
</tr>
</table>
</fieldset>
<div class="sheet-3colrow">
<!-- COLUMN 1 - Voidship Defense & Resilience -->
<div class="sheet-col">
<div class="sheet-header">Defense/Resilience/Reloads</div>
<table>
<tr>
<td class="sheet-width-W15"><span class="sheet-background">Defense:</span></td>
<td class="sheet-width-W85 sheet-left" colspan="3"><input type="number" value="0" name="attr_voidDef" title="Voidship Defense Score."/></td>
</tr>
<tr>
<td class="sheet-width-W15"><span class="sheet-background">Resilience:</span></td>
<td class="sheet-width-W85 sheet-left" colspan="3"><input type="number" value="0" name="attr_voidRes" title="Voidship Resilience."/><span>
</tr>
<tr>
<td class="sheet-width-W15"><span class="sheet-background sheet-right">Reloads:</span></td>
<td class="sheet-width-W85 sheet-left"><input type="number" value="0" name="attr_voidReloads" title="Reloads carried in the Voidship."/></td>
</tr>
</table>
</div>
<!-- COLUMN 2 - Voidship Health -->
<div class="sheet-col">
<div class="sheet-header">Health</div>
<table>
<tr>
<td class="sheet-width-W50"><span class="sheet-background">Wounds: </span></td>
<td class="sheet-width-W50 sheet-left"><input class="sheet-spin-button" type="number" value="0" name="attr_voidshipWounds_max" title="Voidship Wound Rating."/></td>
</tr>
<tr>
<td class="sheet-width-W50"><span class="sheet-background">Current Wounds: </span></td>
<td class="sheet-width-W50 sheet-left"><input class="sheet-spin-button" type="number" value="0" name="attr_voidshipWounds" title="Current Wounds."/></td>
</tr>
</table>
<table>
<tr>
<td class="sheet-width-W60"><span class="sheet-background">Heavily Wounded at:</span></td>
<td class="sheet-width-W40 sheet-left"><span class="sheet-circle"><input type="number" readonly value="0" name="attr_voidheavywound" title="The point the Voidship is considered heavily wounded."/></span></td>
</tr>
</table>
</div>
<!-- COLUMN 3 - Voidship Rolls -->
<div class="sheet-col">
<div class="sheet-header">Rolls</div>
<table>
<tr>
<td class="sheet-width-W30 sheet-left"><span class="sheet-background sheet-left">Pool</span><input class="sheet-2digitspin-button" type="number" value="0" name="attr_voidDicePool" title="Base dice pool (Attribute + Skill of acting character) used for Voidship combat actions; alternative to use of a player character sheet."/></td>
<td class="sheet-width-W35 sheet-center"><span class="sheet-background">Bns Dice</span><input class="sheet-2digitspin-button" type="number" value="0" name="attr_voidCombatBD" title="Bonus Dice for Voidship Soak and Combat Initiative Rolls."/></td>
<td class="sheet-width-W35 sheet-right"><span class="sheet-background sheet-right">Die Mod</span><input class="sheet-2digitspin-button" type="number" value="0" name="attr_voidCombatRollMod" title="Modifier applied to dice on a Voidship combat initiative or soak roll."/></td>
</tr>
</table>
<table>
<tr>
<td class="sheet-width-W35"><span class="sheet-background sheet-left">Voidship Test?</span> </td>
<td class="sheet-width-W55 sheet-left" colspan="2">
<select class="sheet-xtralargedropdown sheet-smaller-text" name="attr_voidTest" value="0" title="Select the Action being taken with the test roll.">
<option value="Deep Assault">Deep Assault</option>
<option value="Deep Scan">Deep Scan</option>
<option value="Emergency Repairs" selected="true">Emergency Repairs</option>
<option value="Evasive Manoeuvre">Evasive Manoeuvre</option>
<option value="Harden Shields">Harden Shields</option>
<option value="Interaction">Interaction</option>
<option value="Pilot">Pilot</option>
<option value="Provision">Provision</option>
<option value="Ram">Ram</option>
<option value="Repair">Repair</option>
<option value="Sortie">Sortie</option>
<option value="Tech">Tech</option>
<option value="Other">Other</option>
</select>
</td>
<td class="sheet-width-W10 sheet-center">
<button class="sheet-diebutton-api" type="roll"
title="Click to make a Voidship test."
value="@{sendapistring} {{[[[[@{voidDicePool} + @{voidCombatBD} - 1]]d6]]}} {{[[1d6]]}} --Voidship|@{voidName} --Test|@{voidTest} --Modifier|@{voidCombatRollMod} --Wrath Die|Test"
name="roll_voidTest" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple" type="roll"
title="Click to make Voidship test."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{voidName} makes a @{voidTest} test.}} {{dice=[[@{voidDicePool} + @{voidCombatBD}]]}} {{roll=[[[[@{voidDicePool} + @{voidCombatBD} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[1D6>4cs>6cf<1]]}}"
name="roll_dice4voidStunt" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
</table>
<table>
<tr>
<td class="sheet-width-W20"><span class="sheet-background">Initiative</span></td>
<td class="sheet-width-W30 sheet-left">
<button class="sheet-diebutton-api sheet-diebutton-notest" type="roll"
title="Click to roll Voidship initiative for combat (no wrath die)"
value="@{sendapistring} {{[[[[@{voidDicePool} + @{voidCombatBD}]]d6]]}} --Voidship|@{voidName} --Action|Voidship Combat Initiative --Modifier|@{voidCombatRollMod}"
name="roll_voidcombatinitiative" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-notest" type="roll"
title="Click to roll Voidship initiative for combat"
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{voidName} makes a combat initiative roll.}} {{dice=[[@{voidDicePool} + @{voidCombatBD}]]}} {{roll=[[[[@{voidDicePool} + @{voidCombatBD}]]d6>4cs>6cf<0]]}}"
name="roll_dice4voidcombatinitiative" style="font-size: 175%;">F</button>
</button>
</td>
<td class="sheet-width-W20"><span class="sheet-background sheet-right">Soak Roll</span></td>
<td class="sheet-width-W30 sheet-left">
<button class="sheet-diebutton-api sheet-diebutton-notest" type="roll"
title="Click to make a Voidship Soak roll. To modify the number of dice update Roll BD and to add a modifier to the roll update Die Mod above."
value="@{sendapistring} {{[[[[@{voidDicePool} + @{voidCombatBD}]]d6]]}} --Voidship|@{voidName} --Action|Voidship Soak Roll --Modifier|@{voidCombatRollMod}"
name="roll_voidsoak" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-notest" type="roll"
title="Click to make a Voidship Soak roll. To modify the number of dice update Roll BD."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{voidName} makes a soak roll}} {{dice=[[@{voidDicePool} + @{voidCombatBD}]]}} {{roll=[[[[@{voidDicePool} + @{voidCombatBD}]]d6>4cs>6cf<0]]}}"
name="roll_dice4voidsoak" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
</table>
</div>
</div>
<textarea name="attr_voidCriticalHits" placeholder="List Voidship criticals here."></textarea>
<!-- Voidship Weapons and Attack Details -->
<div class="sheet-header">Voidship Weapon and Attack Details</div>
<table>
<tr>
<th class="sheet-width-W30"><H3 class="sheet-header-override" title="name of the weapon.">Weapon</H3></th>
<th class="sheet-width-W5"><H3 class="sheet-header-override"title="Weapon traits and additional details.">Notes</H3></th>
<th class="sheet-width-W5"><H3 title="Base Weapon DR">DR</H3></th>
<th class="sheet-width-W5"><H3 title="Number of Extra Dice applied to Damage.">+ED</H3></th>
<th class="sheet-width-W5"><H3 title="Armor Piercing Value of the weapon.">AP</H3></th>
<th class="sheet-width-W5"><H3 title="The weapons salvo value.">Salvo</H3></th>
<th class="sheet-width-W5"><H3 title="Is the weapon out of ammo?">Empty?</H3></th>
<th class="sheet-width-W5"><H3 title="Range of the weapon.">Rng</H3></th>
<th class="sheet-width-W5"><H3 title="Dice pool - combined Skill and Attribute - used for Voidship weapon attack roll.">Pool</H3></th>
<th class="sheet-width-W5"><H3 title="Bonus Dice applied to the attack roll.">A BD</H3></th>
<th class="sheet-width-W5"><H3 title="A modifier applied to each die in the attack roll.">A Mod</H3></th>
<th class="sheet-width-W5"><H3 title="Click to make an attack roll.">Atk</H3></th>
<th class="sheet-width-W5"><H3 title="Bonus Dice applied to the damage roll.">D BD</H3></th>
<th class="sheet-width-W5"><H3 title="A modifier applied to each die in the damage roll.">D Mod</H3></th>
<th class="sheet-width-W5"><H3 title="Click to make a damage roll.">Dmg</H3></th>
</tr>
</table>
<fieldset class="repeating_voidweapon">
<table>
<tr>
<td class="sheet-width-W35">
<input class="sheet-width-W85 smaller-text sheet-hover" placeholder="Weapon Name" type="text" name="attr_voidWeapon" title="name of the weapon."/>
<span class="sheet-tooltip" name="attr_voidwpnDetailTrait-tooltip" ></span>
<input type="checkbox" class="sheet-hover-hidden"/><span></span>
<textarea placeholder="Enter additional weapon details -- such as traits with description." class="sheet-tooltip sheet-width-W75" name="attr_voidwpnDetailTrait-tooltip"></textarea>
</td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-2digitspin-button" type="number" name="attr_voidWpnDR" value="0" title="Base Damage Rating of the weapon."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-2digitspin-button" type="number" name="attr_voidWpnED" value="1" title="Weapon Extra Damage Dice to be rolled."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-2digitspin-button" type="number" name="attr_voidWpnAP" value="0" title="Weapon Armor Penetration."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-2digitspin-button" type="number" name="attr_voidwpnSalvo" value="0" title="Weapon Salvo value."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-objective-checkbox sheet-center" type="checkbox" name="attr_voidwpnEmpty" value="1" title="Check if the weapon ammo is out."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-small-textblock" type="text" name="attr_voidwpnRange" value="" title="The range of the attack"/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-2digitspin-button" type="number" name="attr_voidwpnPool" value="0" title="Dice pool to be used for making an Weapon the weapon. Does not include BD or Mod from the attribute or skill table."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-2digitspin-button" type="number" name="attr_voidwpnAttBD" value="0" title="Bonus Dice for Attack Roll."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-2digitspin-button" type="number" name="attr_voidwpnAttMod" value="0" title="Modifier to each die rolled on the attack."/></td>
<td class="sheet-width-W5 sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-attack" type="roll"
title="Click to make an Attack roll."
value="@{sendapistring} {{[[[[@{voidwpnPool} + @{voidwpnAttBD} - 1]]d6]]}} {{[[1d6]]}} --Name|@{voidName} --Weapon|@{voidWeapon} --Bonus Dice|@{voidwpnAttBD} --Modifier|@{voidwpnAttMod} --Wrath Die|Combat"
name="roll_repeatingvoidWeaponAttack" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-attack" type="roll"
title="Click to make an Attack roll."
value="@{sendinlinestring}{template:roll_dicepool} {{name=@{voidName} Attacks with @{voidWeapon}.}} {{dice=[[@{voidwpnPool} + @{voidwpnAttBD}]]}} {{roll=[[[[@{voidwpnPool} + @{voidwpnAttBD} - {1}]]d6>4cs>6cf<0]]}} {{wrath=[[1D6>4cs>6cf<1]]}}"
name="roll_dice4repeatingvoidWeaponAttack" style="font-size: 175%;">F</button>
</button>
</td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_voidwpnDmgBD" value="0" title="Bonus Dice for Damage Roll."/></td>
<td class="sheet-width-W5 sheet-center"><input class="sheet-smallspin-button" type="number" name="attr_voidwpnDmgMod" value="0" title="Modifier to each die rolled for Damage."/></td>
<td class="sheet-width-W5 sheet-center">
<button class="sheet-diebutton-api sheet-diebutton-damage" type="roll"
title="Click to make a Damage roll."
value="@{sendapistring} {{[[[[@{voidwpnED} + @{voidwpnDmgBD}]]d6]]}} --Name|@{voidName} --Weapon|@{voidWeapon} --Damage|@{voidWpnDR} --AP|@{voidWpnAP} --Modifier|@{voidwpnDmgMod}"
name="roll_voidWpnDamage" style="font-size: 175%;">F</button>
</button>
<button class="sheet-diebutton-simple sheet-diebutton-damage" type="roll"
title="Click to make a Damage roll."
value="@{sendinlinestring}{template:roll_dicepool_nowrath} {{name=@{voidName} does damage with @{voidWeapon}.}} {{dice=[[@{voidWpnED} + @{voidwpnDmgBD}]]}} {{roll=[[[[@{voidwpnED} + @{voidwpnDmgBD}]]d6>4cs>6cf<0]]}}"
name="roll_dice4voidWpnDamage" style="font-size: 175%;">F</button>
</button>
</td>
</tr>
</table>
</fieldset>
</div> </div> <!-- END OF Block D: Voidships -->
<!-- END Sheets with Background -->
</div>
<!-- ************************************** Hidden Fields for Sheet Workers ************************************** -->
<div>
<!-- For debugging sheet workers
Value A<input readonly name="attr_testA"/>
Value B<input readonly name="attr_testB"/>
Value C<input readonly name="attr_testC"/>
Value D<input readonly name="attr_testD"/>
Value E<input readonly name="attr_testE"/>
Value F<input readonly name="attr_testF"/> -->
</div>
<!-- ************************************** ROLL TEMPLATES ************************************** -->
<div>
<rolltemplate class="sheet-rolltemplate-roll_dicepool">
<table>
<tr><th colspan="2">{{name}}</th></tr>
<tr><td><span style="text-align:left"><b>Pool of Dice:</b>&nbsp;{{dice}}<b>d6</b></span></td></tr>
<tr><td><span style="text-align:left"><b># Icons(4-6) Rolled:</b>&nbsp;{{roll}}</span></td></tr>
<tr><td><span style="text-align:left"><b>Wrath Die Result:</b>&nbsp;{{wrath}}</span></td></tr>
</table>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-roll_dicepool_nowrath">
<table>
<tr><th colspan="2">{{name}}</th></tr>
<tr><td><span style="text-align:left"><b>Pool of Dice:</b>&nbsp;{{dice}}<b>d6</b></span></td></tr>
<tr><td><span style="text-align:left"><b># Icons(4-6) Rolled:</b>&nbsp;{{roll}}</span></td></tr>
</table>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-roll_dicepool_damage">
<table>
<tr><th colspan="2">{{name}}</th></tr>
<tr><td><span style="text-align:left"><b>Pool of Dice:</b>&nbsp;{{dice}}<b>d6</b></span></td></tr>
<tr><td><span style="text-align:left"><b>Damage Modifier:</b>&nbsp;{{dmgmod}}</span></td></tr>
<tr><td colspan="2"><span style="text-align:left"><i>Dmg Mod will need to be added manually to determine icons.</i></span></td></tr>
<tr><td><span style="text-align:left"><b># Icons(4-6) Rolled:</b>&nbsp;{{roll}}</span></td></tr>
</table>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-recovershock_roll">
<table>
<tr><th colspan="2">{{name}}</th></tr>
<tr><td><span style="text-align:left"><b>Recover&nbsp;{{roll}}&nbsp;Shock</span></td></tr>
</table>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-alternative_roll">
<table>
<tr><th colspan="2">{{name}}</th></tr>
<tr><td><span style="text-align:center"><b>&nbsp;{{roll}}&nbsp;{{tag}}</span></td></tr>
</table>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-alternative_rolld66">
<table>
<tr><th colspan="2">{{name}}</th></tr>
<tr><td><span style="text-align:center"><b>{{rolla}}{{rollb}}</span></td></tr>
</table>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-glory_roll">
<table>
<tr><th colspan="2">{{name}}</th></tr>
<tr><td><span style="text-align:left"><b>Glory Roll({{number}}<b>d6</b>):</b>&nbsp;{{roll}}&nbsp;icon(s) (4-6) rolled</span></td></tr>
</table>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-meltadamage_roll">
<table>
<tr><th colspan="2">{{name}}</th></tr>
<tr><td><span style="text-align:center"><b>Melta Damage:</b> ({{dice}}d6): {{roll}} Dmg</span></td></tr>
</table>
</rolltemplate>
<!-- ************************************** Script Workers ************************************** -->
<script type="text/worker">
//*************************************************************************************************
//******************************** Upgrade Version ************************************************
//*************************************************************************************************
// EXECUTE: When the sheet is opened, update score fields for anyone using an older sheet.
on('sheet:opened',function(){
getAttrs(["sheetversion"], function(values) {
var version = (values.sheetversion)*1;
// console.log("current sheet version: " + version);
// section 2.2 and lower update
if(version < 2.2) {
// Update corruption labels
getAttrs(["corrbase"], function(values) {
var corruption = (values.corrbase)*1;
corruption = Math.max(0,corruption); // corruption does not go below 0; throws an error on the lookup if below 0
corruption = Math.min(30,corruption); // corruption does not go above 30; throws an error on the lookup if above 30
var label = lookup_corruption_lvl(corruption);
var dn = lookup_corruption_dn(corruption);
setAttrs({CorrLevel:label});
setAttrs({CorrResistDN:dn});
});
// handle changes to wound and shock changes to enable token max + set Heavy and Light wound levels
getAttrs(["shockcurrent","woundscurrent","tier","tghbase","tghmod","woundsmod","customtier","willbase","willmod","shockmod"], function(values) {
var sc = (values.shockcurrent*1);
var wc = (values.woundscurrent*1);
// set current wounds and shock = to old values
setAttrs({wounds:wc});
setAttrs({shock:sc});
// calculate wound max and shock max
var t = (values.tier)*1;
var tgh = ((values.tghbase)*1)+((values.tghmod)*1);
var wm = (values.woundsmod)*1;
var will = ((values.willbase)*1)+((values.willmod)*1);
var sm = (values.shockmod)*1;
var ct = (values.customtier)*1;
var totalw = tgh + t + wm;
var totals = will + t + sm;
if(t === 6) {
totalw = tgh + ct + wm;
totals = will + ct + sm;
}
if(t < 6) {
setAttrs({customtier:0});
}
// set new max values
setAttrs({shock_max:totals});
setAttrs({wounds_max:totalw});
// set old values to new totals
setAttrs({shockcurrent:totals});
setAttrs({woundscurrent:totalw});
});
// update weapon DR
getAttrs(["strbase","strmod","willbase","willmod","keywordpsyker"], function(values) {
var ispsyker = (values.keywordpsyker)*1;
var str = (values.strbase)*1 + (values.strmod)*1;
var will = (values.willbase)*1 + (values.willmod)*1;
var newdr = 0;
var ismelee = 0;
var isforce = 0;
// get all repeating rows and retrieve melee, force, and dr for all weapons
getSectionIDs("repeating_weapon", function(IDArray) {
var fieldNames = [];
_.each(IDArray, function(currentID, i) {
fieldNames.push("repeating_weapon_" + currentID + "_meleewpn");
fieldNames.push("repeating_weapon_" + currentID + "_forcewpn");
fieldNames.push("repeating_weapon_" + currentID + "_wpnbasedr");
fieldNames.push("repeating_weapon_" + currentID + "_wpndr");
});
// for each check if it is checked, if checked then set drstrmod
getAttrs(fieldNames, function(values) {
_.each(IDArray, function(currentID) {
newdr = parseInt((values["repeating_weapon_" + currentID + "_wpnbasedr"]));
ismelee = parseInt((values["repeating_weapon_" + currentID + "_meleewpn"]));
isforce = parseInt((values["repeating_weapon_" + currentID + "_forcewpn"]));
if(ismelee === 1) {
newdr = newdr + str;
}
if(isforce === 1) {
if(ispsyker === 1) {
newdr = newdr + Math.ceil(.5*will);
}
else {
newdr = Math.max(0, newdr - 2);
}
}
setAttrs({["repeating_weapon_" + currentID + "_wpndr"]: newdr});
});
});
});
});
// end of update weapon DR
} // END OF section 2.2 and lower update
// section 2.3 update
if(version < 2.3) {
// Conviction and Resist Corruption (base)
getAttrs(["willbase","willmod","convmod"], function(values) {
// calculate base
var total = ((values.willbase)*1)+((values.willmod)*1);
setAttrs({convbase:total});
// calculate adjusted base
var mod = (values.convmod)*1;
total = total + mod;
setAttrs({convadj:total});
setAttrs({resistbase:total});
});
// Resist Corruption (modified value)
getAttrs(["corrresistmod","corrresistbase"], function(values) {
// calculate modified value ... note the resist base is generated with conviction
var base = (values.corrresistbase)*1;
var mod = (values.corrresistmod)*1;
var total = base + mod;
setAttrs({corrresistadj:total});
});
// Passive Awareness
getAttrs(["awarebaserat","pawmod","awarelinkedattr","strbase","aglbase","tghbase","intbase","willbase","felbase","initbase","strmod","aglmod","tghmod","intmod","willmod","felmod","initmod"], function(values) {
// calculate base
var attr = (values.awarelinkedattr);
var awa = (values.awarebaserat)*1;
attr = String(attr);
switch(attr) {
case "(0)":awa = 0;
case "(@{STRAdj})": awa = awa + (values.strbase)*1+(values.strmod)*1;break;
case "(@{AGLAdj})": awa = awa + (values.aglbase)*1+(values.aglmod)*1;break;
case "(@{TGHAdj})": awa = awa + (values.tghbase)*1+(values.tghmod)*1;break;
case "(@{INTAdj})": awa = awa + (values.intbase)*1+(values.intmod)*1;break;
case "(@{WILLAdj})":awa = awa + (values.willbase)*1+(values.willmod)*1;break;
case "(@{FELAdj})": awa = awa + (values.felbase)*1+(values.felmod)*1;break;
case "(@{INITAdj})":awa = awa + (values.initbase)*1+(values.initmod)*1;break;
case "default": awa = 0;
};
// TO DO ADD SKill base to Total
var total = awa;
total = Math.ceil(.5*total);
setAttrs({pawbase:total});
// calculate adjusted base
var mod = (values.pawmod)*1;
total = total + mod;
setAttrs({pawadj:total});
});
// Resolve
getAttrs(["willbase","willmod","resvmod"], function(values) {
// calculate base
var will = (values.willbase)*1 + (values.willmod)*1;
var total = will - 1;
total = Math.max(1,total);
setAttrs({resvbase:total});
// calculate adjusted base
var mod = (values.resvmod)*1;
total = total + mod;
setAttrs({resvadj:total});
});
// Influence
getAttrs(["inflbase","inflmod"], function(values) {
// calculate base - note players will have to manually subtract 1... assume no subtraction
var total = ((values.inflbase)*1);
var mod = (values.inflmod)*1;
// calculate adjusted base
total = total + mod;
setAttrs({infladj:total});
});
// Wealth Adjusted Base
getAttrs(["wlthbase","wlthmod"], function(values) {
var total = ((values.wlthbase)*1);
var mod = (values.wlthmod)*1;
total = total + mod;
setAttrs({wlthadj:total});
});
// Defense
getAttrs(["initbase","initmod","defensemod"], function(values) {
// calculate base
var i = ((values.initbase)*1)+((values.initmod)*1);
var m = (values.defensemod)*1;
var total = i - 1 + m;
total = Math.max(1,total);
setAttrs({defense:total});
});
// Resilience
getAttrs(["tghbase","tghmod","armorvalue","resiliencemod"], function(values) {
// calculate base
var t = ((values.tghbase)*1)+((values.tghmod)*1);
var m = ((values.armorvalue)*1)+((values.resiliencemod)*1);
var total = t + 1 + m;
total = Math.max(1,total);
setAttrs({resilience:total});
});
// Determination
getAttrs(["tghbase","tghmod","soakmod"], function(values) {
// calculate base
var t = ((values.tghbase)*1)+((values.tghmod)*1);
var m = ((values.soakmod)*1);
var total = t + m;
total = Math.max(1,total);
setAttrs({soak:total});
});
} // END OF section 2.3 and lower update
// section 2.5 update
if(version < 2.5) {
// handle changes to vehicle and voidship wounds
getAttrs(["vehwoundscurrent","vehwounds","voidwounds","voidwoundscurrent"], function(values) {
var vwc = (values.vehwoundscurrent*1); // vehicle wounds current
var vw = (values.vehwounds*1); // vehicle wounds
var vswc = (values.voidwoundscurrent*1); // voidship wounds current
var vsw = (values.voidwounds*1); // voidship wounds
// set current wounds for vehicles and voidships = to old values
setAttrs({vehiclewounds:vwc});
setAttrs({voidshipwounds:vswc});
// set new max values
setAttrs({vehiclewounds_max:vw});
setAttrs({voidshipwounds_max:vsw});
});
// set heavy wounds for vehicles and voidships
getAttrs(["vehiclewounds_max","voidshipwounds_max"], function(values) {
var vwm = (values.vehiclewounds_max*1); // vehicle wounds max
var vswm = (values.voidshipwounds_max*1); // voidship wounds max
var wh = 0; // wounds half
// calculate and set heavily wounded for vehicles
if(vwm > 1) {
wh = Math.ceil(.5*vwm) + 1;
}
setAttrs({vehheavywound: wh});
// calculate and set heavily wounded for voidships
wh = 0; // reset for voidships
if(vswm > 1) {
wh = Math.ceil(.5*vswm) + 1;
}
setAttrs({voidheavywound: vswm});
});
} // END OF section 2.5 update
// section 2.7 update
if(version < 2.7) {
// Update Rank Title
getAttrs(["rank"], function(values) {
var crank = (values.rank)*1;
crank = Math.max(0,crank); // corruption does not go below 0; throws an error on the lookup if below 0
crank = Math.min(30,crank); // corruption does not go above 30; throws an error on the lookup if above 30
var label = lookup_rank_title(crank);
setAttrs({ranktitle:label});
});
} // END OF section 2.7 update
// section 3.0 update
if(version < 3.0) {
// Update Coviction (base of Corruption) and Corruption
getAttrs(["willbase","willmod","convmod"], function(values) {
// calculate base
var total = ((values.willbase)*1)+((values.willmod)*1);
setAttrs({convbase:total});
// calculate adjusted base
var mod = (values.convmod)*1;
total = total + mod;
setAttrs({convadj:total});
setAttrs({corrresistbase:total});
});
// Resist Corruption (modified value)
getAttrs(["corrresistmod","corrresistbase"], function(values) {
// calculate modified value ... note the resist base is generated with conviction
var base = (values.corrresistbase)*1;
var mod = (values.corrresistmod)*1;
var total = base + mod;
setAttrs({corrresistadj:total});
});
// Initialize Trauma Count (set to 0)
getAttrs(["tcount"], function(values) {
var startvalue = 0;
setAttrs({tcount:startvalue});
});
} // END OF section 3.0 update
// section 3.1 update
if(version < 3.1) {
getAttrs(["tcount","isdying"], function(values) {
var dying = (values.isdying)*1;
var tc = 1; // base TC is 1 for the single wrath die with all rolls - this is setup for the ISDYING feature
if(dying === 1){tc = ((values.tcount)*1) + 1;} // to be reworked with the ISDYING feature
// console.log("Dying: " + dying);
// console.log("TC: " + tc);
updateAttributePools(tc);
updateSkillPools(tc);
updateRepeatingSkillPools(tc);
updateWeaponPools(tc);
updatePsychicPools(tc);
});
// Errata Changes to Wounds
getAttrs(["wounds","tier","tghbase","tghmod","woundsmod","customtier"], function(values) {
var cw = (values.wounds*1);
// calculate wound max and shock max
var t = (values.tier)*1;
var tgh = ((values.tghbase)*1)+((values.tghmod)*1);
var wm = (values.woundsmod)*1;
var ct = (values.customtier)*1;
var totalw = tgh + (2*t) + wm;
cw = cw + t;
if(t === 6) {
totalw = tgh + (2*ct) + wm;
cw = cw + ct;
}
if(t < 6) {
setAttrs({customtier:0});
}
// set updated values
setAttrs({wounds_max:totalw});
setAttrs({wounds:cw});
});
} // END OF section 3.1 update
// NEW VERSION UPDATES GET INSERTED ABOVE THIS LINE
// After all updates have been applied, update sheet version = to current release
getAttrs(["release"], function(values) {
var release = (values.release)*1;
setAttrs({sheetversion: release});
// console.log("release: " + release);
});
}); // END OF GET VERSION NUMBER
}); // END OF UPDATE SECTION
//********************************************************************************************
//******************************** Vehicle Heavy Wounds **************************************
//********************************************************************************************
on("change:vehiclewounds_max", function() {
getAttrs(["vehiclewounds_max"], function(values) {
var wm = (values.vehiclewounds_max*1); // wounds max
var wh = 0; // wounds half
// calculate and set heavily wounded for vehicles
if(wm > 1) {
wh = Math.ceil(.5*wm) + 1;
}
setAttrs({vehheavywound: wh});
});
});
//********************************************************************************************
//******************************** Voidship Heavy Wounds *************************************
//********************************************************************************************
on("change:voidshipwounds_max", function() {
getAttrs(["voidshipwounds_max"], function(values) {
var wm = (values.voidshipwounds_max*1); // wounds max
var wh = 0; // wounds half
// calculate and set heavily wounded for vehicles
if(wm > 1) {
wh = Math.ceil(.5*wm) + 1;
}
setAttrs({voidheavywound: wh});
});
});
//********************************************************************************************
//******************************** Update Corruption Labels **********************************
//********************************************************************************************
on("change:corrbase", function() {
getAttrs(["corrbase"], function(values) {
var corruption = (values.corrbase)*1;
corruption = Math.max(0,corruption); // corruption does not go below 0; throws an error on the lookup if below 0
corruption = Math.min(30,corruption); // corruption does not go above 30; throws an error on the lookup if above 30
var label = lookup_corruption_lvl(corruption);
var dn = lookup_corruption_dn(corruption);
setAttrs({CorrLevel:label});
setAttrs({CorrResistDN:dn});
});
});
//********************************************************************************************
//******************************** Update Rank Labels **********************************
//********************************************************************************************
on("change:rank", function() {
getAttrs(["rank"], function(values) {
var crank = (values.rank)*1;
crank = Math.max(0,crank); // corruption does not go below 0; throws an error on the lookup if below 0
crank = Math.min(30,crank); // corruption does not go above 30; throws an error on the lookup if above 30
var label = lookup_rank_title(crank);
setAttrs({ranktitle:label});
});
});
//********************************************************************************************
//******************************** Update Custom when Tier <> 6 ******************************
//********************************************************************************************
on("change:tier", function() {
getAttrs(["tier"], function(values) {
var tier = (values.tier)*1;
if(tier < 6) {
setAttrs({customtier:0});
}
});
});
//********************************************************************************************
//******************************** Set public private rolls *********************************
//********************************************************************************************
on("change:privateorpublic", function() {
getAttrs(["private"], function(values) {
var isprivate = (values.private)*1;
var apiroll = "!wag";
var inlineroll = "&";
if(isprivate === 1) { //if the public-toggle is checked then the roll is private
apiroll = "!wwag";
inlineroll = "/w gm &";
}
setAttrs({sendapistring:apiroll});
setAttrs({sendinlinestring:inlineroll});
});
});
//********************************************************************************************
//******************************** AutoCalc Wounds and Shock *********************************
//********************************************************************************************
on("change:tier change:tghbase change:tghmod change:woundsmod change:customtier", function() {
getAttrs(["tier","tghbase","tghmod","woundsmod","customtier"], function(values) {
var t = (values.tier)*1;
var tgh = ((values.tghbase)*1)+((values.tghmod)*1);
var wm = (values.woundsmod)*1;
var ct = (values.customtier)*1;
var total = tgh + (t*2) + wm;
if(t === 6) {
total = tgh + (ct*2) + wm;
}
setAttrs({wounds_max:total});
setAttrs({wounds:total});
});
});
on("change:tier change:willbase change:willmod change:shockmod change:customtier", function() {
getAttrs(["tier","willbase","willmod","shockmod","customtier"], function(values) {
var t = (values.tier)*1;
var will = ((values.willbase)*1)+((values.willmod)*1);
var sm = (values.shockmod)*1;
var ct = (values.customtier)*1;
var total = will + t + sm;
if(t === 6) {
total = will + ct + sm;
}
setAttrs({shock_max:total});
setAttrs({shock:total});
});
});
//********************************************************************************************
//************************************ AutoCalc Traits ***************************************
//********************************************************************************************
// Conviction and Resist Corruption (base)
on("change:willbase change:willmod change:convmod", function() {
getAttrs(["willbase","willmod","convmod"], function(values) {
// calculate base
var total = ((values.willbase)*1)+((values.willmod)*1);
setAttrs({convbase:total});
// calculate adjusted base
var mod = (values.convmod)*1;
total = total + mod;
setAttrs({convadj:total});
setAttrs({corrresistbase:total});
});
});
// Resist Corruption
on("change:corrresistbase change:corrresistmod", function() {
getAttrs(["corrresistbase","corrresistmod","corrresistadj"], function(values) {
// calculate base
var total = ((values.corrresistbase)*1)+((values.corrresistmod)*1);
setAttrs({corrresistadj:total});
});
});
// Passive Awareness
on("change:strbase change:aglbase change:tghbase change:intbase change:willbase change:felbase change:initbase change:strmod change:aglmod change:tghmod change:intmod change:willmod change:felmod change:initmod change:awarebaserat change:pawmod change:awarelinkedattr", function() {
getAttrs(["awarebaserat","pawmod","awarelinkedattr","strbase","aglbase","tghbase","intbase","willbase","felbase","initbase","strmod","aglmod","tghmod","intmod","willmod","felmod","initmod"], function(values) {
// calculate base
var attr = (values.awarelinkedattr);
var awa = (values.awarebaserat)*1;
attr = String(attr);
switch(attr) {
case "(0)":awa = 0;
case "(@{STRAdj})": awa = awa + (values.strbase)*1+(values.strmod)*1;break;
case "(@{AGLAdj})": awa = awa + (values.aglbase)*1+(values.aglmod)*1;break;
case "(@{TGHAdj})": awa = awa + (values.tghbase)*1+(values.tghmod)*1;break;
case "(@{INTAdj})": awa = awa + (values.intbase)*1+(values.intmod)*1;break;
case "(@{WILLAdj})":awa = awa + (values.willbase)*1+(values.willmod)*1;break;
case "(@{FELAdj})": awa = awa + (values.felbase)*1+(values.felmod)*1;break;
case "(@{INITAdj})":awa = awa + (values.initbase)*1+(values.initmod)*1;break;
case "default": awa = 0;
};
var total = awa;
total = Math.ceil(.5*total);
setAttrs({pawbase:total});
// calculate adjusted base
var mod = (values.pawmod)*1;
total = total + mod;
setAttrs({pawadj:total});
});
});
// Resolve
on("change:willbase change:willmod change:resvmod", function() {
getAttrs(["willbase","willmod","resvmod"], function(values) {
// calculate base
var will = (values.willbase)*1 + (values.willmod)*1;
var total = will - 1;
total = Math.max(1,total);
setAttrs({resvbase:total});
// calculate adjusted base
var mod = (values.resvmod)*1;
total = total + mod;
setAttrs({resvadj:total});
});
});
// Influence
on("change:inflbase change:inflmod", function() {
getAttrs(["inflbase","inflmod"], function(values) {
// calculate base - note players will have to manually subtract 1... assume no subtraction
var total = ((values.inflbase)*1);
var mod = (values.inflmod)*1;
// calculate adjusted base
total = total + mod;
setAttrs({infladj:total});
});
});
// Wealth Adjusted Base
on("change:wlthbase change:wlthmod", function() {
getAttrs(["wlthbase","wlthmod"], function(values) {
var total = ((values.wlthbase)*1);
var mod = (values.wlthmod)*1;
total = total + mod;
setAttrs({wlthadj:total});
});
});
// Defense
on("change:initbase change:initmod change:defensemod", function() {
getAttrs(["initbase","initmod","defensemod"], function(values) {
// calculate base
var i = ((values.initbase)*1)+((values.initmod)*1);
var m = (values.defensemod)*1;
var total = i - 1 + m;
total = Math.max(1,total);
setAttrs({defense:total});
});
});
// Resilience
on("change:tghbase change:tghmod change:armorvalue change:resiliencemod", function() {
getAttrs(["tghbase","tghmod","armorvalue","resiliencemod"], function(values) {
// calculate base
var t = ((values.tghbase)*1)+((values.tghmod)*1);
var m = ((values.armorvalue)*1)+((values.resiliencemod)*1);
var total = t + 1 + m;
total = Math.max(1,total);
setAttrs({resilience:total});
});
});
// Soak
on("change:tghbase change:tghmod change:soakmod", function() {
getAttrs(["tghbase","tghmod","soakmod"], function(values) {
// calculate base
var t = ((values.tghbase)*1)+((values.tghmod)*1);
var m = ((values.soakmod)*1);
var total = t + m;
total = Math.max(1,total);
setAttrs({soak:total});
});
});
//********************************************************************************************
//******************************** Auto Calculate Weapon DR **********************************
//********************************************************************************************
// initiate on a change to: psyker keyword, willpower (base or mod), strength (base or mod), is a force weapon, is a melee weapon, weapon base DR
on("change:repeating_weapon:wpnbasedr change:repeating_weapon:meleewpn change:repeating_weapon:forcewpn", function() {
getAttrs(["repeating_weapon_meleewpn","repeating_weapon_forcewpn","repeating_weapon_wpnbasedr","strbase","strmod","willbase","willmod","keywordpsyker"], function(values) {
var ismelee = parseInt(values.repeating_weapon_meleewpn);
var isforce = parseInt(values.repeating_weapon_forcewpn);
var ispsyker = (values.keywordpsyker)*1;
var newdr = (values.repeating_weapon_wpnbasedr)*1;
var str = (values.strbase)*1 + (values.strmod)*1;
var will = (values.willbase)*1 + (values.willmod)*1;
if(ismelee === 1) {
newdr = newdr + str;
}
if(isforce === 1) {
if(ispsyker === 1) {
newdr = newdr + Math.ceil(.5*will);
}
else {
newdr = Math.max(0, newdr - 2);
}
}
setAttrs({repeating_weapon_wpndr: newdr});
});
});
//Update All Melee WPNS if Str, Willpower or Keyword Psyker changes
on("change:keywordpsyker change:willbase change:willmod change:strbase change:strmod", function() {
getAttrs(["strbase","strmod","willbase","willmod","keywordpsyker"], function(values) {
var ispsyker = (values.keywordpsyker)*1;
var str = (values.strbase)*1 + (values.strmod)*1;
var will = (values.willbase)*1 + (values.willmod)*1;
var newdr = 0;
var ismelee = 0;
var isforce = 0;
// get all repeating rows and retrieve melee, force, and dr for all weapons
getSectionIDs("repeating_weapon", function(IDArray) {
var fieldNames = [];
_.each(IDArray, function(currentID, i) {
fieldNames.push("repeating_weapon_" + currentID + "_meleewpn");
fieldNames.push("repeating_weapon_" + currentID + "_forcewpn");
fieldNames.push("repeating_weapon_" + currentID + "_wpnbasedr");
fieldNames.push("repeating_weapon_" + currentID + "_wpndr");
});
// for each check if it is checked, if checked then set drstrmod
getAttrs(fieldNames, function(values) {
_.each(IDArray, function(currentID) {
newdr = parseInt((values["repeating_weapon_" + currentID + "_wpnbasedr"]));
ismelee = parseInt((values["repeating_weapon_" + currentID + "_meleewpn"]));
isforce = parseInt((values["repeating_weapon_" + currentID + "_forcewpn"]));
if(ismelee === 1) {
newdr = newdr + str;
}
if(isforce === 1) {
if(ispsyker === 1) {
newdr = newdr + Math.ceil(.5*will);
}
else {
newdr = Math.max(0, newdr - 2);
}
}
setAttrs({["repeating_weapon_" + currentID + "_wpndr"]: newdr});
});
});
});
});
});
//********************************************************************************************
//******************************** SUM XP EARNED & SPENT *************************************
//********************************************************************************************
// EARNED through a serial
on("change:repeating_serial:xpearned remove:repeating_serial change:startingxp change:startingxpspent", function() {
getAttrs(["startingxp"], function(values) {
var xp = 0;
var total = 0;
var starting = Math.abs((values.startingxp)*1);
getSectionIDs("repeating_serial", function(IDArray) {
var fieldNames = [];
_.each(IDArray, function(currentID, i) {
fieldNames.push("repeating_serial_" + currentID + "_XPEARNED");
});
getAttrs(fieldNames, function(values) {
_.each(IDArray, function(currentID) {
xp = (values["repeating_serial_" + currentID + "_XPEARNED"]);
total += Math.abs(xp);
});
setAttrs({hiddenxpearned: total + starting});
});
});
});
});
// SPENT
on("change:repeating_advancements:xpspent remove:repeating_advancements change:startingxp change:startingxpspent", function() {
getAttrs(["startingxpspent"], function(values) {
var xp = 0;
var total = 0;
var startingspent = Math.abs((values.startingxpspent)*1);
getSectionIDs("repeating_advancements", function(IDArray) {
var fieldNames = [];
_.each(IDArray, function(currentID, i) {
fieldNames.push("repeating_advancements_" + currentID + "_XPSPENT");
});
getAttrs(fieldNames, function(values) {
_.each(IDArray, function(currentID) {
xp = ((values["repeating_advancements_" + currentID + "_XPSPENT"])*1);
total += Math.abs(xp);
});
setAttrs({hiddenxpspent: total + startingspent});
});
});
});
});
// TOTAL XP
on("change:totalxpearned change:totalxpspent change:startingxp change:startingxpspent", function() {
getAttrs(["hiddenxpearned","hiddenxpspent","startingxp","startingxpspent"], function(values) {
var xpearned = (values.hiddenxpearned*1);
var starting = Math.abs(parseInt(values.startingxp));
var xpspent = (values.hiddenxpspent*1);
var startingspent = Math.abs(parseInt(values.startingxpspent));
setAttrs({hiddenxpavailable: (xpearned) - (xpspent)});
});
});
//********************************************************************************************
//******************************** TRAUMATIC INJURIES ****************************************
//********************************************************************************************
// update tcount when a new trauma is added
on("change:repeating_trauma", function(eventInfo) {
getAttrs(["tcount"], function(values) {
var currentcount = 0;
getSectionIDs("repeating_trauma", function(idarray) {
currentcount = idarray.length;
setAttrs({tcount: currentcount});
});
});
});
// update tcount on removing a trauma
on("sheet:opened remove:repeating_trauma", function(eventInfo) {
getAttrs(["tcount"], function(values) {
var currentcount = 0;
getSectionIDs("repeating_trauma", function(idarray) {
currentcount = idarray.length;
setAttrs({tcount: currentcount});
});
});
});
//********************************************************************************************
//******************************** Set Wrath dice based on trauma changes ********************
//********************************************************************************************
// Note this does not include vehicle or voidship tests till they release those rules; assuming players will use the old rules.
//==================================================================
//UPDATE Base Dice Pools for Attributes, Skills, Weapons, and Psychic Powers
//==================================================================
// Due to asyncrhonous firing of js and the sequential updates needed - Attributes to skills to weapons/psychic powers - this will be a single sheet worker that will call functions. This also allows for updates on upgrade.
on("change:tcount change:isdying change:strbase change:aglbase change:tghbase change:intbase change:willbase change:felbase change:initbase change:strmod change:aglmod change:tghmod change:intmod change:willmod change:felmod change:initmod change:strbonusroll change:aglbonusroll change:tghbonusroll change:intbonusroll change:willbonusroll change:felbonusroll change:initbonusroll change:convadj change:convbonusroll change:corrresistadj change:corrresistbonusroll change:resvadj change:resvbonusroll change:infladj change:inflbonusroll change:athbaserat change:athattrrat change:athbonusroll change:awarebaserat change:awareattrrat change:awarebonusroll change:ballbaserat change:ballattrrat change:ballbonusroll change:cunnbaserat change:cunnattrrat change:cunnbonusroll change:decepbaserat change:decepattrrat change:decepbonusroll change:insightbaserat change:insightattrrat change:insightbonusroll change:intimbaserat change:intimattrrat change:intimbonusroll change:investbaserat change:investattrrat change:investbonusroll change:leadbaserat change:leadattrrat change:leadbonusroll change:medibaserat change:mediattrrat change:medibonusroll change:persbaserat change:persattrrat change:persbonusroll change:pilotbaserat change:pilotattrrat change:pilotbonusroll change:psychicbaserat change:psychicattrrat change:psychicbonusroll change:schobaserat change:schoattrrat change:schobonusroll change:stealthbaserat change:stealthattrrat change:stealthbonusroll change:survbaserat change:survattrrat change:survbonusroll change:techbaserat change:techattrrat change:techbonusroll change:wpnskillbaserat change:wpnskillattrrat change:wpnskillbonusroll change:repeating_skill:repskillbaserat change:repeating_skill:repskillattrrat change:repeating_skill:repskilllinkedattr change:repeating_skill:repskillbonusroll change:repeating_weapon:wpnattbd change:repeating_weapon:wpnattackskill change:balllinkedattr change:wpnskilllinkedattr change:repeating_psychicpower:psypowertestbasepmrate change:repeating_psychicpower:psypowertestlinkedattr change:repeating_psychicpower:psypowerbonusroll change:repeating_psychicpower:psypowerpush", function(eventInfo) {
getAttrs(["tcount","isdying"], function(values) {
var dying = (values.isdying)*1;
var tc = 1; // base TC is 1 for the single wrath die with all rolls - this is setup for the ISDYING feature
if(dying === 1){tc = ((values.tcount)*1) + 1;} // to be reworked with the ISDYING feature
//console.log("Dying: " + dying);
//console.log("TC: " + tc);
updateAttributePools(tc);
updateSkillPools(tc);
updateRepeatingSkillPools(tc);
updateWeaponPools(tc);
updatePsychicPools(tc);
});
});
//====================================================
// FUNCTIONS
//====================================================
// FUNCTION: Update Attribute Base and Wrath Dice Pools
updateAttributePools = function(tc) {
// Update Attributes as tcount change impacts all of their base and wrath dice totals
getAttrs(["strbase","aglbase","tghbase","intbase","willbase","felbase","initbase","strmod","aglmod","tghmod","intmod","willmod","felmod","initmod","strbonusroll","aglbonusroll","tghbonusroll","intbonusroll","willbonusroll","felbonusroll","initbonusroll","convadj","convbonusroll","corrresistadj","corrresistbonusroll","resvadj","resvbonusroll","infladj","inflbonusroll"], function(values) {
// console.log("***** Attribute Pool Updates *******");
var wrath = 0;
var base = 0;
var attr = "";
var bonus = 0;
// Update Strength
attr = "str";
base = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
bonus = (values[attr + "bonusroll"])*1;
setupdice(attr,tc,base,bonus,wrath);
// Update Agility
attr = "agl";
base = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
bonus = (values[attr + "bonusroll"])*1;
setupdice(attr,tc,base,bonus,wrath);
// Update Toughness
attr = "tgh";
base = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
bonus = (values[attr + "bonusroll"])*1;
setupdice(attr,tc,base,bonus,wrath);
// Update Intellect
attr = "int";
base = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
bonus = (values[attr + "bonusroll"])*1;
setupdice(attr,tc,base,bonus,wrath);
// Update WillPower
attr = "will";
base = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
bonus = (values[attr + "bonusroll"])*1;
setupdice(attr,tc,base,bonus,wrath);
// Update Fellowship
attr = "fel";
base = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
bonus = (values[attr + "bonusroll"])*1;
setupdice(attr,tc,base,bonus,wrath);
// Update Initiate
attr = "init";
base = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
bonus = (values[attr + "bonusroll"])*1;
setupdice(attr,tc,base,bonus,wrath);
// Update Conviction
attr = "conv";
base = (values[attr + "adj"])*1;
bonus = (values[attr + "bonusroll"])*1;
setupdice(attr,tc,base,bonus,wrath);
// Update Resist Corruption
attr = "corrresist";
base = (values[attr + "adj"])*1;
bonus = (values[attr + "bonusroll"])*1;
setupdice(attr,tc,base,bonus,wrath);
// Update Resolve
attr = "resv";
base = (values[attr + "adj"])*1;
bonus = (values[attr + "bonusroll"])*1;
setupdice(attr,tc,base,bonus,wrath);
// Update Influence
attr = "infl";
base = (values[attr + "adj"])*1;
bonus = (values[attr + "bonusroll"])*1;
setupdice(attr,tc,base,bonus,wrath);
});
}; // End of Updates to Attribute Dice Pools
// --------------------------------------------------------------------------------
// FUNCTION: Update Skill Base and Wrath Dice Pools
updateSkillPools = function(tc) {
// Update Attributes as tcount change impacts all of their base and wrath dice totals
getAttrs(["tcount","athbaserat","athbonusroll","athlinkedattr","awarebaserat","awarebonusroll","awarelinkedattr","ballbaserat","ballbonusroll","balllinkedattr","cunnbaserat","cunnbonusroll","cunnlinkedattr","decepbaserat","decepbonusroll","deceplinkedattr","insightbaserat","insightbonusroll","insightlinkedattr","intimbaserat","intimbonusroll","intimlinkedattr","investbaserat","investbonusroll","investlinkedattr","leadbaserat","leadbonusroll","leadlinkedattr","medibaserat","medibonusroll","medilinkedattr","persbaserat","persbonusroll","perslinkedattr","pilotbaserat","pilotbonusroll","pilotlinkedattr","psychicbaserat","psychicbonusroll","psychiclinkedattr","schobaserat","schobonusroll","scholinkedattr","stealthbaserat","stealthbonusroll","stealthlinkedattr","survbaserat","survbonusroll","survlinkedattr","techbaserat","techbonusroll","techlinkedattr","wpnskillbaserat","wpnskillbonusroll","wpnskilllinkedattr","strbase","aglbase","tghbase","intbase","willbase","felbase","initbase","strmod","aglmod","tghmod","intmod","willmod","felmod","initmod"], function(values) {
var skill = "";
var attr = "";
var attrbase = 0;
var base = 0;
var bonus = 0;
var wrath = 0;
// console.log("***** Skill Pool Updates *******");
// Note: dice total in Attributes = skill base + skill bonus + attribute total (without rollbonus)
// ATHLETICS
skill = "ath";
attr = convertRefAttr((values[skill + "linkedattr"]));
attrbase = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
base = (values[skill + "baserat"])*1 + (attrbase); // base roll for a skill is the skill rating + attribute
bonus = (values[skill + "bonusroll"])*1;
setupdice(skill,tc,base,bonus,wrath);
// Update Awareness
skill = "aware";
attr = convertRefAttr((values[skill + "linkedattr"]));
attrbase = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
base = (values[skill + "baserat"])*1 + (attrbase); // base roll for a skill is the skill rating + attribute
bonus = (values[skill + "bonusroll"])*1;
setupdice(skill,tc,base,bonus,wrath);
// Update Ballistic skill
skill = "ball";
attr = convertRefAttr((values[skill + "linkedattr"]));
attrbase = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
base = (values[skill + "baserat"])*1 + (attrbase); // base roll for a skill is the skill rating + attribute
bonus = (values[skill + "bonusroll"])*1;
setupdice(skill,tc,base,bonus,wrath);
// Update Cunning
skill = "cunn";
attr = convertRefAttr((values[skill + "linkedattr"]));
attrbase = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
base = (values[skill + "baserat"])*1 + (attrbase); // base roll for a skill is the skill rating + attribute
bonus = (values[skill + "bonusroll"])*1;
setupdice(skill,tc,base,bonus,wrath);
// Update Deception
skill = "decep";
attr = convertRefAttr((values[skill + "linkedattr"]));
attrbase = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
base = (values[skill + "baserat"])*1 + (attrbase); // base roll for a skill is the skill rating + attribute
bonus = (values[skill + "bonusroll"])*1;
setupdice(skill,tc,base,bonus,wrath);
// Update Insight
skill = "insight";
attr = convertRefAttr((values[skill + "linkedattr"]));
attrbase = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
base = (values[skill + "baserat"])*1 + (attrbase); // base roll for a skill is the skill rating + attribute
bonus = (values[skill + "bonusroll"])*1;
setupdice(skill,tc,base,bonus,wrath);
// Update Intimidation
skill = "intim";
attr = convertRefAttr((values[skill + "linkedattr"]));
attrbase = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
base = (values[skill + "baserat"])*1 + (attrbase); // base roll for a skill is the skill rating + attribute
bonus = (values[skill + "bonusroll"])*1;
setupdice(skill,tc,base,bonus,wrath);
// Update Investigate
skill = "invest";
attr = convertRefAttr((values[skill + "linkedattr"]));
attrbase = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
base = (values[skill + "baserat"])*1 + (attrbase); // base roll for a skill is the skill rating + attribute
bonus = (values[skill + "bonusroll"])*1;
setupdice(skill,tc,base,bonus,wrath);
// Update Leadership
skill = "lead";
attr = convertRefAttr((values[skill + "linkedattr"]));
attrbase = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
base = (values[skill + "baserat"])*1 + (attrbase); // base roll for a skill is the skill rating + attribute
bonus = (values[skill + "bonusroll"])*1;
setupdice(skill,tc,base,bonus,wrath);
// Update Medicae
skill = "medi";
attr = convertRefAttr((values[skill + "linkedattr"]));
attrbase = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
base = (values[skill + "baserat"])*1 + (attrbase); // base roll for a skill is the skill rating + attribute
bonus = (values[skill + "bonusroll"])*1;
setupdice(skill,tc,base,bonus,wrath);
// Update Persuasion
skill = "pers";
attr = convertRefAttr((values[skill + "linkedattr"]));
attrbase = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
base = (values[skill + "baserat"])*1 + (attrbase); // base roll for a skill is the skill rating + attribute
bonus = (values[skill + "bonusroll"])*1;
setupdice(skill,tc,base,bonus,wrath);
// Update Pilot
skill = "pilot";
attr = convertRefAttr((values[skill + "linkedattr"]));
attrbase = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
base = (values[skill + "baserat"])*1 + (attrbase); // base roll for a skill is the skill rating + attribute
bonus = (values[skill + "bonusroll"])*1;
setupdice(skill,tc,base,bonus,wrath);
// Update Psychic Mastery
skill = "psychic";
attr = convertRefAttr((values[skill + "linkedattr"]));
attrbase = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
base = (values[skill + "baserat"])*1 + (attrbase); // base roll for a skill is the skill rating + attribute
bonus = (values[skill + "bonusroll"])*1;
setupdice(skill,tc,base,bonus,wrath);
// Update Scholar
skill = "scho";
attr = convertRefAttr((values[skill + "linkedattr"]));
attrbase = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
base = (values[skill + "baserat"])*1 + (attrbase); // base roll for a skill is the skill rating + attribute
bonus = (values[skill + "bonusroll"])*1;
setupdice(skill,tc,base,bonus,wrath);
// Update Stealth
skill = "stealth";
attr = convertRefAttr((values[skill + "linkedattr"]));
attrbase = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
base = (values[skill + "baserat"])*1 + (attrbase); // base roll for a skill is the skill rating + attribute
bonus = (values[skill + "bonusroll"])*1;
setupdice(skill,tc,base,bonus,wrath);
// Update Survival
skill = "surv";
attr = convertRefAttr((values[skill + "linkedattr"]));
attrbase = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
base = (values[skill + "baserat"])*1 + (attrbase); // base roll for a skill is the skill rating + attribute
bonus = (values[skill + "bonusroll"])*1;
setupdice(skill,tc,base,bonus,wrath);
// Update Tech
skill = "tech";
attr = convertRefAttr((values[skill + "linkedattr"]));
attrbase = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
base = (values[skill + "baserat"])*1 + (attrbase); // base roll for a skill is the skill rating + attribute
bonus = (values[skill + "bonusroll"])*1;
setupdice(skill,tc,base,bonus,wrath);
// Update Weapon Skill
skill = "wpnskill";
attr = convertRefAttr((values[skill + "linkedattr"]));
attrbase = (values[attr + "base"])*1 + (values[attr + "mod"])*1;
base = (values[skill + "baserat"])*1 + (attrbase); // base roll for a skill is the skill rating + attribute
bonus = (values[skill + "bonusroll"])*1;
setupdice(skill,tc,base,bonus,wrath);
});
}; // End of Updates to Skill Dice Pools
// --------------------------------------------------------------------------------
// FUNCTION: Update Repeating Skill Base and Wrath Dice Pools
updateRepeatingSkillPools = function(tc) {
// Update Attributes as tcount change impacts all of their base and wrath dice totals
getAttrs(["strbase","aglbase","tghbase","intbase","willbase","felbase","initbase","strmod","aglmod","tghmod","intmod","willmod","felmod","initmod"], function(v) {
// console.log("***** Repeating Skill Pool Updates *******");
// get all repeating custom skills
getSectionIDs("repeating_skill", function(IDArray) {
var fieldNames = [];
_.each(IDArray, function(currentID, i) {
fieldNames.push("repeating_skill_" + currentID + "_repskilllinkedattr");
fieldNames.push("repeating_skill_" + currentID + "_repskillbaserat");
fieldNames.push("repeating_skill_" + currentID + "_repskillbonusroll");
fieldNames.push("repeating_skill_" + currentID + "_repskillnewbase");
fieldNames.push("repeating_skill_" + currentID + "_repskillwrath");
});
// loop through all and recalculate newbase and wrath dice based on trauma
getAttrs(fieldNames, function(values) {
_.each(IDArray, function(currentID) {
var base = 0;
var bonus = 0;
var attrbase = 0;
var newbase = 0;
var wrath = 0;
var attr = (values["repeating_skill_" + currentID + "_repskilllinkedattr"]);
//console.log("attr: " + attr);
switch(attr) {
case "(0)": attrbase = 0; //None
case "(@{STRAdj})": attrbase = (v.strbase)*1+(v.strmod)*1;break;
case "(@{AGLAdj})": attrbase = (v.aglbase)*1+(v.aglmod)*1;break;
case "(@{TGHAdj})": attrbase = (v.tghbase)*1+(v.tghmod)*1;break;
case "(@{INTAdj})": attrbase = (v.intbase)*1+(v.intmod)*1;break;
case "(@{WILLAdj})":attrbase = (v.willbase)*1+(v.willmod)*1;break;
case "(@{FELAdj})": attrbase = (v.felbase)*1+(v.felmod)*1;break;
case "(@{INITAdj})":attrbase = (v.initbase)*1+(v.initmod)*1;break;
case "default": attrbase = 0;
};
//console.log("attrbase: " + attrbase);
base = parseInt(values["repeating_skill_" + currentID + "_repskillbaserat"]) + (attrbase);
bonus = parseInt(values["repeating_skill_" + currentID + "_repskillbonusroll"]);
//console.log("base: " + base);
//console.log("bonus: " + bonus);
if(tc > (base + bonus)) {wrath = (base + bonus);} else {wrath = tc;}
newbase = ((base + bonus) - wrath);
//console.log("wrath: " + wrath);
//console.log("newbase: " + newbase);
setAttrs({["repeating_skill_" + currentID + "_repskillnewbase"]: newbase});
setAttrs({["repeating_skill_" + currentID + "_repskillwrath"]: wrath});
});
});
}); // End of get repeating skills
}); // End of getattr (tcount + attributes)
}; // End of Repeating Skills Dice Pool updates
// --------------------------------------------------------------------------------
// FUNCTION: Update Weapon Base and Wrath Dice Pools
updateWeaponPools = function(tc) {
// Update Attributes as tcount change impacts all of their base and wrath dice totals
getAttrs(["tcount","strbase","aglbase","tghbase","intbase","willbase","felbase","initbase","strmod","aglmod","tghmod","intmod","willmod","felmod","initmod","ballbaserat","wpnskillbaserat","balllinkedattr","wpnskilllinkedattr"], function(v) {
// console.log("***** Weapon Pool Updates *******");
var bsla = ""; // Ballistic Skill Linked Attribute
var wsla = ""; // Weapon Skill Linked Attribute
var bsattrtotal = 0; // Ballistic Skill Attribute Base + Mod
var wsattrtotal = 0; // Weapon Skill Attribute Base + Mod
bsla = convertRefAttr((v.balllinkedattr)); // convert from the string in the dropdown
bsattrtotal = (v[bsla + "base"])*1 + (v[bsla + "mod"])*1; // set to Ballistic Skill Attribute Base + Mod
wsla = convertRefAttr((v.wpnskilllinkedattr)); // convert from the string in the dropdown
wsattrtotal = (v[wsla + "base"])*1 + (v[wsla + "mod"])*1; // set to Weapon Skill Attribute Base + Mod
// console.log("bsla: " + bsla);
// console.log("bsattrtotal: " + bsattrtotal);
// console.log("wsla: " + bsla);
// console.log("wsattrtotal: " + wsattrtotal);
// get all repeating weapons
getSectionIDs("repeating_weapon", function(IDArray) {
var fieldNames = [];
_.each(IDArray, function(currentID, i) {
fieldNames.push("repeating_weapon_" + currentID + "_wpnattackskill"); // linked attribute with skill
fieldNames.push("repeating_weapon_" + currentID + "_wpnattbd");
fieldNames.push("repeating_weapon_" + currentID + "_repweaponnewbase");
fieldNames.push("repeating_weapon_" + currentID + "_repweaponwrath");
});
// loop through all and recalculate newbase and wrath dice for each weapon based on trauma
getAttrs(fieldNames, function(values) {
_.each(IDArray, function(currentID) {
var base = 0;
var bonus = 0;
var newbase = 0;
var wrath = 0;
var attr = "";
attr = (values["repeating_weapon_" + currentID + "_wpnattackskill"])
switch(attr) {
case "(0)": base = 0; //None
case "(@{BallTotal})": base = (bsattrtotal)+(v.ballbaserat)*1;break; //BS + AG
case "(@{WpnSkillTotal})": base = (wsattrtotal)+(v.wpnskillbaserat)*1;break; //WS + INIT
case "(@{WpnSkilAgilTotal})": base = (v.aglbase)*1+(v.aglmod)*1+(v.wpnskillbaserat)*1;break; //WS + AG
case "default": base = 0;
};
// console.log("base: " + base);
// console.log("bonus: " + bonus);
bonus = parseInt(values["repeating_weapon_" + currentID + "_wpnattbd"]);
// if trauma plus 1 wrath die is > base plus bonus then set wrath = base + bonus as you cannot have more dice than the base pool
if(tc > (base + bonus)) {wrath = (base + bonus);} else {wrath = tc;}
//console.log("wrath: " + wrath);
newbase = ((base + bonus) - wrath); // Testing fix - removed Math.max(0,base + bonus - wrath)
// console.log("new base: " + newbase);
// console.log("wrath: " + wrath);
setAttrs({["repeating_weapon_" + currentID + "_repweaponnewbase"]: newbase});
setAttrs({["repeating_weapon_" + currentID + "_repweaponwrath"]: wrath});
});
});
}); // End of get weapon skills
}); // End of getattr (tcount + attributes)
}; // End of Repeating Weapons Adjustment of Wrath
// --------------------------------------------------------------------------------
// FUNCTION: Update Psychic Power Base and Wrath Dice Pools
updatePsychicPools = function(tc) {
// Update psychic powers as tcount change impacts all of their base and wrath dice totals
getAttrs(["tcount","strbase","aglbase","tghbase","intbase","willbase","felbase","initbase","strmod","aglmod","tghmod","intmod","willmod","felmod","initmod","psychicbaserat"], function(v) {
// console.log("***** Psychic Power Pool Updates *******");
// get all repeating custom skills
getSectionIDs("repeating_psychicpower", function(IDArray) {
var fieldNames = [];
_.each(IDArray, function(currentID, i) {
fieldNames.push("repeating_psychicpower_" + currentID + "_psypowertestlinkedattr");
fieldNames.push("repeating_psychicpower_" + currentID + "_psypowerbonusroll");
fieldNames.push("repeating_psychicpower_" + currentID + "_reppsypowernewbase");
fieldNames.push("repeating_psychicpower_" + currentID + "_reppsypowerwrath");
fieldNames.push("repeating_psychicpower_" + currentID + "_psypowerpush");
});
// loop through all and recalculate newbase and wrath dice based on trauma
getAttrs(fieldNames, function(values) {
_.each(IDArray, function(currentID) {
var base = 0;
var bonus = 0;
var newbase = 0;
var wrath = 0;
var attr = (values["repeating_psychicpower_" + currentID + "_psypowertestlinkedattr"]);
switch(attr) {
case "(0)": base = 0; //None
case "(@{STRAdj})": base = (v.strbase)*1+(v.strmod)*1+((v.psychicbaserat)*1);break;
case "(@{AGLAdj})": base = (v.aglbase)*1+(v.aglmod)*1+((v.psychicbaserat)*1);break;
case "(@{TGHAdj})": base = (v.tghbase)*1+(v.tghmod)*1+((v.psychicbaserat)*1);break;
case "(@{INTAdj})": base = (v.intbase)*1+(v.intmod)*1+((v.psychicbaserat)*1);break;
case "(@{WILLAdj})":base = (v.willbase)*1+(v.willmod)*1+((v.psychicbaserat)*1);break;
case "(@{FELAdj})": base = (v.felbase)*1+(v.felmod)*1+((v.psychicbaserat)*1);break;
case "(@{INITAdj})":base = (v.initbase)*1+(v.initmod)*1+((v.psychicbaserat)*1);break;
case "default": base = 0;
};
// console.log("base: " + base);
bonus = parseInt(values["repeating_psychicpower_" + currentID + "_psypowerbonusroll"]);
if(tc > (base + bonus)) {wrath = (base + bonus);} else {wrath = tc;}
newbase = Math.max(0,base + bonus - wrath);
// add wrath for pushing - this adds wrath dice to the total vs just replacing existing standard dice
wrath = wrath + parseInt(values["repeating_psychicpower_" + currentID + "_psypowerpush"]) ;
setAttrs({["repeating_psychicpower_" + currentID + "_reppsypowernewbase"]: newbase});
setAttrs({["repeating_psychicpower_" + currentID + "_reppsypowerwrath"]: wrath});
});
});
}); // End of get repeating psychic powers
}); // End of getattr (tcount + attributes)
}; // End of Repeating Psychic Powers Dice Rolling setup
// --------------------------------------------------------------------------------
// FUNCTION: set dice fields for standard (base) and wrath dice
setupdice = function(item,tc,base,bonus,wrath) {
var newbase = 0;
if(tc > (base + bonus)) {wrath = (base + bonus);} else {wrath = tc;}
newbase = ((base + bonus) - wrath);
// console.log("***** run setup dice for " + item);
// console.log("item: " + item);
// console.log("newbase: " + newbase);
// console.log("wrath: " + wrath);
setAttrs({[item + "newbase"]: newbase});
setAttrs({[item + "wrath"]: wrath});
};
// --------------------------------------------------------------------------------
// FUNCTION: convert the linked attribute into a simple string for cocatenation
var convertRefAttr = function(attrstring) {
// console.log("Convert Attr string"); // USED FOR TESTING:
// console.log("Convert Attr string: " + attrstring); // USED FOR TESTING:
switch(attrstring) {
case "(@{STRAdj})": return "str";break;
case "(@{AGLAdj})": return "agl";break;
case "(@{TGHAdj})": return "tgh";break;
case "(@{INTAdj})": return "int";break;
case "(@{WILLAdj})": return "will";break;
case "(@{FELAdj})": return "fel";break;
case "(@{INITAdj})": return "init";break;
case "default": return "";
};
};
//********************************************************************************************
//******************************** Lookup Tables *********************************************
//********************************************************************************************
// FUNCTION: lookup table for corruption dn
var lookup_corruption_lvl = function(corruption) {
switch(corruption) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5: return "0 pure";
break;
case 6:
case 7:
case 8:
case 9:
case 10: return "1 tarnished";
break;
case 11:
case 12:
case 13:
case 14:
case 15: return "2 contaminated";
break;
case 16:
case 17:
case 18:
case 19:
case 20: return "3 tainted";
break;
case 21:
case 22:
case 23:
case 24:
case 25: return "4 defiled";
break;
case 26: return "5 chaos spawn";
break;
case 27: return "5 chaos spawn";
break;
case 28: return "5 chaos spawn";
break;
case 29: return "5 chaos spawn";
break;
case 30: return "5 chaos spawn";
break;
case "default": return "5 chaos spawn";
};
};
// FUNCTION: lookup table for corruption label
var lookup_corruption_dn = function(corruption) {
switch(corruption) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5: return 3;
break;
case 6:
case 7:
case 8:
case 9:
case 10: return 4;
break;
case 11:
case 12:
case 13:
case 14:
case 15: return 5;
break;
case 16:
case 17:
case 18:
case 19:
case 20: return 6;
break;
case 21:
case 22:
case 23:
case 24:
case 25: return 7;
break;
case 26: return "--";
break;
case 27: return "--";
break;
case 28: return "--";
break;
case 29: return "--";
break;
case 30: return "--";
break;
case "default": return "--";
};
};
// FUNCTION: lookup table for rank label
var lookup_rank_title = function(crank) { // CRANK = Character Rank
switch(crank) {
case 1: return "Initiate";
break;
case 2: return "Veteran";
break;
case 3: return "Champion";
break;
case "default": return "--";
};
};
</script>