Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 210.65 KB | None | 0 0
  1.  
  2.    
  3.    
  4.    
  5.         <!-- Logo Header -->
  6.             <div class="sheet-col" style="text-align:center; width:100%">
  7.                 <img src="https://i.imgur.com/jgVR5oH.png" style="max-height: 100px;" />
  8.             </div>
  9.         <br>
  10.       <input type='radio' name="attr_main_show" class="sheet-tab sheet-tabPC"  value="1" checked/>
  11. <label class="sheet-tab" >PC</label>
  12.       <input type='radio' name="attr_main_show" class="sheet-tab sheet-tabSquad"  value="2"/>
  13. <label class="sheet-tab" >Squad</label>
  14.       <input type='radio' name="attr_main_show" class="sheet-tab sheet-tabGM"  value="3" />
  15. <label class="sheet-tab" >GM</label>
  16.         <br>
  17.         <br>
  18.    
  19. <div class="sheet-tab-content sheet-tabPC">
  20.       <input type='radio' name="attr_npc-show" class="sheet-tab sheet-tabMain"  value="1" checked/>
  21. <label class="sheet-tab" >Character</label>
  22. <input type='radio' name="attr_npc-show" class="sheet-tab sheet-tabAbilities"  value="2"  />
  23. <label class="sheet-tab" >Abilities</label>
  24.       <input type='radio' name="attr_npc-show" class="sheet-tab sheet-tabGear"  value="3" />
  25. <label class="sheet-tab" >Gear</label>
  26.       <input type='radio' name="attr_npc-show" class="sheet-tab sheet-tabInformation"  value="4" />
  27. <label class="sheet-tab" >Information</label>
  28. <input type='radio' name="attr_npc-show" class="sheet-tab sheet-tabExperience"  value="5"  />
  29. <label class="sheet-tab" >Experience</label>
  30.        
  31.  
  32.         <br>
  33. <div class="sheet-tab-content sheet-tabMain">
  34.         <h1>Character</h1>
  35.     <div class="sheet-wrapper">
  36.         <!-- Base Character Information -->
  37.         <div class="sheet-1colrow">
  38.             <div class="sheet-col">
  39.  
  40.                 <div class="sheet-row">
  41.                     <div class="sheet-item" style="width:13.2%"><label style="text-align:right">Character Name</label></div>
  42.                     <div class="sheet-item sheet-large"><input type="text" name="attr_character_name" /></div>
  43.                     <div class="sheet-item sheet-tiny"><label style="text-align:right">Player Name</label></div>
  44.                     <div class="sheet-item sheet-large"><input type="text" name="attr_playername" /></div>
  45.                 </div>
  46.                 <div class="sheet-row">
  47.                     <div class="sheet-item sheet-little"><label style="text-align:right">Chapter</label></div>
  48.                     <div class="sheet-item sheet-small"><input type="text" name="attr_chapter" /></div>
  49.                     <div class="sheet-item sheet-small"><label style="text-align:right">Specializations</label></div>
  50.                     <div class="sheet-item sheet-small"><input type="text" name="attr_specializations" /></div>
  51.                     <div class="sheet-item sheet-little"><label style="text-align:right">Rank</label></div>
  52.                     <div class="sheet-item sheet-puny"><input type="text" name="attr_rank" style="text-align:center" /></div>
  53.                 </div>
  54.                 <div class="sheet-row">
  55.                     <div class="sheet-item sheet-small"><label style="text-align:right">Chapter Demeanour</label></div>
  56.                     <div class="sheet-item sheet-small"><input type="text" name="attr_chapterDemeanour" /></div>
  57.                     <div class="sheet-item sheet-small"><label style="text-align:right">Personal Demeanour</label></div>
  58.                     <div class="sheet-item sheet-small"><input type="text" name="attr_personalDemeanour" /> </div>
  59.                 </div>
  60.                 <div class="sheet-row">
  61.                     <div class="sheet-item sheet-puny"><label style="text-align:right">Gender</label></div>
  62.                     <div class="sheet-item sheet-puny"><input type="text" name="attr_gender" /></div>
  63.                     <div class="sheet-item sheet-puny"><label style="text-align:right">Build</label></div>
  64.                     <div class="sheet-item sheet-puny"><input type="text" name="attr_build" /></div>
  65.                     <div class="sheet-item sheet-puny"><label style="text-align:right">Height</label></div>
  66.                     <div class="sheet-item sheet-puny"><input type="text" name="attr_height" /></div>
  67.                     <div class="sheet-item sheet-puny"><label style="text-align:right">Weight</label></div>
  68.                     <div class="sheet-item sheet-puny"><input type="text" name="attr_weight" /></div>
  69.                 </div>
  70.                 <div class="sheet-row">
  71.                     <div class="sheet-row">
  72.                         <div class="sheet-item sheet-little"><label style="text-align:right">Skin Colour</label></div>
  73.                         <div class="sheet-item sheet-puny"><input type="text" name="attr_skincolour" /></div>
  74.                         <div class="sheet-item sheet-little"><label style="text-align:right">Hair Colour</label></div>
  75.                         <div class="sheet-item sheet-puny"><input type="text" name="attr_haircolour" /></div>
  76.                        
  77.                         <div class="sheet-item sheet-little"><label style="text-align:right">Eye Colour</label></div>
  78.                         <div class="sheet-item sheet-puny"><input type="text" name="attr_eyecolour" /></div>
  79.                         <div class="sheet-item sheet-puny"><label style="text-align:right">Age</label></div>
  80.                         <div class="sheet-item sheet-puny"><input type="text" name="attr_age" /></div>
  81.                     </div>
  82.                 </div>
  83.             </div>
  84.         </div>
  85.         <hr>
  86.                 <h3>Characteristics</h3>
  87.         <table style="width:100%">
  88.             <tr>
  89.                 <td style="width:5%">
  90.                 </td>
  91.                 <td COLSPAN="4" style="width:10%"> <button type="roll" name="roll_ws" value="!warroll [[@{wsFinal}]] ?{Modfier|0} @{PlayerQueryRoll} Weapon Skill Test"><label style="text-align:center; font-size:12px">Weapon Skill</label></button>
  92.                 </td>
  93.                 <td COLSPAN="4" style="width:10%"><button type="roll" name="roll_bs" value="!warroll [[@{bsFinal}]] ?{Modfier|0} @{PlayerQueryRoll} Ballistic Skill Test"><label style="text-align:center; font-size:12px">Ballistic Skill</label></button>
  94.                 </td>
  95.                 <td COLSPAN="4" style="width:10%"><button type="roll" name="roll_strength" value="!warroll [[@{strengthFinal}]] ?{Modfier|0} @{PlayerQueryRoll} Strength Test"><label style="text-align:center; font-size:12px">Strength</label></button>
  96.                 </td>
  97.                 <td COLSPAN="4" style="width:10%"><button type="roll" name="roll_toughness" value="!warroll [[@{toughnessFinal}]] ?{Modfier|0} @{PlayerQueryRoll} Toughness Test"><label style="text-align:center; font-size:12px">Toughness</label></button>
  98.                 </td>
  99.                 <td COLSPAN="4" style="width:10%"><button type="roll" name="roll_ag" value="!warroll [[@{agFinal}]] ?{Modfier|0} @{PlayerQueryRoll} Agility Test"><label style="text-align:center; font-size:12px">Agility</label></button>
  100.                 </td>
  101.                 <td COLSPAN="4" style="width:10%"><button type="roll" name="roll_int" value="!warroll [[@{intFinal}]] ?{Modfier|0} @{PlayerQueryRoll} Intelligence Test"><label style="text-align:center; font-size:12px">Intelligence</label></button>
  102.                 </td>
  103.                 <td COLSPAN="4" style="width:10%"><button type="roll" name="roll_Per" value="!warroll [[@{perFinal}]] ?{Modfier|0} @{PlayerQueryRoll} Perception Test"><label style="text-align:center; font-size:12px">Perception</label></button>
  104.                 </td>
  105.                 <td COLSPAN="4" style="width:10%"><button type="roll" name="roll_Wp" value="!warroll [[@{wpFinal}]] ?{Modfier|0} @{PlayerQueryRoll} Willpower Test"><label style="text-align:center; font-size:12px">Willpower</label></button>
  106.                 </td>
  107.                 <td COLSPAN="4" style="width:10%"><button type="roll" name="roll_Fel" value="!warroll [[@{felFinal}]] ?{Modfier|0} @{PlayerQueryRoll} Fellowship Test"><label style="text-align:center; font-size:12px">Fellowship</label></button>
  108.                 </td>
  109.                 <td  style="width:5%">
  110.                 </td>
  111.             </tr>
  112.             <tr>
  113.                 <td style="width:5%">
  114.                 </td>
  115.                 <td COLSPAN="4"><label style="text-align:center">(WS)</label>
  116.                 </td>
  117.                 <td COLSPAN="4"><label style="text-align:center">(BS)</label>
  118.                 </td>
  119.                 <td COLSPAN="4"><label style="text-align:center">(S)</label>
  120.                 </td>
  121.                 <td COLSPAN="4"><label style="text-align:center">(T)</label>
  122.                 </td>
  123.                 <td COLSPAN="4"><label style="text-align:center">(Ag)</label>
  124.                 </td>
  125.                 <td COLSPAN="4"><label style="text-align:center">(Int)</label>
  126.                 </td>
  127.                 <td COLSPAN="4"><label style="text-align:center">(Per)</label>
  128.                 </td>
  129.                 <td COLSPAN="4"><label style="text-align:center">(WP)</label>
  130.                 </td>
  131.                 <td COLSPAN="4"><label style="text-align:center">(Fel)</label>
  132.                 </td>
  133.                 <td style="width:5%">
  134.                 </td>
  135.             </tr>
  136.             <tr>
  137.                 <td style="width:5%; vertical-align:middle"><label style="text-align:right; font-size:10px; vertical-align: middle">Starting</label>
  138.                 </td>
  139.                 <td COLSPAN="4"><input type="number" class="sheet-charMainInput" name="attr_ws" value="0" />
  140.                 </td>
  141.                 <td COLSPAN="4"><input type="number" class="sheet-charMainInput" name="attr_bs" value="0" />
  142.                 </td>
  143.                 <td COLSPAN="4"><input type="number" class="sheet-charMainInput" name="attr_strength" value="0" />
  144.                 </td>
  145.                 <td COLSPAN="4"><input type="number" class="sheet-charMainInput" name="attr_toughness" value="0" />
  146.                 </td>
  147.                 <td COLSPAN="4"><input type="number" class="sheet-charMainInput" name="attr_ag" value="0" />
  148.                 </td>
  149.                 <td COLSPAN="4"><input type="number" class="sheet-charMainInput" name="attr_int" value="0" />
  150.                 </td>
  151.                 <td COLSPAN="4"><input type="number" class="sheet-charMainInput" name="attr_per" value="0" />
  152.                 </td>
  153.                 <td COLSPAN="4"><input type="number" class="sheet-charMainInput" name="attr_wp" value="0" />
  154.                 </td>
  155.                 <td COLSPAN="4"><input type="number" class="sheet-charMainInput" name="attr_fel" value="0" />
  156.                 </td>
  157.                 <td style="width:5%">
  158.                 </td>
  159.             </tr>
  160.             <tr>
  161.                 <td style="width:5%; vertical-align:middle"><label style="text-align:right; font-size:10px; vertical-align: middle">Advances</label>
  162.                 </td>
  163.                 <td COLSPAN="4">
  164.             <select class="sheet-charAdvance" name="attr_wsAdvance" >
  165.                 <option value="0" selected>&#8212;</option>
  166.                 <option value="5">+5%</option>
  167.                 <option value="10">+10%</option>
  168.                 <option value="15">+15%</option>
  169.                 <option value="20">+20%</option>
  170.             </select></td>
  171.                 <td COLSPAN="4">
  172.             <select class="sheet-charAdvance" name="attr_bsAdvance" >
  173.                 <option value="0" selected>&#8212;</option>
  174.                 <option value="5">+5%</option>
  175.                 <option value="10">+10%</option>
  176.                 <option value="15">+15%</option>
  177.                 <option value="20">+20%</option>
  178.             </select></td>
  179.                 <td COLSPAN="4">
  180.             <select class="sheet-charAdvance" name="attr_strengthAdvance" >
  181.                 <option value="0" selected>&#8212;</option>
  182.                 <option value="5">+5%</option>
  183.                 <option value="10">+10%</option>
  184.                 <option value="15">+15%</option>
  185.                 <option value="20">+20%</option>
  186.             </select></td>
  187.                 <td COLSPAN="4">
  188.             <select class="sheet-charAdvance" name="attr_toughnessAdvance" >
  189.                 <option value="0" selected>&#8212;</option>
  190.                 <option value="5">+5%</option>
  191.                 <option value="10">+10%</option>
  192.                 <option value="15">+15%</option>
  193.                 <option value="20">+20%</option>
  194.             </select></td>
  195.                 <td COLSPAN="4">
  196.             <select class="sheet-charAdvance" name="attr_agAdvance" >
  197.                 <option value="0" selected>&#8212;</option>
  198.                 <option value="5">+5%</option>
  199.                 <option value="10">+10%</option>
  200.                 <option value="15">+15%</option>
  201.                 <option value="20">+20%</option>
  202.             </select></td>
  203.                 <td COLSPAN="4">
  204.             <select class="sheet-charAdvance" name="attr_intAdvance" >
  205.                 <option value="0" selected>&#8212;</option>
  206.                 <option value="5">+5%</option>
  207.                 <option value="10">+10%</option>
  208.                 <option value="15">+15%</option>
  209.                 <option value="20">+20%</option>
  210.             </select></td>
  211.                 <td COLSPAN="4">
  212.             <select class="sheet-charAdvance" name="attr_perAdvance" >
  213.                 <option value="0" selected>&#8212;</option>
  214.                 <option value="5">+5%</option>
  215.                 <option value="10">+10%</option>
  216.                 <option value="15">+15%</option>
  217.                 <option value="20">+20%</option>
  218.             </select></td>
  219.                 <td COLSPAN="4">
  220.             <select class="sheet-charAdvance" name="attr_wpAdvance" >
  221.                 <option value="0" selected>&#8212;</option>
  222.                 <option value="5">+5%</option>
  223.                 <option value="10">+10%</option>
  224.                 <option value="15">+15%</option>
  225.                 <option value="20">+20%</option>
  226.             </select></td>
  227.                 <td COLSPAN="4">
  228.             <select class="sheet-charAdvance" name="attr_felAdvance" >
  229.                 <option value="0" selected>&#8212;</option>
  230.                 <option value="5">+5%</option>
  231.                 <option value="10">+10%</option>
  232.                 <option value="15">+15%</option>
  233.                 <option value="20">+20%</option>
  234.             </select></td>
  235.                 <td style="width:5%">
  236.                 </td>
  237.             </tr>
  238.             <tr>
  239.                 <td style="width:5%; vertical-align:middle"><label style="text-align:right; font-size:10px; vertical-align: middle">Modifier</label>
  240.                 </td>
  241.                 <td COLSPAN="4"><input type="number" class="sheet-charModInput" name="attr_wsMod" value="0" />
  242.                 </td>
  243.                 <td COLSPAN="4"><input type="number" class="sheet-charModInput" name="attr_bsMod" value="0" />
  244.                 </td>
  245.                 <td COLSPAN="4"><input type="number" class="sheet-charModInput" name="attr_strengthMod" value="0" />
  246.                 </td>
  247.                 <td COLSPAN="4"><input type="number" class="sheet-charModInput" name="attr_toughnessMod" value="0" />
  248.                 </td>
  249.                 <td COLSPAN="4"><input type="number" class="sheet-charModInput" name="attr_agMod" value="0" />
  250.                 </td>
  251.                 <td COLSPAN="4"><input type="number" class="sheet-charModInput" name="attr_intMod" value="0" />
  252.                 </td>
  253.                 <td COLSPAN="4"><input type="number" class="sheet-charModInput" name="attr_perMod" value="0" />
  254.                 </td>
  255.                 <td COLSPAN="4"><input type="number" class="sheet-charModInput" name="attr_wpMod" value="0" />
  256.                 </td>
  257.                 <td COLSPAN="4"><input type="number" class="sheet-charModInput" name="attr_felMod" value="0" />
  258.                 </td>
  259.                 <td style="width:5%">
  260.                 </td>
  261.             </tr>
  262.             <tr>
  263.                 <td style="width:5%; vertical-align:middle"><label style="text-align:right; font-size:10px; vertical-align: middle">Final</label>
  264.                 </td>
  265.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charMainInput" name="attr_wsFinal" value="floor(@{ws}+@{wsAdvance}+@{wsMod})" />
  266.                 </td>
  267.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charMainInput" name="attr_bsFinal" value="floor(@{bs}+@{bsAdvance}+@{bsMod})" />
  268.                 </td>
  269.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charMainInput" name="attr_strengthFinal" value="floor(@{strength}+@{strengthAdvance}+@{strengthMod})" />
  270.                 </td>
  271.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charMainInput" name="attr_toughnessFinal" value="floor(@{toughness}+@{toughnessAdvance}+@{toughnessMod})" />
  272.                 </td>
  273.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charMainInput" name="attr_agFinal" value="floor(@{ag}+@{agAdvance}+@{agMod})" />
  274.                 </td>
  275.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charMainInput" name="attr_intFinal" value="floor(@{int}+@{intAdvance}+@{intMod})" />
  276.                 </td>
  277.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charMainInput" name="attr_perFinal" value="floor(@{per}+@{perAdvance}+@{perMod})" />
  278.                 </td>
  279.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charMainInput" name="attr_wpFinal" value="floor(@{wp}+@{wpAdvance}+@{wpMod})" />
  280.                 </td>
  281.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charMainInput" name="attr_felFinal" value="floor(@{fel}+@{felAdvance}+@{felMod})" />
  282.                 </td>
  283.                 <td style="width:5%">
  284.                 </td>
  285.             </tr>
  286.            
  287.             <tr>
  288.                 <td COLSPAN="8">
  289.                 </td>
  290.                 <td style="vertical-align:middle"><label style="text-align:right; font-size:10px; vertical-align: middle">Bonuses</label>
  291.                 </td>
  292.                 <td COLSPAN="4"><label style="text-align:center">(SB)</label>
  293.                 </td>
  294.                 <td COLSPAN="4"><label style="text-align:center">(TB)</label>
  295.                 </td>
  296.                 <td COLSPAN="4"><label style="text-align:center">(AgB)</label>
  297.                 </td>
  298.                 <td COLSPAN="4"><label style="text-align:center">(IntB)</label>
  299.                 </td>
  300.                 <td COLSPAN="4"><label style="text-align:center">(PerB)</label>
  301.                 </td>
  302.                 <td COLSPAN="4"><label style="text-align:center">(WPB)</label>
  303.                 </td>
  304.                 <td COLSPAN="4"><label style="text-align:center">(FelB)</label>
  305.                 </td>
  306.                 <td style="width:5%">
  307.                 </td>
  308.             </tr>
  309.             <tr>
  310.                 <td COLSPAN="2"><label style="text-align:center">Fate Points</label>
  311.                 </td>
  312.                 <td COLSPAN="6">
  313.                 </td>
  314.                 <td style="vertical-align:middle"><label style="text-align:right; font-size:10px; vertical-align: middle">Starting</label>
  315.                 </td>
  316.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charModInput" name="attr_strengthBonusStarting" value="floor(@{strengthFinal}/10)" />
  317.                 </td>
  318.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charModInput" name="attr_toughnessBonusStarting" value="floor(@{toughnessFinal}/10)" />
  319.                 </td>
  320.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charModInput" name="attr_agBonusStarting" value="floor(@{agFinal}/10)" />
  321.                 </td>
  322.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charModInput" name="attr_intBonusStarting" value="floor(@{intFinal}/10)" />
  323.                 </td>
  324.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charModInput" name="attr_perBonusStarting" value="floor(@{perFinal}/10)" />
  325.                 </td>
  326.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charModInput" name="attr_wpBonusStarting" value="floor(@{wpFinal}/10)" />
  327.                 </td>
  328.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charModInput" name="attr_felBonusStarting" value="floor(@{felFinal}/10)" />
  329.                 </td>
  330.                 <td style="width:5%">
  331.                 </td>
  332.             </tr>
  333.             <tr>
  334.                 <td><label style="text-align:right; font-size:10px; vertical-align: middle">Total</label>
  335.                 </td>
  336.                 <td><input type="text" class="sheet-charModInput" style="text-align: center; " name="attr_fatetotal" />
  337.                 </td>
  338.                 <td COLSPAN="6">
  339.                 </td>
  340.                 <td style="vertical-align:middle"><label style="text-align:right; font-size:10px; vertical-align: middle">Add</label>
  341.                 </td>
  342.                 <td COLSPAN="2">
  343.                 <select class="sheet-charAdvance" name="attr_strengthBonusBefore">
  344.                         <option value="-5" >-5</option>
  345.                         <option value="-4" >-4</option>
  346.                         <option value="-3" >-3</option>
  347.                         <option value="-2" >-2</option>
  348.                         <option value="-1" >-1</option>
  349.                         <option value="0" selected>+0</option>
  350.                         <option value="1" >+1</option>
  351.                         <option value="2" >+2</option>
  352.                         <option value="3" >+3</option>
  353.                         <option value="3" >+4</option>
  354.                         <option value="3" >+5</option>
  355.                     </select>
  356.                 </td>
  357.                 <td COLSPAN="2">
  358.                 <select class="sheet-charAdvance" name="attr_strengthBonusAfter">
  359.                         <option value="-5" >-5</option>
  360.                         <option value="-4" >-4</option>
  361.                         <option value="-3" >-3</option>
  362.                         <option value="-2" >-2</option>
  363.                         <option value="-1" >-1</option>
  364.                         <option value="0" selected>+0</option>
  365.                         <option value="1" >+1</option>
  366.                         <option value="2" >+2</option>
  367.                         <option value="3" >+3</option>
  368.                         <option value="3" >+4</option>
  369.                         <option value="3" >+5</option>
  370.                     </select>
  371.                 </td>
  372.                 <td COLSPAN="2">
  373.                 <select class="sheet-charAdvance" name="attr_toughnessBonusBefore">
  374.                         <option value="-5" >-5</option>
  375.                         <option value="-4" >-4</option>
  376.                         <option value="-3" >-3</option>
  377.                         <option value="-2" >-2</option>
  378.                         <option value="-1" >-1</option>
  379.                         <option value="0" selected>+0</option>
  380.                         <option value="1" >+1</option>
  381.                         <option value="2" >+2</option>
  382.                         <option value="3" >+3</option>
  383.                         <option value="3" >+4</option>
  384.                         <option value="3" >+5</option>
  385.                     </select>
  386.                 </td>
  387.                 <td COLSPAN="2">
  388.                 <select class="sheet-charAdvance" name="attr_toughnessBonusAfter">
  389.                         <option value="-5" >-5</option>
  390.                         <option value="-4" >-4</option>
  391.                         <option value="-3" >-3</option>
  392.                         <option value="-2" >-2</option>
  393.                         <option value="-1" >-1</option>
  394.                         <option value="0" selected>+0</option>
  395.                         <option value="1" >+1</option>
  396.                         <option value="2" >+2</option>
  397.                         <option value="3" >+3</option>
  398.                         <option value="3" >+4</option>
  399.                         <option value="3" >+5</option>
  400.                     </select>
  401.                 </td>
  402.                 <td COLSPAN="2">
  403.                 <select class="sheet-charAdvance" name="attr_agBonusBefore">
  404.                         <option value="-5" >-5</option>
  405.                         <option value="-4" >-4</option>
  406.                         <option value="-3" >-3</option>
  407.                         <option value="-2" >-2</option>
  408.                         <option value="-1" >-1</option>
  409.                         <option value="0" selected>+0</option>
  410.                         <option value="1" >+1</option>
  411.                         <option value="2" >+2</option>
  412.                         <option value="3" >+3</option>
  413.                         <option value="3" >+4</option>
  414.                         <option value="3" >+5</option>
  415.                     </select>
  416.                 </td>
  417.                 <td COLSPAN="2">
  418.                 <select class="sheet-charAdvance" name="attr_agBonusAfter">
  419.                         <option value="-5" >-5</option>
  420.                         <option value="-4" >-4</option>
  421.                         <option value="-3" >-3</option>
  422.                         <option value="-2" >-2</option>
  423.                         <option value="-1" >-1</option>
  424.                         <option value="0" selected>+0</option>
  425.                         <option value="1" >+1</option>
  426.                         <option value="2" >+2</option>
  427.                         <option value="3" >+3</option>
  428.                         <option value="3" >+4</option>
  429.                         <option value="3" >+5</option>
  430.                     </select>
  431.                 </td>
  432.                 <td COLSPAN="2">
  433.                 <select class="sheet-charAdvance" name="attr_intBonusBefore">
  434.                         <option value="-5" >-5</option>
  435.                         <option value="-4" >-4</option>
  436.                         <option value="-3" >-3</option>
  437.                         <option value="-2" >-2</option>
  438.                         <option value="-1" >-1</option>
  439.                         <option value="0" selected>+0</option>
  440.                         <option value="1" >+1</option>
  441.                         <option value="2" >+2</option>
  442.                         <option value="3" >+3</option>
  443.                         <option value="3" >+4</option>
  444.                         <option value="3" >+5</option>
  445.                     </select>
  446.                 </td>
  447.                 <td COLSPAN="2">
  448.                 <select class="sheet-charAdvance" name="attr_intBonusAfter">
  449.                         <option value="-5" >-5</option>
  450.                         <option value="-4" >-4</option>
  451.                         <option value="-3" >-3</option>
  452.                         <option value="-2" >-2</option>
  453.                         <option value="-1" >-1</option>
  454.                         <option value="0" selected>+0</option>
  455.                         <option value="1" >+1</option>
  456.                         <option value="2" >+2</option>
  457.                         <option value="3" >+3</option>
  458.                         <option value="3" >+4</option>
  459.                         <option value="3" >+5</option>
  460.                     </select>
  461.                 </td>
  462.                 <td COLSPAN="2">
  463.                 <select class="sheet-charAdvance" name="attr_perBonusBefore">
  464.                         <option value="-5" >-5</option>
  465.                         <option value="-4" >-4</option>
  466.                         <option value="-3" >-3</option>
  467.                         <option value="-2" >-2</option>
  468.                         <option value="-1" >-1</option>
  469.                         <option value="0" selected>+0</option>
  470.                         <option value="1" >+1</option>
  471.                         <option value="2" >+2</option>
  472.                         <option value="3" >+3</option>
  473.                         <option value="3" >+4</option>
  474.                         <option value="3" >+5</option>
  475.                     </select>
  476.                 </td>
  477.                 <td COLSPAN="2">
  478.                 <select class="sheet-charAdvance" name="attr_perBonusAfter">
  479.                         <option value="-5" >-5</option>
  480.                         <option value="-4" >-4</option>
  481.                         <option value="-3" >-3</option>
  482.                         <option value="-2" >-2</option>
  483.                         <option value="-1" >-1</option>
  484.                         <option value="0" selected>+0</option>
  485.                         <option value="1" >+1</option>
  486.                         <option value="2" >+2</option>
  487.                         <option value="3" >+3</option>
  488.                         <option value="3" >+4</option>
  489.                         <option value="3" >+5</option>
  490.                     </select>
  491.                 </td>
  492.                 <td COLSPAN="2">
  493.                 <select class="sheet-charAdvance" name="attr_wpBonusBefore">
  494.                         <option value="-5" >-5</option>
  495.                         <option value="-4" >-4</option>
  496.                         <option value="-3" >-3</option>
  497.                         <option value="-2" >-2</option>
  498.                         <option value="-1" >-1</option>
  499.                         <option value="0" selected>+0</option>
  500.                         <option value="1" >+1</option>
  501.                         <option value="2" >+2</option>
  502.                         <option value="3" >+3</option>
  503.                         <option value="3" >+4</option>
  504.                         <option value="3" >+5</option>
  505.                     </select>
  506.                 </td>
  507.                 <td COLSPAN="2">
  508.                 <select class="sheet-charAdvance" name="attr_wpBonusAfter">
  509.                         <option value="-5" >-5</option>
  510.                         <option value="-4" >-4</option>
  511.                         <option value="-3" >-3</option>
  512.                         <option value="-2" >-2</option>
  513.                         <option value="-1" >-1</option>
  514.                         <option value="0" selected>+0</option>
  515.                         <option value="1" >+1</option>
  516.                         <option value="2" >+2</option>
  517.                         <option value="3" >+3</option>
  518.                         <option value="3" >+4</option>
  519.                         <option value="3" >+5</option>
  520.                     </select>
  521.                 </td>
  522.                 <td COLSPAN="2">
  523.                 <select class="sheet-charAdvance" name="attr_felBonusBefore">
  524.                         <option value="-5" >-5</option>
  525.                         <option value="-4" >-4</option>
  526.                         <option value="-3" >-3</option>
  527.                         <option value="-2" >-2</option>
  528.                         <option value="-1" >-1</option>
  529.                         <option value="0" selected>+0</option>
  530.                         <option value="1" >+1</option>
  531.                         <option value="2" >+2</option>
  532.                         <option value="3" >+3</option>
  533.                         <option value="3" >+4</option>
  534.                         <option value="3" >+5</option>
  535.                     </select>
  536.                 </td>
  537.                 <td COLSPAN="2">
  538.                 <select class="sheet-charAdvance" name="attr_felBonusAfter">
  539.                         <option value="-5" >-5</option>
  540.                         <option value="-4" >-4</option>
  541.                         <option value="-3" >-3</option>
  542.                         <option value="-2" >-2</option>
  543.                         <option value="-1" >-1</option>
  544.                         <option value="0" selected>+0</option>
  545.                         <option value="1" >+1</option>
  546.                         <option value="2" >+2</option>
  547.                         <option value="3" >+3</option>
  548.                         <option value="3" >+4</option>
  549.                         <option value="3" >+5</option>
  550.                     </select>
  551.                 </td>
  552.                 <td style="width:5%">
  553.                 </td>
  554.             </tr>
  555.             <tr>
  556.                 <td><label style="text-align:right; font-size:10px; vertical-align: middle">Current</label>
  557.                 </td>
  558.                 <td><input type="text" class="sheet-charModInput" style="text-align: center; " name="attr_fatecurrent" />
  559.                 </td>
  560.                 <td COLSPAN="6">
  561.                 </td>
  562.                 <td style="vertical-align:middle"><label style="text-align:right; font-size:10px; vertical-align: middle">Multiplier</label>
  563.                 </td>
  564.                 <td COLSPAN="4">
  565.             <select class="sheet-charAdvance" name="attr_strengthBonusMultiplier" >
  566.                         <option value="0" selected>*1</option>
  567.                         <option value="1" >*2</option>
  568.                         <option value="2" >*3</option>
  569.                         <option value="3" >*4</option>
  570.             </select></td>
  571.                 <td COLSPAN="4">
  572.             <select class="sheet-charAdvance" name="attr_toughnessBonusMultiplier" >
  573.                         <option value="0" selected>*1</option>
  574.                         <option value="1" >*2</option>
  575.                         <option value="2" >*3</option>
  576.                         <option value="3" >*4</option>
  577.             </select></td>
  578.                 <td COLSPAN="4">
  579.             <select class="sheet-charAdvance" name="attr_agBonusMultiplier" >
  580.                         <option value="0" selected>*1</option>
  581.                         <option value="1" >*2</option>
  582.                         <option value="2" >*3</option>
  583.                         <option value="3" >*4</option>
  584.             </select></td>
  585.                 <td COLSPAN="4">
  586.             <select class="sheet-charAdvance" name="attr_intBonusMultiplier" >
  587.                         <option value="0" selected>*1</option>
  588.                         <option value="1" >*2</option>
  589.                         <option value="2" >*3</option>
  590.                         <option value="3" >*4</option>
  591.             </select></td>
  592.                 <td COLSPAN="4">
  593.             <select class="sheet-charAdvance" name="attr_perBonusMultiplier" >
  594.                         <option value="0" selected>*1</option>
  595.                         <option value="1" >*2</option>
  596.                         <option value="2" >*3</option>
  597.                         <option value="3" >*4</option>
  598.             </select></td>
  599.                 <td COLSPAN="4">
  600.             <select class="sheet-charAdvance" name="attr_wpBonusMultiplier" >
  601.                         <option value="0" selected>*1</option>
  602.                         <option value="1" >*2</option>
  603.                         <option value="2" >*3</option>
  604.                         <option value="3" >*4</option>
  605.             </select></td>
  606.                 <td COLSPAN="4">
  607.             <select class="sheet-charAdvance" name="attr_felBonusMultiplier" >
  608.                         <option value="0" selected>*1</option>
  609.                         <option value="1" >*2</option>
  610.                         <option value="2" >*3</option>
  611.                         <option value="3" >*4</option>
  612.             </select></td>
  613.                 <td style="width:5%">
  614.                 </td>
  615.             </tr>
  616.             <tr>
  617.                 <td COLSPAN="8">
  618.                 </td>
  619.                 <td style="vertical-align:middle"><label style="text-align:right; font-size:10px; vertical-align: middle">Final</label>
  620.                 </td>
  621.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charMainInput" name="attr_strengthBonus" value="floor([[ (floor(@{strengthFinal}/10) + @{strengthBonusBefore}) * (1 + @{strengthBonusMultiplier}) + @{strengthBonusAfter} ]])" />
  622.                 </td>
  623.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charMainInput" name="attr_toughnessBonus" value="floor([[ (floor(@{toughnessFinal}/10) + @{toughnessBonusBefore}) * (1 + @{toughnessBonusMultiplier}) + @{toughnessBonusAfter} ]])" />
  624.                 </td>
  625.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charMainInput" name="attr_agBonus" value="floor([[ (floor(@{agFinal}/10) + @{agBonusBefore}) * (1 + @{agBonusMultiplier}) + @{agBonusAfter} ]])" />
  626.                 </td>
  627.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charMainInput" name="attr_intBonus" value="floor([[ (floor(@{intFinal}/10) + @{intBonusBefore}) * (1 + @{intBonusMultiplier}) + @{intBonusAfter} ]])" />
  628.                 </td>
  629.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charMainInput" name="attr_perBonus" value="floor([[ (floor(@{perFinal}/10) + @{perBonusBefore}) * (1 + @{perBonusMultiplier}) + @{perBonusAfter} ]])" />
  630.                 </td>
  631.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charMainInput" name="attr_wpBonus" value="floor([[ (floor(@{wpFinal}/10) + @{wpBonusBefore}) * (1 + @{wpBonusMultiplier}) + @{wpBonusAfter} ]])" />
  632.                 </td>
  633.                 <td COLSPAN="4"><input disabled type="text" class="sheet-charMainInput" name="attr_felBonus" value="floor([[ (floor(@{felFinal}/10) + @{felBonusBefore}) * (1 + @{felBonusMultiplier}) + @{felBonusAfter} ]])" />
  634.                 </td>
  635.                 <td style="width:5%">
  636.                 </td>
  637.             </tr>
  638.         </table>
  639.         <br>
  640.         <div style="width:100%; height:auto">
  641.             <div class="sheet-col" style="width:48%">
  642.                 <h3>Wounds</h3>
  643.             <table style="width:100%; height:auto">
  644.             <tr>
  645.                     <td style="width:5%">
  646.                     </td>
  647.                     <td style="width:10%"><label style="text-align: center;  height:auto;font-size:12px">Starting<br>Wounds</label>
  648.                     </td>
  649.                     <td style="width:5%">
  650.                     </td>
  651.                     <td style="width:10%"><label style="text-align: center;font-size:12px ">Advancements</label>
  652.                     </td>
  653.                     <td style="width:5%">
  654.                     </td>
  655.                     <td style="width:10%"><label style="text-align: center;font-size:12px ">Modifier</label>
  656.                     </td>
  657.                     <td style="width:5%">
  658.                     </td>
  659.                     <td style="width:10%"><label style="text-align: center;font-size:12px ">Total</label>
  660.                     </td>
  661.                     <td style="width:5%">
  662.                     </td>
  663.                     </tr>
  664.             <tr>
  665.                     <td style="width:5%">
  666.                     </td>
  667.                     <td><input type="number" style="text-align: center; width:50px " name="attr_startingwounds" value="0" />
  668.                     </td>
  669.                     <td ><label style="text-align: center; ">+</label>
  670.                     </td>
  671.                     <td><input type="number" style="text-align: center; width:50px" name="attr_wounds_advancements" value="0"  />
  672.                     </td>
  673.                     <td ><label style="text-align: center; ">+</label>
  674.                     </td>
  675.                     <td><input type="number" style="text-align: center; width:50px " name="attr_wounds_modifier" value="0"  />
  676.                     </td>
  677.                     <td ><label style="text-align: center; ">=</label>
  678.                     </td>
  679.                     <td><input type="number" style="text-align: center; width:50px " name="attr_wounds_total" value="floor(@{startingwounds} + @{wounds_advancements} + @{wounds_modifier})" disabled />
  680.                     </td>
  681.                     <td >
  682.                     </td>
  683.                     </tr>
  684.                     </table>
  685.             </div>
  686.             <div class="sheet-col" style="width:2%">
  687.             </div>
  688.             <div class="sheet-col" style="width:48%">
  689.                 <h3>Damage</h3>
  690.             <table style="width:100%; height:auto">
  691.                 <tr>
  692.                     <td style="width:5%">
  693.                     </td>
  694.                     <td style="width:10%"><label style="text-align: center;font-size:12px ">Damage</label>
  695.                     </td>
  696.                     <td style="width:2%">
  697.                     </td>
  698.                     <td style="width:15%; height:auto"><label style="text-align: center; height:auto;font-size:12px">Critical<br> Damage</label>
  699.                     </td>
  700.                     <td style="width:2%">
  701.                     </td>
  702.                     <td style="width:40%"><label style="text-align: center;font-size:12px ">Status</label>
  703.                     </td>
  704.                     <td style="width:2%">
  705.                     </td>
  706.                     <td style="width:24%"><label style="text-align: center; height:auto;font-size:12px">Fatigue<br> (Max = TB)</label>
  707.                     </td>
  708.                     <td style="width:5%">
  709.                     </td>
  710.                 </tr>
  711.                 <tr>
  712.                     <td style="width:5%">
  713.                     </td>
  714.                     <td ><input style="text-align: center; width:50px" " type="text" name="attr_damagetaken" />
  715.                     </td>
  716.                     <td>
  717.                     </td>
  718.                     <td><input type="text" style="text-align: center; height:auto; width:50px" " name="attr_woundscritical" />
  719.                     </td>
  720.                     <td>
  721.                     </td>
  722.                     <td>
  723.             <select name="attr_characterDamageStatus" style="width:100%" class="sheet-input-selectbox" >
  724.                                 <option value="0" selected>Healthy</option>
  725.                                 <option value="1">Lightly Damaged</option>
  726.                                 <option value="2">Heavily Damaged</option>
  727.                                 <option value="3">Critically Damaged</option>
  728.                                 <option value="4">Dead</option>
  729.             </select></td>
  730.                     <td>
  731.                     </td>
  732.                     <td style="text-align: center"><input style="text-align: center; width:50px" type="text" name="attr_woundsfatigue" />
  733.                     </td>
  734.                     <td style="width:5%">
  735.                     </td>
  736.                 </tr>
  737.             </table>
  738.             </div>
  739.         </div>
  740.         <hr>
  741.         <!-- Main Sheet First Tier -->
  742.         <div class="sheet-col">
  743.  
  744.             <!-- Left Column -->
  745.             <div class="sheet-col sheet-skills" style="width:48%">
  746.                 <h3>Basic Skills</h3>
  747.                 <table style="width:100%;text-align:left">
  748.                     <tr>
  749.                         <th>Skill Name</th>
  750.                         <th>Char.</th>
  751.                         <th>Trained?</th>
  752.                         <th>Mod</th>
  753.                         <th>Roll</th>
  754.                     </tr>
  755.                    
  756.                     <tr>
  757.                         <td style="width:55%">Awareness</td>
  758.                         <td style="width:10%">
  759.             <select name="attr_Awareness_char" style="width:100%" class="sheet-input-selectbox" >
  760.                                 <option value="@{wsFinal}">(WS)</option>
  761.                                 <option value="@{bsFinal}">(BS)</option>
  762.                                 <option value="@{strengthFinal}">(S)</option>
  763.                                 <option value="@{toughnessFinal}">(T)</option>
  764.                                 <option value="@{agFinal}">(Ag)</option>
  765.                                 <option value="@{intFinal}">(Int)</option>
  766.                                 <option value="@{perFinal}" selected>(Per)</option>
  767.                                 <option value="@{wpFinal}">(Wp)</option>
  768.                                 <option value="@{felFinal}">(Fel)</option>
  769.             </select>
  770.                         </td>
  771.                         <td style="width:15%"> <select name="attr_Awareness_Train" style="width:100%" class="sheet-input-selectbox">
  772.                 <option value="0.5" selected>No</option>
  773.                 <option value="1">Yes</option>
  774.                 <option value="1+10">+10</option>
  775.                 <option value="1+20">+20</option>
  776.             </select></td>
  777.                         <td style="width:10%"><input type="number" name="attr_Awareness_mod" value="0" /></td>
  778.                         <td style="width:10%"><button type="roll" name="roll_awareness" value="!warroll [[@{Awareness}]] ?{Modfier|0} @{PlayerQueryRoll} Awareness Test">
  779.                     <input type="number" name="attr_Awareness" value="floor(@{Awareness_char}*@{Awareness_Train}+@{Awareness_mod})" disabled="true"/>
  780.                 </button></td>
  781.                     </tr>
  782.                    
  783.                     <tr>
  784.                         <td style="width:55%">Barter</td>
  785.                         <td style="width:10%">
  786.             <select name="attr_Barter_char" style="width:100%" class="sheet-input-selectbox" >
  787.                                 <option value="@{wsFinal}">(WS)</option>
  788.                                 <option value="@{bsFinal}">(BS)</option>
  789.                                 <option value="@{strengthFinal}">(S)</option>
  790.                                 <option value="@{toughnessFinal}">(T)</option>
  791.                                 <option value="@{agFinal}">(Ag)</option>
  792.                                 <option value="@{intFinal}">(Int)</option>
  793.                                 <option value="@{perFinal}" >(Per)</option>
  794.                                 <option value="@{wpFinal}">(Wp)</option>
  795.                                 <option value="@{felFinal}" selected>(Fel)</option>
  796.             </select>
  797.                         </td>
  798.                         <td style="width:15%"> <select name="attr_Barter_Train" style="width:100%" class="sheet-input-selectbox">
  799.                 <option value="0.5" selected>No</option>
  800.                 <option value="1">Yes</option>
  801.                 <option value="1+10">+10</option>
  802.                 <option value="1+20">+20</option>
  803.             </select></td>
  804.                         <td style="width:10%"><input type="number" name="attr_Barter_mod" value="0" /></td>
  805.                         <td style="width:10%"><button type="roll" name="roll_Barter" value="!warroll [[@{Barter}]] ?{Modfier|0} @{PlayerQueryRoll} Barter Test">
  806.                     <input type="number" name="attr_Barter" value="floor(@{Barter_char}*@{Barter_Train}+@{Barter_mod})" disabled="true"/>
  807.                 </button></td>
  808.                     </tr>
  809.                    
  810.                     <tr>
  811.                         <td style="width:55%">Carouse</td>
  812.                         <td style="width:10%">
  813.             <select name="attr_Carouse_char" style="width:100%" class="sheet-input-selectbox" >
  814.                                 <option value="@{wsFinal}">(WS)</option>
  815.                                 <option value="@{bsFinal}">(BS)</option>
  816.                                 <option value="@{strengthFinal}">(S)</option>
  817.                                 <option value="@{toughnessFinal}" selected>(T)</option>
  818.                                 <option value="@{agFinal}">(Ag)</option>
  819.                                 <option value="@{intFinal}">(Int)</option>
  820.                                 <option value="@{perFinal}" >(Per)</option>
  821.                                 <option value="@{wpFinal}">(Wp)</option>
  822.                                 <option value="@{felFinal}">(Fel)</option>
  823.             </select>
  824.                         </td>
  825.                         <td style="width:15%"> <select name="attr_Carouse_Train" style="width:100%" class="sheet-input-selectbox">
  826.                 <option value="0.5" selected>No</option>
  827.                 <option value="1">Yes</option>
  828.                 <option value="1+10">+10</option>
  829.                 <option value="1+20">+20</option>
  830.             </select></td>
  831.                         <td style="width:10%"><input type="number" name="attr_Carouse_mod" value="0" /></td>
  832.                         <td style="width:10%"><button type="roll" name="roll_Carouse" value="!warroll [[@{Carouse}]] ?{Modfier|0} @{PlayerQueryRoll} Carouse Test">
  833.                     <input type="number" name="attr_Carouse" value="floor(@{Carouse_char}*@{Carouse_Train}+@{Carouse_mod})" disabled="true"/>
  834.                 </button></td>
  835.                     </tr>
  836.                    
  837.                     <tr>
  838.                         <td style="width:55%">Charm</td>
  839.                         <td style="width:10%">
  840.             <select name="attr_Charm_char" style="width:100%" class="sheet-input-selectbox" >
  841.                                 <option value="@{wsFinal}">(WS)</option>
  842.                                 <option value="@{bsFinal}">(BS)</option>
  843.                                 <option value="@{strengthFinal}">(S)</option>
  844.                                 <option value="@{toughnessFinal}">(T)</option>
  845.                                 <option value="@{agFinal}">(Ag)</option>
  846.                                 <option value="@{intFinal}">(Int)</option>
  847.                                 <option value="@{perFinal}" >(Per)</option>
  848.                                 <option value="@{wpFinal}">(Wp)</option>
  849.                                 <option value="@{felFinal}" selected>(Fel)</option>
  850.             </select>
  851.                         </td>
  852.                         <td style="width:15%"> <select name="attr_Charm_Train" style="width:100%" class="sheet-input-selectbox">
  853.                 <option value="0.5" selected>No</option>
  854.                 <option value="1">Yes</option>
  855.                 <option value="1+10">+10</option>
  856.                 <option value="1+20">+20</option>
  857.             </select></td>
  858.                         <td style="width:10%"><input type="number" name="attr_Charm_mod" value="0" /></td>
  859.                         <td style="width:10%"><button type="roll" name="roll_Charm" value="!warroll [[@{Charm}]] ?{Modfier|0} @{PlayerQueryRoll} Charm Test">
  860.                     <input type="number" name="attr_Charm" value="floor(@{Charm_char}*@{Charm_Train}+@{Charm_mod})" disabled="true"/>
  861.                 </button></td>
  862.                     </tr>
  863.                    
  864.                     <tr>
  865.                         <td style="width:55%">Climb</td>
  866.                         <td style="width:10%">
  867.             <select name="attr_Climb_char" style="width:100%" class="sheet-input-selectbox" >
  868.                                 <option value="@{wsFinal}">(WS)</option>
  869.                                 <option value="@{bsFinal}">(BS)</option>
  870.                                 <option value="@{strengthFinal}" selected>(S)</option>
  871.                                 <option value="@{toughnessFinal}">(T)</option>
  872.                                 <option value="@{agFinal}">(Ag)</option>
  873.                                 <option value="@{intFinal}">(Int)</option>
  874.                                 <option value="@{perFinal}" >(Per)</option>
  875.                                 <option value="@{wpFinal}">(Wp)</option>
  876.                                 <option value="@{felFinal}">(Fel)</option>
  877.             </select>
  878.                         </td>
  879.                         <td style="width:15%"> <select name="attr_Climb_Train" style="width:100%" class="sheet-input-selectbox">
  880.                 <option value="0.5" selected>No</option>
  881.                 <option value="1">Yes</option>
  882.                 <option value="1+10">+10</option>
  883.                 <option value="1+20">+20</option>
  884.             </select></td>
  885.                         <td style="width:10%"><input type="number" name="attr_Climb_mod" value="0" /></td>
  886.                         <td style="width:10%"><button type="roll" name="roll_Climb" value="!warroll [[@{Climb}]] ?{Modfier|0} @{PlayerQueryRoll} Climb Test">
  887.                     <input type="number" name="attr_Climb" value="floor(@{Climb_char}*@{Climb_Train}+@{Climb_mod})" disabled="true"/>
  888.                 </button></td>
  889.                     </tr>
  890.                    
  891.                     <tr>
  892.                         <td style="width:55%">Command</td>
  893.                         <td style="width:10%">
  894.             <select name="attr_Command_char" style="width:100%" class="sheet-input-selectbox" >
  895.                                 <option value="@{wsFinal}">(WS)</option>
  896.                                 <option value="@{bsFinal}">(BS)</option>
  897.                                 <option value="@{strengthFinal}">(S)</option>
  898.                                 <option value="@{toughnessFinal}">(T)</option>
  899.                                 <option value="@{agFinal}">(Ag)</option>
  900.                                 <option value="@{intFinal}">(Int)</option>
  901.                                 <option value="@{perFinal}" >(Per)</option>
  902.                                 <option value="@{wpFinal}">(Wp)</option>
  903.                                 <option value="@{felFinal}" selected>(Fel)</option>
  904.             </select>
  905.                         </td>
  906.                         <td style="width:15%"> <select name="attr_Command_Train" style="width:100%" class="sheet-input-selectbox">
  907.                 <option value="0.5" selected>No</option>
  908.                 <option value="1">Yes</option>
  909.                 <option value="1+10">+10</option>
  910.                 <option value="1+20">+20</option>
  911.             </select></td>
  912.                         <td style="width:10%"><input type="number" name="attr_Command_mod" value="0" /></td>
  913.                         <td style="width:10%"><button type="roll" name="roll_Command" value="!warroll [[@{Command}]] ?{Modfier|0} @{PlayerQueryRoll} Command Test">
  914.                     <input type="number" name="attr_Command" value="floor(@{Command_char}*@{Command_Train}+@{Command_mod})" disabled="true"/>
  915.                 </button></td>
  916.                     </tr>
  917.                    
  918.                     <tr>
  919.                         <td style="width:55%">Concealment</td>
  920.                         <td style="width:10%">
  921.             <select name="attr_Concealment_char" style="width:100%" class="sheet-input-selectbox" >
  922.                                 <option value="@{wsFinal}">(WS)</option>
  923.                                 <option value="@{bsFinal}">(BS)</option>
  924.                                 <option value="@{strengthFinal}">(S)</option>
  925.                                 <option value="@{toughnessFinal}">(T)</option>
  926.                                 <option value="@{agFinal}" selected>(Ag)</option>
  927.                                 <option value="@{intFinal}">(Int)</option>
  928.                                 <option value="@{perFinal}" >(Per)</option>
  929.                                 <option value="@{wpFinal}">(Wp)</option>
  930.                                 <option value="@{felFinal}">(Fel)</option>
  931.             </select>
  932.                         </td>
  933.                         <td style="width:15%"> <select name="attr_Concealment_Train" style="width:100%" class="sheet-input-selectbox">
  934.                 <option value="0.5" selected>No</option>
  935.                 <option value="1">Yes</option>
  936.                 <option value="1+10">+10</option>
  937.                 <option value="1+20">+20</option>
  938.             </select></td>
  939.                         <td style="width:10%"><input type="number" name="attr_Concealment_mod" value="0" /></td>
  940.                         <td style="width:10%"><button type="roll" name="roll_Concealment" value="!warroll [[@{Concealment}]] ?{Modfier|0} @{PlayerQueryRoll} Concealment Test">
  941.                     <input type="number" name="attr_Concealment" value="floor(@{Concealment_char}*@{Concealment_Train}+@{Concealment_mod})" disabled="true"/>
  942.                 </button></td>
  943.                     </tr>
  944.                    
  945.                     <tr>
  946.                         <td style="width:55%">Contortionist</td>
  947.                         <td style="width:10%">
  948.             <select name="attr_Contortionist_char" style="width:100%" class="sheet-input-selectbox" >
  949.                                 <option value="@{wsFinal}">(WS)</option>
  950.                                 <option value="@{bsFinal}">(BS)</option>
  951.                                 <option value="@{strengthFinal}">(S)</option>
  952.                                 <option value="@{toughnessFinal}">(T)</option>
  953.                                 <option value="@{agFinal}" selected>(Ag)</option>
  954.                                 <option value="@{intFinal}">(Int)</option>
  955.                                 <option value="@{perFinal}" >(Per)</option>
  956.                                 <option value="@{wpFinal}">(Wp)</option>
  957.                                 <option value="@{felFinal}">(Fel)</option>
  958.             </select>
  959.                         </td>
  960.                         <td style="width:15%"> <select name="attr_Contortionist_Train" style="width:100%" class="sheet-input-selectbox">
  961.                 <option value="0.5" selected>No</option>
  962.                 <option value="1">Yes</option>
  963.                 <option value="1+10">+10</option>
  964.                 <option value="1+20">+20</option>
  965.             </select></td>
  966.                         <td style="width:10%"><input type="number" name="attr_Contortionist_mod" value="0" /></td>
  967.                         <td style="width:10%"><button type="roll" name="roll_Contortionist" value="!warroll [[@{Contortionist}]] ?{Modfier|0} @{PlayerQueryRoll} Contortionist Test">
  968.                     <input type="number" name="attr_Contortionist" value="floor(@{Contortionist_char}*@{Contortionist_Train}+@{Contortionist_mod})" disabled="true"/>
  969.                 </button></td>
  970.                     </tr>
  971.                    
  972.                     <tr>
  973.                         <td style="width:55%">Deceive</td>
  974.                         <td style="width:10%">
  975.             <select name="attr_Deceive_char" style="width:100%" class="sheet-input-selectbox" >
  976.                                 <option value="@{wsFinal}">(WS)</option>
  977.                                 <option value="@{bsFinal}">(BS)</option>
  978.                                 <option value="@{strengthFinal}">(S)</option>
  979.                                 <option value="@{toughnessFinal}">(T)</option>
  980.                                 <option value="@{agFinal}">(Ag)</option>
  981.                                 <option value="@{intFinal}">(Int)</option>
  982.                                 <option value="@{perFinal}" >(Per)</option>
  983.                                 <option value="@{wpFinal}">(Wp)</option>
  984.                                 <option value="@{felFinal}" selected>(Fel)</option>
  985.             </select>
  986.                         </td>
  987.                         <td style="width:15%"> <select name="attr_Deceive_Train" style="width:100%" class="sheet-input-selectbox">
  988.                 <option value="0.5" selected>No</option>
  989.                 <option value="1">Yes</option>
  990.                 <option value="1+10">+10</option>
  991.                 <option value="1+20">+20</option>
  992.             </select></td>
  993.                         <td style="width:10%"><input type="number" name="attr_Deceive_mod" value="0" /></td>
  994.                         <td style="width:10%"><button type="roll" name="roll_Deceive" value="!warroll [[@{Deceive}]] ?{Modfier|0} @{PlayerQueryRoll} Deceive Test">
  995.                     <input type="number" name="attr_Deceive" value="floor(@{Deceive_char}*@{Deceive_Train}+@{Deceive_mod})" disabled="true"/>
  996.                 </button></td>
  997.                     </tr>
  998.                    
  999.                     <tr>
  1000.                         <td style="width:55%">Disguise</td>
  1001.                         <td style="width:10%">
  1002.             <select name="attr_Disguise_char" style="width:100%" class="sheet-input-selectbox" >
  1003.                                 <option value="@{wsFinal}">(WS)</option>
  1004.                                 <option value="@{bsFinal}">(BS)</option>
  1005.                                 <option value="@{strengthFinal}">(S)</option>
  1006.                                 <option value="@{toughnessFinal}">(T)</option>
  1007.                                 <option value="@{agFinal}">(Ag)</option>
  1008.                                 <option value="@{intFinal}">(Int)</option>
  1009.                                 <option value="@{perFinal}" >(Per)</option>
  1010.                                 <option value="@{wpFinal}">(Wp)</option>
  1011.                                 <option value="@{felFinal}" selected>(Fel)</option>
  1012.             </select>
  1013.                         </td>
  1014.                         <td style="width:15%"> <select name="attr_Disguise_Train" style="width:100%" class="sheet-input-selectbox">
  1015.                 <option value="0.5" selected>No</option>
  1016.                 <option value="1">Yes</option>
  1017.                 <option value="1+10">+10</option>
  1018.                 <option value="1+20">+20</option>
  1019.             </select></td>
  1020.                         <td style="width:10%"><input type="number" name="attr_Disguise_mod" value="0" /></td>
  1021.                         <td style="width:10%"><button type="roll" name="roll_Disguise" value="!warroll [[@{Disguise}]] ?{Modfier|0} @{PlayerQueryRoll} Disguise Test">
  1022.                     <input type="number" name="attr_Disguise" value="floor(@{Disguise_char}*@{Disguise_Train}+@{Disguise_mod})" disabled="true"/>
  1023.                 </button></td>
  1024.                     </tr>
  1025.                    
  1026.                     <tr>
  1027.                         <td style="width:55%">Dodge</td>
  1028.                         <td style="width:10%">
  1029.             <select name="attr_Dodge_char" style="width:100%" class="sheet-input-selectbox" >
  1030.                                 <option value="@{wsFinal}">(WS)</option>
  1031.                                 <option value="@{bsFinal}">(BS)</option>
  1032.                                 <option value="@{strengthFinal}">(S)</option>
  1033.                                 <option value="@{toughnessFinal}">(T)</option>
  1034.                                 <option value="@{agFinal}" selected>(Ag)</option>
  1035.                                 <option value="@{intFinal}">(Int)</option>
  1036.                                 <option value="@{perFinal}" >(Per)</option>
  1037.                                 <option value="@{wpFinal}">(Wp)</option>
  1038.                                 <option value="@{felFinal}">(Fel)</option>
  1039.             </select>
  1040.                         </td>
  1041.                         <td style="width:15%"> <select name="attr_Dodge_Train" style="width:100%" class="sheet-input-selectbox">
  1042.                 <option value="0.5" selected>No</option>
  1043.                 <option value="1">Yes</option>
  1044.                 <option value="1+10">+10</option>
  1045.                 <option value="1+20">+20</option>
  1046.             </select></td>
  1047.                         <td style="width:10%"><input type="number" name="attr_Dodge_mod" value="0" /></td>
  1048.                         <td style="width:10%"><button type="roll" name="roll_Dodge" value="!warroll [[@{Dodge}]] ?{Modfier|0} @{PlayerQueryRoll} Dodge Test">
  1049.                     <input type="number" name="attr_Dodge" value="floor(@{Dodge_char}*@{Dodge_Train}+@{Dodge_mod})" disabled="true"/>
  1050.                 </button></td>
  1051.                     </tr>
  1052.                    
  1053.                     <tr>
  1054.                         <td style="width:55%">Evaluate</td>
  1055.                         <td style="width:10%">
  1056.             <select name="attr_Evaluate_char" style="width:100%" class="sheet-input-selectbox" >
  1057.                                 <option value="@{wsFinal}">(WS)</option>
  1058.                                 <option value="@{bsFinal}">(BS)</option>
  1059.                                 <option value="@{strengthFinal}">(S)</option>
  1060.                                 <option value="@{toughnessFinal}">(T)</option>
  1061.                                 <option value="@{agFinal}">(Ag)</option>
  1062.                                 <option value="@{intFinal}" selected>(Int)</option>
  1063.                                 <option value="@{perFinal}" >(Per)</option>
  1064.                                 <option value="@{wpFinal}">(Wp)</option>
  1065.                                 <option value="@{felFinal}">(Fel)</option>
  1066.             </select>
  1067.                         </td>
  1068.                         <td style="width:15%"> <select name="attr_Evaluate_Train" style="width:100%" class="sheet-input-selectbox">
  1069.                 <option value="0.5" selected>No</option>
  1070.                 <option value="1">Yes</option>
  1071.                 <option value="1+10">+10</option>
  1072.                 <option value="1+20">+20</option>
  1073.             </select></td>
  1074.                         <td style="width:10%"><input type="number" name="attr_Evaluate_mod" value="0" /></td>
  1075.                         <td style="width:10%"><button type="roll" name="roll_Evaluate" value="!warroll [[@{Evaluate}]] ?{Modfier|0} @{PlayerQueryRoll} Evaluate Test">
  1076.                     <input type="number" name="attr_Evaluate" value="floor(@{Evaluate_char}*@{Evaluate_Train}+@{Evaluate_mod})" disabled="true"/>
  1077.                 </button></td>
  1078.                     </tr>
  1079.                    
  1080.                     <tr>
  1081.                         <td style="width:55%">Gamble</td>
  1082.                         <td style="width:10%">
  1083.             <select name="attr_Gamble_char" style="width:100%" class="sheet-input-selectbox" >
  1084.                                 <option value="@{wsFinal}">(WS)</option>
  1085.                                 <option value="@{bsFinal}">(BS)</option>
  1086.                                 <option value="@{strengthFinal}">(S)</option>
  1087.                                 <option value="@{toughnessFinal}">(T)</option>
  1088.                                 <option value="@{agFinal}">(Ag)</option>
  1089.                                 <option value="@{intFinal}" selected>(Int)</option>
  1090.                                 <option value="@{perFinal}" >(Per)</option>
  1091.                                 <option value="@{wpFinal}">(Wp)</option>
  1092.                                 <option value="@{felFinal}">(Fel)</option>
  1093.             </select>
  1094.                         </td>
  1095.                         <td style="width:15%"> <select name="attr_Gamble_Train" style="width:100%" class="sheet-input-selectbox">
  1096.                 <option value="0.5" selected>No</option>
  1097.                 <option value="1">Yes</option>
  1098.                 <option value="1+10">+10</option>
  1099.                 <option value="1+20">+20</option>
  1100.             </select></td>
  1101.                         <td style="width:10%"><input type="number" name="attr_Gamble_mod" value="0" /></td>
  1102.                         <td style="width:10%"><button type="roll" name="roll_Gamble" value="!warroll [[@{Gamble}]] ?{Modfier|0} @{PlayerQueryRoll} Gamble Test">
  1103.                     <input type="number" name="attr_Gamble" value="floor(@{Gamble_char}*@{Gamble_Train}+@{Gamble_mod})" disabled="true"/>
  1104.                 </button></td>
  1105.                     </tr>
  1106.                    
  1107.                     <tr>
  1108.                         <td style="width:55%">Inquiry</td>
  1109.                         <td style="width:10%">
  1110.             <select name="attr_Inquiry_char" style="width:100%" class="sheet-input-selectbox" >
  1111.                                 <option value="@{wsFinal}">(WS)</option>
  1112.                                 <option value="@{bsFinal}">(BS)</option>
  1113.                                 <option value="@{strengthFinal}">(S)</option>
  1114.                                 <option value="@{toughnessFinal}">(T)</option>
  1115.                                 <option value="@{agFinal}">(Ag)</option>
  1116.                                 <option value="@{intFinal}">(Int)</option>
  1117.                                 <option value="@{perFinal}" >(Per)</option>
  1118.                                 <option value="@{wpFinal}">(Wp)</option>
  1119.                                 <option value="@{felFinal}" selected>(Fel)</option>
  1120.             </select>
  1121.                         </td>
  1122.                         <td style="width:15%"> <select name="attr_Inquiry_Train" style="width:100%" class="sheet-input-selectbox">
  1123.                 <option value="0.5" selected>No</option>
  1124.                 <option value="1">Yes</option>
  1125.                 <option value="1+10">+10</option>
  1126.                 <option value="1+20">+20</option>
  1127.             </select></td>
  1128.                         <td style="width:10%"><input type="number" name="attr_Inquiry_mod" value="0" /></td>
  1129.                         <td style="width:10%"><button type="roll" name="roll_Inquiry" value="!warroll [[@{Inquiry}]] ?{Modfier|0} @{PlayerQueryRoll} Inquiry Test">
  1130.                     <input type="number" name="attr_Inquiry" value="floor(@{Inquiry_char}*@{Inquiry_Train}+@{Inquiry_mod})" disabled="true"/>
  1131.                 </button></td>
  1132.                     </tr>
  1133.                    
  1134.                     <tr>
  1135.                         <td style="width:55%">Intimidate</td>
  1136.                         <td style="width:10%">
  1137.             <select name="attr_Intimidate_char" style="width:100%" class="sheet-input-selectbox" >
  1138.                                 <option value="@{wsFinal}">(WS)</option>
  1139.                                 <option value="@{bsFinal}">(BS)</option>
  1140.                                 <option value="@{strengthFinal}" selected>(S)</option>
  1141.                                 <option value="@{toughnessFinal}">(T)</option>
  1142.                                 <option value="@{agFinal}">(Ag)</option>
  1143.                                 <option value="@{intFinal}">(Int)</option>
  1144.                                 <option value="@{perFinal}" >(Per)</option>
  1145.                                 <option value="@{wpFinal}">(Wp)</option>
  1146.                                 <option value="@{felFinal}">(Fel)</option>
  1147.             </select>
  1148.                         </td>
  1149.                         <td style="width:15%"> <select name="attr_Intimidate_Train" style="width:100%" class="sheet-input-selectbox">
  1150.                 <option value="0.5" selected>No</option>
  1151.                 <option value="1">Yes</option>
  1152.                 <option value="1+10">+10</option>
  1153.                 <option value="1+20">+20</option>
  1154.             </select></td>
  1155.                         <td style="width:10%"><input type="number" name="attr_Intimidate_mod" value="0" /></td>
  1156.                         <td style="width:10%"><button type="roll" name="roll_Intimidate" value="!warroll [[@{Intimidate}]] ?{Modfier|0} @{PlayerQueryRoll} Intimidate Test">
  1157.                     <input type="number" name="attr_Intimidate" value="floor(@{Intimidate_char}*@{Intimidate_Train}+@{Intimidate_mod})" disabled="true"/>
  1158.                 </button></td>
  1159.                     </tr>
  1160.                    
  1161.                     <tr>
  1162.                         <td style="width:55%">Logic</td>
  1163.                         <td style="width:10%">
  1164.             <select name="attr_Logic_char" style="width:100%" class="sheet-input-selectbox" >
  1165.                                 <option value="@{wsFinal}">(WS)</option>
  1166.                                 <option value="@{bsFinal}">(BS)</option>
  1167.                                 <option value="@{strengthFinal}">(S)</option>
  1168.                                 <option value="@{toughnessFinal}">(T)</option>
  1169.                                 <option value="@{agFinal}">(Ag)</option>
  1170.                                 <option value="@{intFinal}" selected>(Int)</option>
  1171.                                 <option value="@{perFinal}" >(Per)</option>
  1172.                                 <option value="@{wpFinal}">(Wp)</option>
  1173.                                 <option value="@{felFinal}">(Fel)</option>
  1174.             </select>
  1175.                         </td>
  1176.                         <td style="width:15%"> <select name="attr_Logic_Train" style="width:100%" class="sheet-input-selectbox">
  1177.                 <option value="0.5" selected>No</option>
  1178.                 <option value="1">Yes</option>
  1179.                 <option value="1+10">+10</option>
  1180.                 <option value="1+20">+20</option>
  1181.             </select></td>
  1182.                         <td style="width:10%"><input type="number" name="attr_Logic_mod" value="0" /></td>
  1183.                         <td style="width:10%"><button type="roll" name="roll_Logic" value="!warroll [[@{Logic}]] ?{Modfier|0} @{PlayerQueryRoll} Logic Test">
  1184.                     <input type="number" name="attr_Logic" value="floor(@{Logic_char}*@{Logic_Train}+@{Logic_mod})" disabled="true"/>
  1185.                 </button></td>
  1186.                     </tr>
  1187.                    
  1188.                     <tr>
  1189.                         <td style="width:55%">Scrutiny</td>
  1190.                         <td style="width:10%">
  1191.             <select name="attr_Scrutiny_char" style="width:100%" class="sheet-input-selectbox" >
  1192.                                 <option value="@{wsFinal}">(WS)</option>
  1193.                                 <option value="@{bsFinal}">(BS)</option>
  1194.                                 <option value="@{strengthFinal}">(S)</option>
  1195.                                 <option value="@{toughnessFinal}">(T)</option>
  1196.                                 <option value="@{agFinal}">(Ag)</option>
  1197.                                 <option value="@{intFinal}">(Int)</option>
  1198.                                 <option value="@{perFinal}" selected>(Per)</option>
  1199.                                 <option value="@{wpFinal}">(Wp)</option>
  1200.                                 <option value="@{felFinal}">(Fel)</option>
  1201.             </select>
  1202.                         </td>
  1203.                         <td style="width:15%"> <select name="attr_Scrutiny_Train" style="width:100%" class="sheet-input-selectbox">
  1204.                 <option value="0.5" selected>No</option>
  1205.                 <option value="1">Yes</option>
  1206.                 <option value="1+10">+10</option>
  1207.                 <option value="1+20">+20</option>
  1208.             </select></td>
  1209.                         <td style="width:10%"><input type="number" name="attr_Scrutiny_mod" value="0" /></td>
  1210.                         <td style="width:10%"><button type="roll" name="roll_Scrutiny" value="!warroll [[@{Scrutiny}]] ?{Modfier|0} @{PlayerQueryRoll} Scrutiny Test">
  1211.                     <input type="number" name="attr_Scrutiny" value="floor(@{Scrutiny_char}*@{Scrutiny_Train}+@{Scrutiny_mod})" disabled="true"/>
  1212.                 </button></td>
  1213.                     </tr>
  1214.                    
  1215.                     <tr>
  1216.                         <td style="width:55%">Search</td>
  1217.                         <td style="width:10%">
  1218.             <select name="attr_Search_char" style="width:100%" class="sheet-input-selectbox" >
  1219.                                 <option value="@{wsFinal}">(WS)</option>
  1220.                                 <option value="@{bsFinal}">(BS)</option>
  1221.                                 <option value="@{strengthFinal}">(S)</option>
  1222.                                 <option value="@{toughnessFinal}">(T)</option>
  1223.                                 <option value="@{agFinal}">(Ag)</option>
  1224.                                 <option value="@{intFinal}">(Int)</option>
  1225.                                 <option value="@{perFinal}" selected>(Per)</option>
  1226.                                 <option value="@{wpFinal}">(Wp)</option>
  1227.                                 <option value="@{felFinal}">(Fel)</option>
  1228.             </select>
  1229.                         </td>
  1230.                         <td style="width:15%"> <select name="attr_Search_Train" style="width:100%" class="sheet-input-selectbox">
  1231.                 <option value="0.5" selected>No</option>
  1232.                 <option value="1">Yes</option>
  1233.                 <option value="1+10">+10</option>
  1234.                 <option value="1+20">+20</option>
  1235.             </select></td>
  1236.                         <td style="width:10%"><input type="number" name="attr_Search_mod" value="0" /></td>
  1237.                         <td style="width:10%"><button type="roll" name="roll_Search" value="!warroll [[@{Search}]] ?{Modfier|0} @{PlayerQueryRoll} Search Test">
  1238.                     <input type="number" name="attr_Search" value="floor(@{Search_char}*@{Search_Train}+@{Search_mod})" disabled="true"/>
  1239.                 </button></td>
  1240.                     </tr>
  1241.                    
  1242.                     <tr>
  1243.                         <td style="width:55%">Silent Move</td>
  1244.                         <td style="width:10%">
  1245.             <select name="attr_SilentMove_char" style="width:100%" class="sheet-input-selectbox" >
  1246.                                 <option value="@{wsFinal}">(WS)</option>
  1247.                                 <option value="@{bsFinal}">(BS)</option>
  1248.                                 <option value="@{strengthFinal}">(S)</option>
  1249.                                 <option value="@{toughnessFinal}">(T)</option>
  1250.                                 <option value="@{agFinal}" selected>(Ag)</option>
  1251.                                 <option value="@{intFinal}">(Int)</option>
  1252.                                 <option value="@{perFinal}" >(Per)</option>
  1253.                                 <option value="@{wpFinal}">(Wp)</option>
  1254.                                 <option value="@{felFinal}">(Fel)</option>
  1255.             </select>
  1256.                         </td>
  1257.                         <td style="width:15%"> <select name="attr_SilentMove_Train" style="width:100%" class="sheet-input-selectbox">
  1258.                 <option value="0.5" selected>No</option>
  1259.                 <option value="1">Yes</option>
  1260.                 <option value="1+10">+10</option>
  1261.                 <option value="1+20">+20</option>
  1262.             </select></td>
  1263.                         <td style="width:10%"><input type="number" name="attr_SilentMove_mod" value="0" /></td>
  1264.                         <td style="width:10%"><button type="roll" name="roll_SilentMove" value="!warroll [[@{SilentMove}]] ?{Modfier|0} @{PlayerQueryRoll} Silent Move Test">
  1265.                     <input type="number" name="attr_SilentMove" value="floor(@{SilentMove_char}*@{SilentMove_Train}+@{SilentMove_mod})" disabled="true"/>
  1266.                 </button></td>
  1267.                     </tr>
  1268.                    
  1269.                     <tr>
  1270.                         <td style="width:55%">Swim</td>
  1271.                         <td style="width:10%">
  1272.             <select name="attr_Swim_char" style="width:100%" class="sheet-input-selectbox" >
  1273.                                 <option value="@{wsFinal}">(WS)</option>
  1274.                                 <option value="@{bsFinal}">(BS)</option>
  1275.                                 <option value="@{strengthFinal}" selected>(S)</option>
  1276.                                 <option value="@{toughnessFinal}">(T)</option>
  1277.                                 <option value="@{agFinal}">(Ag)</option>
  1278.                                 <option value="@{intFinal}">(Int)</option>
  1279.                                 <option value="@{perFinal}" >(Per)</option>
  1280.                                 <option value="@{wpFinal}">(Wp)</option>
  1281.                                 <option value="@{felFinal}">(Fel)</option>
  1282.             </select>
  1283.                         </td>
  1284.                         <td style="width:15%"> <select name="attr_Swim_Train" style="width:100%" class="sheet-input-selectbox">
  1285.                 <option value="0.5" selected>No</option>
  1286.                 <option value="1">Yes</option>
  1287.                 <option value="1+10">+10</option>
  1288.                 <option value="1+20">+20</option>
  1289.             </select></td>
  1290.                         <td style="width:10%"><input type="number" name="attr_Swim_mod" value="0" /></td>
  1291.                         <td style="width:10%"><button type="roll" name="roll_Swim" value="!warroll [[@{Swim}]] ?{Modfier|0} @{PlayerQueryRoll} Swim Test">
  1292.                     <input type="number" name="attr_Swim" value="floor(@{Swim_char}*@{Swim_Train}+@{Swim_mod})" disabled="true"/>
  1293.                 </button></td>
  1294.                     </tr>
  1295.                     </table>
  1296.  
  1297.                 <fieldset class="repeating_basicskills" name="attr_repeating_basicskills">
  1298.                     <table style="width:100%">
  1299.                     <tr>
  1300.                         <td style="width:55%">
  1301.                                         <input class="sheet-baseinfo" type="text" name="attr_CustomSkillName" /></td>
  1302.                         <td style="width:10%">
  1303.             <select name="attr_CustomSkill_char" style="width:100%" class="sheet-input-selectbox" >
  1304.                                 <option value="@{wsFinal}">(WS)</option>
  1305.                                 <option value="@{bsFinal}">(BS)</option>
  1306.                                 <option value="@{strengthFinal}">(S)</option>
  1307.                                 <option value="@{toughnessFinal}">(T)</option>
  1308.                                 <option value="@{agFinal}">(Ag)</option>
  1309.                                 <option value="@{intFinal}">(Int)</option>
  1310.                                 <option value="@{perFinal}" selected>(Per)</option>
  1311.                                 <option value="@{wpFinal}">(Wp)</option>
  1312.                                 <option value="@{felFinal}">(Fel)</option>
  1313.             </select>
  1314.                         </td>
  1315.                         <td style="width:15%"> <select name="attr_CustomSkill_Train" style="width:100%" class="sheet-input-selectbox">
  1316.                 <option value="0.5" selected>No</option>
  1317.                 <option value="1">Yes</option>
  1318.                 <option value="1+10">+10</option>
  1319.                 <option value="1+20">+20</option>
  1320.             </select></td>
  1321.                         <td style="width:10%"><input type="number" name="attr_CustomSkill_mod" value="0" /></td>
  1322.                         <td style="width:10%"><button type="roll" name="roll_CustomSkill" value="!warroll [[@{CustomSkill}]] ?{Modfier|0} @{PlayerQueryRoll} @{CustomSkillName} Test">
  1323.                     <input type="number" name="attr_CustomSkill" value="floor(@{CustomSkill_char}*@{CustomSkill_Train}+@{CustomSkill_mod})" disabled="true"/>
  1324.                 </button></td>
  1325.                     </tr>
  1326.                     </table>
  1327.                 </fieldset>
  1328.  
  1329.  
  1330.             </div>
  1331.            
  1332.             <div class="sheet-col" style="width:2%">
  1333.             </div>
  1334.             <!-- Right Column -->
  1335.             <div class="sheet-col sheet-skills" style="width:48%">
  1336.                 <div>
  1337.                 <h3>Advanced Skills</h3>
  1338.                 <table style="width:100%">
  1339.                     <tr>
  1340.                         <th>Skill Name</th>
  1341.                         <th>Char.</th>
  1342.                         <th>Trained?</th>
  1343.                         <th>Mod</th>
  1344.                         <th>Roll</th>
  1345.                     </tr>
  1346.                    
  1347.                     <tr>
  1348.                         <td style="width:55%; text-align:left">Speak Language (Low Gothic)</td>
  1349.                         <td style="width:10%">
  1350.             <select name="attr_SpeakLanguageLowGothic_char" style="width:100%" class="sheet-input-selectbox" >
  1351.                                 <option value="@{wsFinal}">(WS)</option>
  1352.                                 <option value="@{bsFinal}">(BS)</option>
  1353.                                 <option value="@{strengthFinal}">(S)</option>
  1354.                                 <option value="@{toughnessFinal}">(T)</option>
  1355.                                 <option value="@{agFinal}">(Ag)</option>
  1356.                                 <option value="@{intFinal}" selected>(Int)</option>
  1357.                                 <option value="@{perFinal}" >(Per)</option>
  1358.                                 <option value="@{wpFinal}">(Wp)</option>
  1359.                                 <option value="@{felFinal}">(Fel)</option>
  1360.             </select>
  1361.                         </td>
  1362.                         <td style="width:15%"> <select name="attr_SpeakLanguageLowGothic_Train" style="width:100%" class="sheet-input-selectbox">
  1363.                 <option value="0.5" selected>No</option>
  1364.                 <option value="1">Yes</option>
  1365.                 <option value="1+10">+10</option>
  1366.                 <option value="1+20">+20</option>
  1367.             </select></td>
  1368.                         <td style="width:10%"><input type="number" name="attr_SpeakLanguageLowGothic_mod" value="0" /></td>
  1369.                         <td style="width:10%"><button type="roll" name="roll_SpeakLanguageLowGothic" value="!warroll [[@{SpeakLanguageLowGothic}]] ?{Modfier|0} @{PlayerQueryRoll} Speak Language (Low Gothic) Test">
  1370.                     <input type="number" name="attr_SpeakLanguageLowGothic" value="floor(@{SpeakLanguageLowGothic_char}*@{SpeakLanguageLowGothic_Train}+@{SpeakLanguageLowGothic_mod})" disabled="true"/>
  1371.                 </button></td>
  1372.                     </tr>
  1373.                     <tr>
  1374.                         <td style="width:55%; text-align:left">Psyniscience</td>
  1375.                         <td style="width:10%">
  1376.             <select name="attr_Psyniscience_char" style="width:100%" class="sheet-input-selectbox" >
  1377.                                 <option value="@{wsFinal}">(WS)</option>
  1378.                                 <option value="@{bsFinal}">(BS)</option>
  1379.                                 <option value="@{strengthFinal}">(S)</option>
  1380.                                 <option value="@{toughnessFinal}">(T)</option>
  1381.                                 <option value="@{agFinal}">(Ag)</option>
  1382.                                 <option value="@{intFinal}" >(Int)</option>
  1383.                                 <option value="@{perFinal}" >(Per)</option>
  1384.                                 <option value="@{wpFinal}" selected>(Wp)</option>
  1385.                                 <option value="@{felFinalFinal}">(Fel)</option>
  1386.             </select>
  1387.                         </td>
  1388.                         <td style="width:15%"> <select name="attr_Psyniscience_Train" style="width:100%" class="sheet-input-selectbox">
  1389.                 <option value="0.5" selected>No</option>
  1390.                 <option value="1">Yes</option>
  1391.                 <option value="1+10">+10</option>
  1392.                 <option value="1+20">+20</option>
  1393.             </select></td>
  1394.                         <td style="width:10%"><input type="number" name="attr_Psyniscience_mod" value="0" /></td>
  1395.                         <td style="width:10%"><button type="roll" name="roll_PsyniscienceTest" value="!warroll @{Psyniscience} ?{Modfier|0} @{PlayerQueryRoll} Psyniscience Test">
  1396.                     <input type="number" name="attr_Psyniscience" value="[[ floor(@{Psyniscience_char}*@{Psyniscience_Train}+@{Psyniscience_mod}) ]]" disabled="true"/>
  1397.                 </button></td>
  1398.                     </tr>
  1399.                     </table>
  1400.                 <fieldset class="repeating_advancedskills" name="attr_repeating_advancedskills">
  1401.                     <table style="width:100%">
  1402.                     <tr>
  1403.                         <td style="width:55%">
  1404.                                         <input class="sheet-baseinfo" type="text" name="attr_CustomAdvancedSkillName" /></td>
  1405.                         <td style="width:10%">
  1406.             <select name="attr_CustomAdvancedSkill_char" style="width:100%" class="sheet-input-selectbox" >
  1407.                                 <option value="@{wsFinal}">(WS)</option>
  1408.                                 <option value="@{bsFinal}">(BS)</option>
  1409.                                 <option value="@{strengthFinal}">(S)</option>
  1410.                                 <option value="@{toughnessFinal}">(T)</option>
  1411.                                 <option value="@{agFinal}">(Ag)</option>
  1412.                                 <option value="@{intFinal}">(Int)</option>
  1413.                                 <option value="@{perFinal}" selected>(Per)</option>
  1414.                                 <option value="@{wpFinal}">(Wp)</option>
  1415.                                 <option value="@{felFinal}">(Fel)</option>
  1416.             </select>
  1417.                         </td>
  1418.                         <td style="width:15%"> <select name="attr_CustomAdvancedSkill_Train" style="width:100%" class="sheet-input-selectbox">
  1419.                 <option value="0.5" selected>No</option>
  1420.                 <option value="1">Yes</option>
  1421.                 <option value="1+10">+10</option>
  1422.                 <option value="1+20">+20</option>
  1423.             </select></td>
  1424.                         <td style="width:10%"><input type="number" name="attr_CustomAdvancedSkill_mod" value="0" /></td>
  1425.                         <td style="width:10%"><button type="roll" name="roll_CustomAdvancedSkill" value="!warroll [[@{CustomAdvancedSkill}]] ?{Modfier|0} @{PlayerQueryRoll} @{CustomAdvancedSkillName} Test">
  1426.                     <input type="number" name="attr_CustomAdvancedSkill" value="floor(@{CustomAdvancedSkill_char}*@{CustomAdvancedSkill_Train}+@{CustomAdvancedSkill_mod})" disabled="true"/>
  1427.                 </button></td>
  1428.                     </tr>
  1429.                     </table>
  1430.                 </fieldset>
  1431.                
  1432.                 </div>
  1433.                 <hr>
  1434.  
  1435.                 <!-- ATTENTION PSYKERS AHEAD! -->
  1436.            
  1437.         <!-- XP -->
  1438.  
  1439.     </div>
  1440.         <!-- Charsheet End -->
  1441.     </div>
  1442. </div>
  1443. </div>
  1444.  
  1445.  
  1446. <div class="sheet-tab-content sheet-tabInformation">
  1447.         <h1>Information</h1>
  1448.     <div class="sheet-wrapper">
  1449.     <div class="sheet-col" style="width:49%;">
  1450.     <h3>Settings</h3>
  1451.                     <div class="sheet-item sheet-med"><label style="text-align:right">Rolls Setting</label></div>
  1452.                     <div class="sheet-item sheet-small">
  1453.         <select name="attr_PlayerQueryRoll" style="width:90%" class="sheet-input-selectbox" >
  1454.                                 <option value="?{Public, Private or OnlyGM?|Public,0|Private,2|OnlyGM,1}" >Query</option>
  1455.                                 <option value="0" selected>Public</option>
  1456.                                 <option value="2">Private</option>
  1457.                                 <option value="1" >GM Only</option>
  1458.         </select></div>
  1459.         </div>
  1460.         <div class="sheet-col" style="width:49%;">
  1461.                     <h3>Renown</h3>
  1462.                     <div style="width:100%;text-align:center">
  1463.                         <div style="text-align:center">
  1464.                             <div class="sheet-col">
  1465.                                 <label>Renown Points: </label>
  1466.                             </div>
  1467.                             <div class="sheet-col" style="width:20%;">
  1468.                                 <input type="number" name="attr_Renownpoints" value="0" style="width:90%;text-align:center" />
  1469.                             </div>
  1470.                         </div>
  1471.                         <div  style="text-align:center">
  1472.                             <div class="sheet-col">
  1473.                                 <label>Renown Rank: </label>
  1474.                             </div>
  1475.                             <div class="sheet-col" style="width:50%;">
  1476.             <select name="attr_Renownrank" style="width:100%" class="sheet-input-selectbox" >
  1477.                                 <option value="0" selected>Initiated (0-19)</option>
  1478.                                 <option value="1">Respected (20-39)</option>
  1479.                                 <option value="2">Distinguished (40-59)</option>
  1480.                                 <option value="3">Famed (60-79)</option>
  1481.                                 <option value="4">Hero (80+)</option>
  1482.             </select>
  1483.                             </div>
  1484.                         </div>
  1485.                     </div>
  1486.         </div>
  1487.         <hr>
  1488.         <div style="text-align:center">    
  1489.             <div class="sheet-col" style="width:100%;" >
  1490.                 <div class="sheet-col" style="width:49%;">
  1491.                     <h3>Insanity</h3>
  1492.                     <div style="width:100%;text-align:center">
  1493.                         <div style="text-align:center">
  1494.                             <div class="sheet-col">
  1495.                                 <label>Insanity Points: </label>
  1496.                             </div>
  1497.                             <div class="sheet-col" style="width:20%;">
  1498.                                 <input type="number" name="attr_insanitypoints" value="0" style="width:90%;text-align:center" />
  1499.                             </div>
  1500.                         </div>
  1501.                         <div  style="text-align:center">
  1502.                             <div class="sheet-col">
  1503.                                 <label>Degree of Madness: </label>
  1504.                             </div>
  1505.                             <div class="sheet-col" style="width:50%;">
  1506.             <select name="attr_degreeofinsanity" style="width:100%" class="sheet-input-selectbox" >
  1507.                                 <option value="0" selected>Stable (0-30); Trauma: +0</option>
  1508.                                 <option value="1">Disturbed (31-60); Trauma: -10</option>
  1509.                                 <option value="3">Unhinged (61-90); Trauma: -20</option>
  1510.                                 <option value="4">Deranged (91-99); Trauma: -30</option>
  1511.                                 <option value="5">Terminally Insane (GAME OVER)</option>
  1512.             </select>
  1513.                             </div>
  1514.                         </div>
  1515.                     </div>
  1516.                     <textarea name="attr_disorders" placeholder="Battle Traumas" style="width:90%; margin:auto; height:50px;"></textarea>
  1517.                 </div>
  1518.                 <div class="sheet-col" style="width:49%;">
  1519.                     <h3>Corruption</h3>
  1520.                     <div style="width:100%;text-align:center">
  1521.                         <div style="text-align:center">
  1522.                             <div class="sheet-col">
  1523.                                 <label>Corruption Points: </label>
  1524.                             </div>
  1525.                             <div class="sheet-col" style="width:20%;">
  1526.                                 <input type="number" name="attr_corruptionpoints" value="0" style="width:90%;text-align:center" />
  1527.                             </div>
  1528.                         </div>
  1529.                         <div  style="text-align:center">
  1530.                             <div class="sheet-col">
  1531.                                 <label>Degree of Corruption: </label>
  1532.                             </div>
  1533.                             <div class="sheet-col" style="width:50%;">
  1534.             <select name="attr_degreeofcorruption" style="width:100%" class="sheet-input-selectbox" >
  1535.                                 <option value="0" selected>Untainted (0-99) :)</option>
  1536.                                 <option value="5">Damned (GAME OVER)</option>
  1537.             </select>
  1538.                             </div>
  1539.                         </div>
  1540.                     </div>
  1541.                     <textarea name="attr_malignancies" placeholder="Information" style="width:90%; margin:auto; height:50px;"></textarea>
  1542.                 </div>
  1543.             </div>
  1544.                 </div>
  1545.         <div style="text-align:center">    
  1546.             <br>
  1547.             <div class="sheet-col" style="width:100%;" >
  1548.                 <div class="sheet-col" style="width:100%;">
  1549.                     <h3>Primarch's Curse</h3>
  1550.                     <div style="width:100%;text-align:center">
  1551.                                 <label style="width:100%;text-align:center">Level 1 (30): </label>
  1552.                     <div class="sheet-item" style="width:85%;text-align:center"><input type="text" style="text-align:center" placeholder="Name" name="attr_primarchCurseLevel1Name" /></div>
  1553.                             <textarea name="attr_primarchCurseLevel1Desc" placeholder="Description" style="width:90%; height:50px"></textarea>
  1554.                                 <label style="width:100%;text-align:center">Level 2 (60): </label>
  1555.                     <div class="sheet-item" style="width:85%;text-align:center"><input type="text" style="text-align:center" placeholder="Name" name="attr_primarchCurseLevel2Name" /></div>
  1556.                             <textarea name="attr_primarchCurseLevel2Desc" placeholder="Description" style="width:90%; height:50px"></textarea>
  1557.                                 <label style="width:100%;text-align:center">Level 3 (90): </label>
  1558.                     <div class="sheet-item" style="width:85%;text-align:center"><input type="text" style="text-align:center" placeholder="Name" name="attr_primarchCurseLevel3Name" /></div>
  1559.                             <textarea name="attr_primarchCurseLevel3Desc" placeholder="Description" style="width:90%; height:50px"></textarea>
  1560.                     </div>
  1561.                 </div>
  1562.             </div>
  1563.             <hr>
  1564.             <div class="sheet-col" style="width:100%;" >
  1565.                 <div class="sheet-col" style="width:49%;">
  1566.                     <h3>Personality & Demeanours</h3>
  1567.                    <textarea name="attr_charPersonality" placeholder="Personality" style="width:90%; margin:auto; height:150px;"></textarea>
  1568.                 </div>
  1569.                 <div class="sheet-col" style="width:49%;">
  1570.                     <h3>Description & Gene-Seed</h3>
  1571.                    <textarea name="attr_charDescription" placeholder="Description" style="width:90%; margin:auto; height:150px;"></textarea>
  1572.                 </div>
  1573.             </div>
  1574.             <hr>
  1575.             <h3>History & Past Events</h3>
  1576.             <textarea name="attr_CharacterHistory" placeholder="History" style="height:300px; width:90%" ></textarea>
  1577.             <hr>
  1578.             <h3>Notes</h3>
  1579.             <textarea name="attr_CharacterNotes" placeholder="Notes" style="height:200px; width:90%" ></textarea>          
  1580.            
  1581.         </div>
  1582.     </div>
  1583. </div>
  1584.  
  1585. <div class="sheet-tab-content sheet-tabAbilities">
  1586.         <h1>Abilities</h1>
  1587.     <div class="sheet-wrapper">
  1588.         <div>
  1589.     <div class="sheet-col" style="width:45%">
  1590.                 <h3>Talents & Traits</h3>
  1591.  
  1592.                <fieldset class="repeating_talents">
  1593.                     <div style="width:100%">
  1594.                    <div class="sheet-item" style="width:85%"><input type="text" placeholder="Name" name="attr_reptalent" /></div>
  1595.                     <input type="checkbox" class="sheet-arrow" name="attr_reptalentDescHide"/><span></span>
  1596.                         <div class="sheet-body">
  1597.                             <textarea name="attr_reptalentdesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  1598.                         </div>                 
  1599.                     </div>
  1600.                 </fieldset>
  1601.                 <hr>
  1602.                 <h3>Implants</h3>
  1603.                 <fieldset class="repeating_implants">
  1604.                     <div style="width:100%">
  1605.                     <div class="sheet-item" style="width:85%"><input type="text" placeholder="Name" name="attr_repimplant" /></div>
  1606.                     <input type="checkbox" class="sheet-arrow" name="attr_repimplantDescHide"/><span></span>
  1607.                         <div class="sheet-body">
  1608.                             <textarea name="attr_repimplantdesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  1609.                         </div>                 
  1610.                     </div>
  1611.                 </fieldset>
  1612.     </div>
  1613.     <div class="sheet-col" style="width:5%">
  1614.     </div>
  1615.         <div class="sheet-col" style="width:45%">
  1616.                 <h3>Psychic Powers</h3>
  1617.                 <select name="attr_PsyPowersSanctioned" style="width:100%" class="sheet-input-selectbox">
  1618.                 <option value="1" selected>Astropath or Sanctioned Psyker</option>
  1619.                 <option value="0">Renegade Psyker or Sorcerer</option>
  1620.                 </select>
  1621.                 <div style="width:100%">
  1622.                 <select name="attr_PsyPowersSkill" style="width:90%" class="sheet-input-selectbox">
  1623.                 <option value="@{wpFinal}" selected>Willpower</option>
  1624.                 <option value="@{Psyniscience}">Psyniscience</option>
  1625.                 <option value="@{PsyPowerOther}">Other -> </option>
  1626.                 </select><input type="number" name="attr_PsyPowerOther" style="width:10%" value="0" /></div>
  1627.                 <h3>Psy Rating:<div class="sheet-item sheet-tiny"><input type="number" name="attr_psy" value="0" /></div></h3>
  1628.                 <div class="sheet-item sheet-med">
  1629.                     <button type="roll" name="roll_psycicpower_fettered" style="width: 60px" value="!warpsychicroll [[ @{PsyPowersSkill} ]] ?{Modifier?|0} 0 @{psy} ?{Bonus Psy?|0} 0 ?{Sustained Effects?|0} @{PsyPowersSanctioned} @{PlayerQueryRoll} Fettered Power">
  1630.                     <label>Fettered</label>
  1631.                 </button>
  1632.                 </div>
  1633.                 <div class="sheet-item sheet-med">
  1634.                     <button type="roll" name="roll_psycicpower_unfettered" style="width: 70px" value="!warpsychicroll [[ @{PsyPowersSkill} ]] ?{Modifier?|0} 1 @{psy} ?{Bonus Psy?|0} 0 ?{Sustained Effects?|0} @{PsyPowersSanctioned} @{PlayerQueryRoll} Unfettered Power">
  1635.                     <label>Unfettered</label>
  1636.                 </button>
  1637.                 </div>
  1638.                 <div class="sheet-item sheet-med">
  1639.                     <button type="roll" name="roll_psycicpower_push" style="width: 50px" value="!warpsychicroll [[ @{PsyPowersSkill} ]] ?{Modifier?|0} 2 @{psy} ?{Bonus Psy?|0} ?{Push (1-3/4)?|1} ?{Sustained Effects?|0} @{PsyPowersSanctioned} @{PlayerQueryRoll} Push Power">
  1640.                     <label>Push</label>
  1641.                 </button>
  1642.             </div>  
  1643.                 <br>
  1644.                 <!-- Psychic Disciplines -->
  1645.                 <div style="width:100%" >
  1646.                 <h4>Psychic Disciplines</h4>
  1647.                 <fieldset class="repeating_psychicdiscipline">
  1648.                     <div style="width:100%">
  1649.                         <div class="sheet-item2" style="width:37%"><label>Psychic Discipline</label></div>
  1650.                         <div class="sheet-item2 sheet-brackets" style=" width: 50%">
  1651.                             <input type="text" name="attr_reppsychicdiscipline" placeholder="Name" style="width:100%" />
  1652.                         </div>
  1653.                         <input type="checkbox" class="sheet-arrow" name="attr_reppsychicdisciplineDescHide"/><span></span>
  1654.                         <div class="sheet-body">
  1655.                             <textarea name="attr_reppsychicdisciplinedesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  1656.                         </div>
  1657.                     </div>
  1658.                 </fieldset>
  1659.                 </div>
  1660.                
  1661.                 <br>
  1662.                 <!-- Psychic Techniques -->
  1663.                 <div >
  1664.                 <h4>Psychic Techniques</h4>
  1665.                 <fieldset class="repeating_disciplinepsychicpowers">
  1666.                     <div  style="width:100%">
  1667.                         <div class="sheet-item2" style="width:38%"><label>Psychic Technique</label></div>
  1668.                         <div class="sheet-item2  sheet-brackets" style="width:49%"><input type="text" placeholder="Name" name="attr_repdisciplinepsychicpower" /></div>
  1669.                         <input type="checkbox" class="sheet-arrow" name="attr_repdisciplinepsychicpowerDescHide"/><span></span>
  1670.                         <div class="sheet-body">
  1671.                             <textarea name="attr_repdisciplinepsychicpowerdesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  1672.                         </div>
  1673.                     </div>
  1674.                 </fieldset>
  1675.                 </div>
  1676.                 <hr>
  1677.                 <!-- Special Abilities -->
  1678.                 <h3>Special Abilities</h3>
  1679.                 <fieldset class="repeating_abilities">
  1680.                     <div style="width:100%">
  1681.                     <div class="sheet-item" style="width:85%"><input type="text" placeholder="Name" name="attr_repabili" /></div>
  1682.                     <input type="checkbox" class="sheet-arrow" name="attr_repabiliDescHide"/><span></span>
  1683.                         <div class="sheet-body">
  1684.                             <textarea name="attr_repabilidesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  1685.                         </div>                 
  1686.                     </div>
  1687.                 </fieldset>
  1688.             </div>
  1689.             </div>
  1690.         <hr>
  1691.            
  1692.         <div>
  1693.     <div class="sheet-col" style="width:45%">
  1694.  
  1695.         <h3>Deed</h3>
  1696.                 <div>
  1697.                     <div class="sheet-item sheet-small"><label style="text-align:right">Name</label></div>
  1698.                     <div class="sheet-item sheet-large"><input type="text" name="attr_mainSpec" /></div>
  1699.                 </div>
  1700.                 <div>
  1701.                     <div class="sheet-item sheet-small"><label style="text-align:right">Ability</label></div>
  1702.                     <div class="sheet-item sheet-large"><input type="text" name="attr_mainSpecAbility" /></div>
  1703.                     <input type="checkbox" class="sheet-arrow" style="" name="attr_mainSpecAbilityDescHide"/><span></span>
  1704.                         <div class="sheet-body">
  1705.                             <textarea name="attr_mainSpecAbilitydesc" style="width:90%; height:50px"></textarea>
  1706.                         </div>
  1707.                 </div>
  1708.     </div>
  1709.     <div class="sheet-col" style="width:45%">
  1710.  
  1711.         <h3>Distinctions</h3>
  1712.                 <fieldset class="repeating_distinctions">
  1713.                     <div style="width:100%; text-align:center">
  1714.                     <div class="sheet-item" style="width:50%"><input type="text" placeholder="Name" name="attr_repdistinction" /></div>
  1715.                     <input type="checkbox" class="sheet-arrow" name="attr_repdistinctionDescHide"/><span></span>
  1716.                         <div class="sheet-body">
  1717.                             <textarea name="attr_repdistinctiondesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  1718.                         </div>                 
  1719.                     </div>
  1720.                 </fieldset>
  1721.     </div>
  1722.             </div>
  1723.            
  1724.         <div>
  1725.         <hr>
  1726.         <h3>Space Marine Modes</h3>
  1727.     <div class="sheet-col" style="width:45%">
  1728.                 <h3>Solo Modes</h3>
  1729.  
  1730.                 <fieldset class="repeating_solomode">
  1731.                     <div style="width:100%">
  1732.                     <div class="sheet-item" style="width:85%"><input type="text" placeholder="Name" name="attr_repsolomode" /></div>
  1733.                     <input type="checkbox" class="sheet-arrow" name="attr_repsolomodeDescHide"/><span></span>
  1734.                         <div class="sheet-body">
  1735.                             <textarea name="attr_repsolomodedesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  1736.                         </div>                 
  1737.                     </div>
  1738.                 </fieldset>
  1739.     </div>
  1740.     <div class="sheet-col" style="width:5%">
  1741.     </div>
  1742.     <div class="sheet-col" style="width:45%">
  1743.                 <h3>Squad Modes</h3>
  1744.                 <fieldset class="repeating_squadmode">
  1745.                     <div style="width:100%">
  1746.                     <div class="sheet-item" style="width:85%"><input type="text" placeholder="Name" name="attr_repsquadmode" /></div>
  1747.                     <input type="checkbox" class="sheet-arrow" name="attr_repsquadmodeDescHide"/><span></span>
  1748.                         <div class="sheet-body">
  1749.                             <textarea name="attr_repsquadmodedesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  1750.                         </div>                 
  1751.                     </div>
  1752.                 </fieldset>
  1753.             </div>
  1754.             </div>
  1755.         </div>
  1756. </div>
  1757.  
  1758. <div class="sheet-tab-content sheet-tabExperience">
  1759.         <h1>Experience</h1>
  1760.     <div class="sheet-wrapper">
  1761.    
  1762.         <div >
  1763.             <div class="sheet-col" style="width:49%;" >
  1764.                 <h3>Rank Chart</h3>
  1765.                 <table style="margin-left:auto;margin-right:auto; text-align:center">
  1766.                     <tr>
  1767.                         <td><label style="text-align:center; height:auto">Rank<br>Level</label>
  1768.                         </td>
  1769.                         <td style="text-align:center"><label style="text-align:center">Experience</label>
  1770.                         </td>
  1771.                     </tr>
  1772.                     <tr>
  1773.                         <td><label style="text-align:center">1</label>
  1774.                         </td>
  1775.                         <td style="width:100px">13,000-16,999
  1776.                         </td>
  1777.                     </tr>
  1778.                     <tr>
  1779.                         <td><label style="text-align:center">2</label>
  1780.                         </td>
  1781.                         <td style="width:100px">17,000-20,999
  1782.                         </td>
  1783.                     </tr>
  1784.                     <tr>
  1785.                         <td><label style="text-align:center">3</label>
  1786.                         </td>
  1787.                         <td style="width:100px">21,000-24,999
  1788.                         </td>
  1789.                     </tr>
  1790.                     <tr>
  1791.                         <td><label style="text-align:center">4</label>
  1792.                         </td>
  1793.                         <td style="width:100px">25,000-29,999
  1794.                         </td>
  1795.                     </tr>
  1796.                     <tr>
  1797.                         <td><label style="text-align:center">5</label>
  1798.                         </td>
  1799.                         <td style="width:100px">30,000-34,999
  1800.                         </td>
  1801.                     </tr>
  1802.                     <tr>
  1803.                         <td><label style="text-align:center">6</label>
  1804.                         </td>
  1805.                         <td style="width:100px">35,000-39,999
  1806.                         </td>
  1807.                     </tr>
  1808.                     <tr>
  1809.                         <td><label style="text-align:center">7</label>
  1810.                         </td>
  1811.                         <td style="width:100px">40,000-44,999
  1812.                         </td>
  1813.                     </tr>
  1814.                     <tr>
  1815.                         <td><label style="text-align:center">8</label>
  1816.                         </td>
  1817.                         <td style="width:100px">45,000-49,999
  1818.                         </td>
  1819.                     </tr>
  1820.                 </table>
  1821.                 </div>
  1822.             <div class="sheet-col" style="width:49%;" >
  1823.                 <h3>Specialization</h3>
  1824.                 <div>
  1825.                     <div class="sheet-item sheet-small"><label style="text-align:right">Name</label></div>
  1826.                     <div class="sheet-item sheet-large"><input type="text" name="attr_mainSpec" /></div>
  1827.                 </div>
  1828.                 <div>
  1829.                     <div class="sheet-item sheet-small"><label style="text-align:right">Ability</label></div>
  1830.                     <div class="sheet-item sheet-large"><input type="text" name="attr_mainSpecAbility" /></div>
  1831.                     <input type="checkbox" class="sheet-arrow" style="" name="attr_mainSpecAbilityDescHide"/><span></span>
  1832.                         <div class="sheet-body">
  1833.                             <textarea name="attr_mainSpecAbilitydesc" style="width:90%; height:50px"></textarea>
  1834.                         </div>
  1835.                 </div>
  1836.                 <br>
  1837.                 <h3>Additional Specializations</h3>
  1838.                 <fieldset class="repeating_GeneralAdvance" name="attr_repeating_additionalSpec">
  1839.                 <div style="width:100%; text-align:center">
  1840.                     <div class="sheet-item sheet-small"><label style="text-align:right">Name</label></div>
  1841.                     <div class="sheet-item sheet-large"><input type="text" name="attr_additionalSpec" /></div>
  1842.                 </div>
  1843.                 <div>
  1844.                     <div class="sheet-item sheet-small"><label style="text-align:right">Ability</label></div>
  1845.                     <div class="sheet-item sheet-large"><input type="text" name="attradditionalSpecAbility" /></div>
  1846.                     <input type="checkbox" class="sheet-arrow" style="" name="attr_additionalSpecAbilityDescHide"/><span></span>
  1847.                         <div class="sheet-body">
  1848.                             <textarea name="attr_additionalSpecAbilitydesc" style="width:90%; height:50px"></textarea>
  1849.                         </div>
  1850.                         </div>
  1851.                 </fieldset>
  1852.             </div>
  1853.                
  1854.         </div><hr>
  1855.         <div >
  1856.                 <h3>Characteristic Advances</h3>
  1857.                 <table style="margin-left:auto;margin-right:auto">
  1858.                     <tr>
  1859.                         <td style="width:10%">
  1860.                         </td>
  1861.                         <td style="width:15%"><label>Characteristic</label>
  1862.                         </td>
  1863.                         <td style="width:5%"><label>None</label>
  1864.                         </td>
  1865.                         <td style="width:2%">
  1866.                         </td>
  1867.                         <td style="width:13%"><label>Simple</label>
  1868.                         </td>
  1869.                         <td style="width:2%">
  1870.                         </td>
  1871.                         <td style="width:13%"><label>Intermediate</label>
  1872.                         </td>
  1873.                         <td style="width:2%">
  1874.                         </td>
  1875.                         <td style="width:13%"><label>Trained</label>
  1876.                         </td>
  1877.                         <td style="width:2%">
  1878.                         </td>
  1879.                         <td style="width:13%"><label>Expert</label>
  1880.                         </td>
  1881.                         <td style="width:10%">
  1882.                         </td>
  1883.                     </tr>
  1884.                     <tr>
  1885.                         <td style="width:10%">
  1886.                         </td>
  1887.                         <td><label>Weapon Skill</label>
  1888.                         </td>
  1889.                         <td style="text-align:center"><input style="text-align:center" type="radio" class="sheet-advanceRadio" name="attr_wsAdvance" value="0" checked/><span></span>
  1890.                         </td>
  1891.                         <td style="width:2%">
  1892.                         </td>
  1893.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_wsAdvance" value="5"/><span></span><input type="text" class="" name="attr_wsCostSimple" value="0" style="width:80%;margin-right:5px" />
  1894.                         </td>
  1895.                         <td style="width:2%">
  1896.                         </td>
  1897.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_wsAdvance" value="10" /><span></span><input type="text" class="" name="attr_wsCostIntermediate" value="0" style="width:80%;margin-right:5px" />
  1898.                         </td>
  1899.                         <td style="width:2%">
  1900.                         </td>
  1901.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_wsAdvance" value="15"/><span></span><input type="text" class="" name="attr_wsCostTrained" value="0" style="width:80%;margin-right:5px" />
  1902.                         </td>
  1903.                         <td style="width:2%">
  1904.                         </td>
  1905.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_wsAdvance" value="20"/><span></span><input type="text" class="" name="attr_wsCostExpert" value="0" style="width:80%;margin-right:5px" />
  1906.                         </td>
  1907.                         <td style="width:10%">
  1908.                         </td>
  1909.                     </tr>
  1910.                     <tr>
  1911.                         <td style="width:10%">
  1912.                         </td>
  1913.                         <td><label>Ballistic Skill</label>
  1914.                         </td>
  1915.                         <td style="text-align:center"><input style="text-align:center" type="radio" class="sheet-advanceRadio" name="attr_bsAdvance" value="0" checked/><span></span>
  1916.                         </td>
  1917.                         <td style="width:2%">
  1918.                         </td>
  1919.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_bsAdvance" value="5"/><span></span><input type="text" class="" name="attr_bsCostSimple" value="0" style="width:80%;margin-right:5px" />
  1920.                         </td>
  1921.                         <td style="width:2%">
  1922.                         </td>
  1923.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_bsAdvance" value="10" /><span></span><input type="text" class="" name="attr_bsCostIntermediate" value="0" style="width:80%;margin-right:5px" />
  1924.                         </td>
  1925.                         <td style="width:2%">
  1926.                         </td>
  1927.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_bsAdvance" value="15"/><span></span><input type="text" class="" name="attr_bsCostTrained" value="0" style="width:80%;margin-right:5px" />
  1928.                         </td>
  1929.                         <td style="width:2%">
  1930.                         </td>
  1931.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_bsAdvance" value="20"/><span></span><input type="text" class="" name="attr_bsCostExpert" value="0" style="width:80%;margin-right:5px" />
  1932.                         </td>
  1933.                         <td style="width:10%">
  1934.                         </td>
  1935.                     </tr>
  1936.                     <tr>
  1937.                         <td style="width:10%">
  1938.                         </td>
  1939.                         <td><label>Strength</label>
  1940.                         </td>
  1941.                         <td style="text-align:center"><input style="text-align:center" type="radio" class="sheet-advanceRadio" name="attr_strengthAdvance" value="0" checked/><span></span>
  1942.                         </td>
  1943.                         <td style="width:2%">
  1944.                         </td>
  1945.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_strengthAdvance" value="5"/><span></span><input type="text" class="" name="attr_strengthCostSimple" value="0" style="width:80%;margin-right:5px" />
  1946.                         </td>
  1947.                         <td style="width:2%">
  1948.                         </td>
  1949.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_strengthAdvance" value="10" /><span></span><input type="text" class="" name="attr_strengthCostIntermediate" value="0" style="width:80%;margin-right:5px" />
  1950.                         </td>
  1951.                         <td style="width:2%">
  1952.                         </td>
  1953.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_strengthAdvance" value="15"/><span></span><input type="text" class="" name="attr_strengthCostTrained" value="0" style="width:80%;margin-right:5px" />
  1954.                         </td>
  1955.                         <td style="width:2%">
  1956.                         </td>
  1957.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_strengthAdvance" value="20"/><span></span><input type="text" class="" name="attr_strengthCostExpert" value="0" style="width:80%;margin-right:5px" />
  1958.                         </td>
  1959.                         <td style="width:10%">
  1960.                         </td>
  1961.                     </tr>
  1962.                     <tr>
  1963.                         <td style="width:10%">
  1964.                         </td>
  1965.                         <td><label>Toughness</label>
  1966.                         </td>
  1967.                         <td style="text-align:center"><input style="text-align:center" type="radio" class="sheet-advanceRadio" name="attr_toughnessAdvance" value="0" checked/><span></span>
  1968.                         </td>
  1969.                         <td style="width:2%">
  1970.                         </td>
  1971.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_toughnessAdvance" value="5"/><span></span><input type="text" class="" name="attr_toughnessCostSimple" value="0" style="width:80%;margin-right:5px" />
  1972.                         </td>
  1973.                         <td style="width:2%">
  1974.                         </td>
  1975.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_toughnessAdvance" value="10" /><span></span><input type="text" class="" name="attr_toughnessCostIntermediate" value="0" style="width:80%;margin-right:5px" />
  1976.                         </td>
  1977.                         <td style="width:2%">
  1978.                         </td>
  1979.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_toughnessAdvance" value="15"/><span></span><input type="text" class="" name="attr_toughnessCostTrained" value="0" style="width:80%;margin-right:5px" />
  1980.                         </td>
  1981.                         <td style="width:2%">
  1982.                         </td>
  1983.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_toughnessAdvance" value="20"/><span></span><input type="text" class="" name="attr_toughnessCostExpert" value="0" style="width:80%;margin-right:5px" />
  1984.                         </td>
  1985.                         <td style="width:10%">
  1986.                         </td>
  1987.                     </tr>
  1988.                     <tr>
  1989.                         <td style="width:10%">
  1990.                         </td>
  1991.                         <td><label>Agility</label>
  1992.                         </td>
  1993.                         <td style="text-align:center"><input style="text-align:center" type="radio" class="sheet-advanceRadio" name="attr_agAdvance" value="0" checked/><span></span>
  1994.                         </td>
  1995.                         <td style="width:2%">
  1996.                         </td>
  1997.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_agAdvance" value="5"/><span></span><input type="text" class="" name="attr_agCostSimple" value="0" style="width:80%;margin-right:5px" />
  1998.                         </td>
  1999.                         <td style="width:2%">
  2000.                         </td>
  2001.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_agAdvance" value="10" /><span></span><input type="text" class="" name="attr_agCostIntermediate" value="0" style="width:80%;margin-right:5px" />
  2002.                         </td>
  2003.                         <td style="width:2%">
  2004.                         </td>
  2005.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_agAdvance" value="15"/><span></span><input type="text" class="" name="attr_agCostTrained" value="0" style="width:80%;margin-right:5px" />
  2006.                         </td>
  2007.                         <td style="width:2%">
  2008.                         </td>
  2009.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_agAdvance" value="20"/><span></span><input type="text" class="" name="attr_agCostExpert" value="0" style="width:80%;margin-right:5px" />
  2010.                         </td>
  2011.                         <td style="width:10%">
  2012.                         </td>
  2013.                     </tr>
  2014.                     <tr>
  2015.                         <td style="width:10%">
  2016.                         </td>
  2017.                         <td><label>Intelligence</label>
  2018.                         </td>
  2019.                         <td style="text-align:center"><input style="text-align:center" type="radio" class="sheet-advanceRadio" name="attr_intAdvance" value="0" checked/><span></span>
  2020.                         </td>
  2021.                         <td style="width:2%">
  2022.                         </td>
  2023.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_intAdvance" value="5"/><span></span><input type="text" class="" name="attr_intCostSimple" value="0" style="width:80%;margin-right:5px" />
  2024.                         </td>
  2025.                         <td style="width:2%">
  2026.                         </td>
  2027.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_intAdvance" value="10" /><span></span><input type="text" class="" name="attr_intCostIntermediate" value="0" style="width:80%;margin-right:5px" />
  2028.                         </td>
  2029.                         <td style="width:2%">
  2030.                         </td>
  2031.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_intAdvance" value="15"/><span></span><input type="text" class="" name="attr_intCostTrained" value="0" style="width:80%;margin-right:5px" />
  2032.                         </td>
  2033.                         <td style="width:2%">
  2034.                         </td>
  2035.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_intAdvance" value="20"/><span></span><input type="text" class="" name="attr_intCostExpert" value="0" style="width:80%;margin-right:5px" />
  2036.                         </td>
  2037.                         <td style="width:10%">
  2038.                         </td>
  2039.                     </tr>
  2040.                     <tr>
  2041.                         <td style="width:10%">
  2042.                         </td>
  2043.                         <td><label>Perception</label>
  2044.                         </td>
  2045.                         <td style="text-align:center"><input style="text-align:center" type="radio" class="sheet-advanceRadio" name="attr_perAdvance" value="0" checked/><span></span>
  2046.                         </td>
  2047.                         <td style="width:2%">
  2048.                         </td>
  2049.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_perAdvance" value="5"/><span></span><input type="text" class="" name="attr_perCostSimple" value="0" style="width:80%;margin-right:5px" />
  2050.                         </td>
  2051.                         <td style="width:2%">
  2052.                         </td>
  2053.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_perAdvance" value="10" /><span></span><input type="text" class="" name="attr_perCostIntermediate" value="0" style="width:80%;margin-right:5px" />
  2054.                         </td>
  2055.                         <td style="width:2%">
  2056.                         </td>
  2057.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_perAdvance" value="15"/><span></span><input type="text" class="" name="attr_perCostTrained" value="0" style="width:80%;margin-right:5px" />
  2058.                         </td>
  2059.                         <td style="width:2%">
  2060.                         </td>
  2061.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_perAdvance" value="20"/><span></span><input type="text" class="" name="attr_perCostExpert" value="0" style="width:80%;margin-right:5px" />
  2062.                         </td>
  2063.                         <td style="width:10%">
  2064.                         </td>
  2065.                     </tr>
  2066.                     <tr>
  2067.                         <td style="width:10%">
  2068.                         </td>
  2069.                         <td><label>Willpower</label>
  2070.                         </td>
  2071.                         <td style="text-align:center"><input style="text-align:center" type="radio" class="sheet-advanceRadio" name="attr_wpAdvance" value="0" checked/><span></span>
  2072.                         </td>
  2073.                         <td style="width:2%">
  2074.                         </td>
  2075.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_wpAdvance" value="5"/><span></span><input type="text" class="" name="attr_wpCostSimple" value="0" style="width:80%;margin-right:5px" />
  2076.                         </td>
  2077.                         <td style="width:2%">
  2078.                         </td>
  2079.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_wpAdvance" value="10" /><span></span><input type="text" class="" name="attr_wpCostIntermediate" value="0" style="width:80%;margin-right:5px" />
  2080.                         </td>
  2081.                         <td style="width:2%">
  2082.                         </td>
  2083.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_wpAdvance" value="15"/><span></span><input type="text" class="" name="attr_wpCostTrained" value="0" style="width:80%;margin-right:5px" />
  2084.                         </td>
  2085.                         <td style="width:2%">
  2086.                         </td>
  2087.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_wpAdvance" value="20"/><span></span><input type="text" class="" name="attr_wpCostExpert" value="0" style="width:80%;margin-right:5px" />
  2088.                         </td>
  2089.                         <td style="width:10%">
  2090.                         </td>
  2091.                     </tr>
  2092.                     <tr>
  2093.                         <td style="width:10%">
  2094.                         </td>
  2095.                         <td><label>Fellowship</label>
  2096.                         </td>
  2097.                         <td style="text-align:center"><input style="text-align:center" type="radio" class="sheet-advanceRadio" name="attr_felAdvance" value="0" checked/><span></span>
  2098.                         </td>
  2099.                         <td style="width:2%">
  2100.                         </td>
  2101.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_felAdvance" value="5"/><span></span><input type="text" class="" name="attr_felCostSimple" value="0" style="width:80%;margin-right:5px" />
  2102.                         </td>
  2103.                         <td style="width:2%">
  2104.                         </td>
  2105.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_felAdvance" value="10" /><span></span><input type="text" class="" name="attr_felCostIntermediate" value="0" style="width:80%;margin-right:5px" />
  2106.                         </td>
  2107.                         <td style="width:2%">
  2108.                         </td>
  2109.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_felAdvance" value="15"/><span></span><input type="text" class="" name="attr_felCostTrained" value="0" style="width:80%;margin-right:5px" />
  2110.                         </td>
  2111.                         <td style="width:2%">
  2112.                         </td>
  2113.                         <td><input type="radio" class="sheet-advanceRadio" name="attr_felAdvance" value="20"/><span></span><input type="text" class="" name="attr_felCostExpert" value="0" style="width:80%;margin-right:5px" />
  2114.                         </td>
  2115.                         <td style="width:10%">
  2116.                         </td>
  2117.                     </tr>
  2118.                 </table>
  2119.         </div>
  2120.         <hr>
  2121.         <div style="width:100%">
  2122.                 <h3>General Advances</h3>
  2123.                     <input type="checkbox" class="sheet-arrow" style="" name="attr_GeneralAdvanceDescHide"/><span></span>
  2124.                         <div class="sheet-body">
  2125.                 <div class="sheet-col" style="width:100%; text-align:center">
  2126.                         <div class="sheet-col" style="width:20px; margin:-2px; ">
  2127.                         </div>
  2128.                         <div class="sheet-col" style="width:30%; margin:-2px; "><label style="text-align:center">Advance</label>
  2129.                         </div>
  2130.                         <div class="sheet-col" style="width:10%; margin:-2px; "><label style="text-align:center">Cost</label>
  2131.                         </div>
  2132.                         <div class="sheet-col" style="width:10%; margin:-2px; "><label style="text-align:center">Type</label>
  2133.                         </div>
  2134.                         <div class="sheet-col" style="width:25%; margin:-2px; "><label style="text-align:center">Prerequisites</label>
  2135.                         </div>
  2136.                         <div class="sheet-col" style="width:20px; margin:-2px; ">
  2137.                         </div>
  2138.                 </div>
  2139.                 <fieldset class="repeating_GeneralAdvance" name="attr_repeating_GeneralAdvance">
  2140.                 <div style="width:100%; text-align:center">
  2141.                         <div class="sheet-item" style="width:20px; "><input type="checkbox" name="attr_GeneralAdvanceChecked" style="width:100%;text-align:left" />
  2142.                         </div>
  2143.                         <div class="sheet-item" style="width:30%; "><input type="text" placeholder="Advance" name="attr_GeneralAdvanceName" style="width:100%;text-align:left" />
  2144.                         </div>
  2145.                         <div class="sheet-item" style="width:10%; "><input type="text" placeholder="XP" name="attr_GeneralAdvanceCost" style="width:90%;text-align:center" />
  2146.                         </div>
  2147.                         <div class="sheet-item" style="width:10%; "><input type="text" placeholder="Type" name="attr_GeneralAdvanceType" style="width:90%;text-align:center" />
  2148.                         </div>
  2149.                         <div class="sheet-item" style="width:25%; "><input type="text" placeholder="Prerequisites" name="attr_GeneralAdvancePre" style="width:100%;text-align:left" />
  2150.                         </div>
  2151.                     <input type="checkbox" class="sheet-arrow" style="" name="attr_GeneralAdvanceDescHide"/><span></span>
  2152.                         <div class="sheet-body">
  2153.                             <textarea name="attr_GeneralAdvancedesc" style="width:90%; height:50px"></textarea>
  2154.                         </div>
  2155.                         </div>
  2156.                 </fieldset>
  2157.                         </div>
  2158.         </div>
  2159.         <hr>
  2160.         <div style="width:100%">
  2161.                 <h3>Chapter Advances</h3>
  2162.                     <input type="checkbox" class="sheet-arrow" style="" name="attr_ChapterAdvanceDescHide"/><span></span>
  2163.                         <div class="sheet-body">
  2164.                 <div class="sheet-col" style="width:100%; text-align:center">
  2165.                         <div class="sheet-col" style="width:20px; margin:-2px; ">
  2166.                         </div>
  2167.                         <div class="sheet-col" style="width:30%; margin:-2px; "><label style="text-align:center">Advance</label>
  2168.                         </div>
  2169.                         <div class="sheet-col" style="width:10%; margin:-2px; "><label style="text-align:center">Cost</label>
  2170.                         </div>
  2171.                         <div class="sheet-col" style="width:10%; margin:-2px; "><label style="text-align:center">Type</label>
  2172.                         </div>
  2173.                         <div class="sheet-col" style="width:25%; margin:-2px; "><label style="text-align:center">Prerequisites</label>
  2174.                         </div>
  2175.                         <div class="sheet-col" style="width:20px; margin:-2px; ">
  2176.                         </div>
  2177.                 </div>
  2178.                 <fieldset class="repeating_ChapterAdvance" name="attr_repeating_ChapterAdvance">
  2179.                 <div style="width:100%; text-align:center">
  2180.                         <div class="sheet-item" style="width:20px; "><input type="checkbox" name="attr_ChapterAdvanceChecked" style="width:100%;text-align:left" />
  2181.                         </div>
  2182.                         <div class="sheet-item" style="width:30%; "><input type="text" placeholder="Advance" name="attr_ChapterAdvanceName" style="width:100%;text-align:left" />
  2183.                         </div>
  2184.                         <div class="sheet-item" style="width:10%; "><input type="text" placeholder="XP" name="attr_ChapterAdvanceCost" style="width:90%;text-align:center" />
  2185.                         </div>
  2186.                         <div class="sheet-item" style="width:10%; "><input type="text" placeholder="Type" name="attr_ChapterAdvanceType" style="width:90%;text-align:center" />
  2187.                         </div>
  2188.                         <div class="sheet-item" style="width:25%; "><input type="text" placeholder="Prerequisites" name="attr_ChapterAdvancePre" style="width:100%;text-align:left" />
  2189.                         </div>
  2190.                     <input type="checkbox" class="sheet-arrow" style="" name="attr_ChapterAdvanceDescHide"/><span></span>
  2191.                         <div class="sheet-body">
  2192.                             <textarea name="attr_ChapterAdvancedesc" style="width:90%; height:50px"></textarea>
  2193.                         </div>
  2194.                         </div>
  2195.                 </fieldset>
  2196.                         </div>
  2197.         </div>
  2198.         <hr>
  2199.         <div style="width:100%">
  2200.                 <h3>Deathwatch Advances</h3>
  2201.                     <input type="checkbox" class="sheet-arrow" style="" name="attr_DeathwatchAdvanceDescHide"/><span></span>
  2202.                         <div class="sheet-body">
  2203.                 <div class="sheet-col" style="width:100%; text-align:center">
  2204.                         <div class="sheet-col" style="width:20px; margin:-2px; ">
  2205.                         </div>
  2206.                         <div class="sheet-col" style="width:30%; margin:-2px; "><label style="text-align:center">Advance</label>
  2207.                         </div>
  2208.                         <div class="sheet-col" style="width:10%; margin:-2px; "><label style="text-align:center">Cost</label>
  2209.                         </div>
  2210.                         <div class="sheet-col" style="width:10%; margin:-2px; "><label style="text-align:center">Type</label>
  2211.                         </div>
  2212.                         <div class="sheet-col" style="width:25%; margin:-2px; "><label style="text-align:center">Prerequisites</label>
  2213.                         </div>
  2214.                         <div class="sheet-col" style="width:20px; margin:-2px; ">
  2215.                         </div>
  2216.                 </div>
  2217.                 <fieldset class="repeating_DeathwatchAdvance" name="attr_repeating_DeathwatchAdvance">
  2218.                 <div style="width:100%; text-align:center">
  2219.                         <div class="sheet-item" style="width:20px; "><input type="checkbox" name="attr_DeathwatchAdvanceChecked" style="width:100%;text-align:left" />
  2220.                         </div>
  2221.                         <div class="sheet-item" style="width:30%; "><input type="text" placeholder="Advance" name="attr_DeathwatchAdvanceName" style="width:100%;text-align:left" />
  2222.                         </div>
  2223.                         <div class="sheet-item" style="width:10%; "><input type="text" placeholder="XP" name="attr_DeathwatchAdvanceCost" style="width:90%;text-align:center" />
  2224.                         </div>
  2225.                         <div class="sheet-item" style="width:10%; "><input type="text" placeholder="Type" name="attr_DeathwatchAdvanceType" style="width:90%;text-align:center" />
  2226.                         </div>
  2227.                         <div class="sheet-item" style="width:25%; "><input type="text" placeholder="Prerequisites" name="attr_DeathwatchAdvancePre" style="width:100%;text-align:left" />
  2228.                         </div>
  2229.                     <input type="checkbox" class="sheet-arrow" style="" name="attr_DeathwatchAdvanceDescHide"/><span></span>
  2230.                         <div class="sheet-body">
  2231.                             <textarea name="attr_DeathwatchAdvancedesc" style="width:90%; height:50px"></textarea>
  2232.                         </div>
  2233.                         </div>
  2234.                 </fieldset>
  2235.                         </div>
  2236.         </div>
  2237.         <hr>
  2238.         <div style="width:100%">
  2239.                 <h3>Specialization Advances</h3>
  2240.                     <input type="checkbox" class="sheet-arrow" style="" name="attr_SpecializationAdvanceDescHide"/><span></span>
  2241.                         <div class="sheet-body">
  2242.                 <div class="sheet-col" style="width:100%; text-align:center">
  2243.                         <div class="sheet-col" style="width:20px; margin:-2px; ">
  2244.                         </div>
  2245.                         <div class="sheet-col" style="width:30%; margin:-2px; "><label style="text-align:center">Advance</label>
  2246.                         </div>
  2247.                         <div class="sheet-col" style="width:10%; margin:-2px; "><label style="text-align:center">Cost</label>
  2248.                         </div>
  2249.                         <div class="sheet-col" style="width:10%; margin:-2px; "><label style="text-align:center">Type</label>
  2250.                         </div>
  2251.                         <div class="sheet-col" style="width:25%; margin:-2px; "><label style="text-align:center">Prerequisites</label>
  2252.                         </div>
  2253.                         <div class="sheet-col" style="width:20px; margin:-2px; ">
  2254.                         </div>
  2255.                 </div>
  2256.                 <fieldset class="repeating_SpecializationAdvance" name="attr_repeating_SpecializationAdvance">
  2257.                 <div style="width:100%; text-align:center">
  2258.                         <div class="sheet-item" style="width:20px; "><input type="checkbox" name="attr_SpecializationAdvanceChecked" style="width:100%;text-align:left" />
  2259.                         </div>
  2260.                         <div class="sheet-item" style="width:30%; "><input type="text" placeholder="Advance" name="attr_SpecializationAdvanceName" style="width:100%;text-align:left" />
  2261.                         </div>
  2262.                         <div class="sheet-item" style="width:10%; "><input type="text" placeholder="XP" name="attr_SpecializationAdvanceCost" style="width:90%;text-align:center" />
  2263.                         </div>
  2264.                         <div class="sheet-item" style="width:10%; "><input type="text" placeholder="Type" name="attr_SpecializationAdvanceType" style="width:90%;text-align:center" />
  2265.                         </div>
  2266.                         <div class="sheet-item" style="width:25%; "><input type="text" placeholder="Prerequisites" name="attr_SpecializationAdvancePre" style="width:100%;text-align:left" />
  2267.                         </div>
  2268.                     <input type="checkbox" class="sheet-arrow" style="" name="attr_SpecializationAdvanceDescHide"/><span></span>
  2269.                         <div class="sheet-body">
  2270.                             <textarea name="attr_SpecializationAdvancedesc" style="width:90%; height:50px"></textarea>
  2271.                         </div>
  2272.                         </div>
  2273.                 </fieldset>
  2274.                         </div>
  2275.         </div>
  2276.         <hr>
  2277.         <div style="width:100%">
  2278.                 <h3>Other Advances</h3>
  2279.                     <input type="checkbox" class="sheet-arrow" style="" name="attr_OtherAdvanceDescHide"/><span></span>
  2280.                         <div class="sheet-body">
  2281.                 <div class="sheet-col" style="width:100%; text-align:center">
  2282.                         <div class="sheet-col" style="width:20px; margin:-2px; ">
  2283.                         </div>
  2284.                         <div class="sheet-col" style="width:30%; margin:-2px; "><label style="text-align:center">Advance</label>
  2285.                         </div>
  2286.                         <div class="sheet-col" style="width:10%; margin:-2px; "><label style="text-align:center">Cost</label>
  2287.                         </div>
  2288.                         <div class="sheet-col" style="width:10%; margin:-2px; "><label style="text-align:center">Type</label>
  2289.                         </div>
  2290.                         <div class="sheet-col" style="width:25%; margin:-2px; "><label style="text-align:center">Prerequisites</label>
  2291.                         </div>
  2292.                         <div class="sheet-col" style="width:20px; margin:-2px; ">
  2293.                         </div>
  2294.                 </div>
  2295.                 <fieldset class="repeating_OtherAdvance" name="attr_repeating_OtherAdvance">
  2296.                 <div style="width:100%; text-align:center">
  2297.                         <div class="sheet-item" style="width:20px; "><input type="checkbox" name="attr_OtherAdvanceChecked" style="width:100%;text-align:left" />
  2298.                         </div>
  2299.                         <div class="sheet-item" style="width:30%; "><input type="text" placeholder="Advance" name="attr_OtherAdvanceName" style="width:100%;text-align:left" />
  2300.                         </div>
  2301.                         <div class="sheet-item" style="width:10%; "><input type="text" placeholder="XP" name="attr_OtherAdvanceCost" style="width:90%;text-align:center" />
  2302.                         </div>
  2303.                         <div class="sheet-item" style="width:10%; "><input type="text" placeholder="Type" name="attr_OtherAdvanceType" style="width:90%;text-align:center" />
  2304.                         </div>
  2305.                         <div class="sheet-item" style="width:25%; "><input type="text" placeholder="Prerequisites" name="attr_OtherAdvancePre" style="width:100%;text-align:left" />
  2306.                         </div>
  2307.                     <input type="checkbox" class="sheet-arrow" style="" name="attr_OtherAdvanceDescHide"/><span></span>
  2308.                         <div class="sheet-body">
  2309.                             <textarea name="attr_OtherAdvancedesc" style="width:90%; height:50px"></textarea>
  2310.                         </div>
  2311.                         </div>
  2312.                 </fieldset>
  2313.                         </div>
  2314.         </div>
  2315.         <hr>
  2316.        
  2317.         <div class="1colrow">
  2318.             <div class="colrow">
  2319.                 <h3>Experience Points</h3>
  2320.                 <table style="margin-left:auto;margin-right:auto; text-align:center">
  2321.                     <tr>
  2322.                         <td><label style="text-align:center; height:auto;">Starting XP</label>
  2323.                         </td>
  2324.                         <td><label style="text-align:center; height:auto;">XP to Spend</label>
  2325.                         </td>
  2326.                         <td><label style="text-align:center; height:auto;">Spent XP</label>
  2327.                         </td>
  2328.                         <td><label style="text-align:center; height:auto">Total XP</label>
  2329.                         </td>
  2330.                         <td><label style="text-align:center; height:auto;">Calculated XP</label>
  2331.                         </td>
  2332.                     </tr>
  2333.                     <tr>
  2334.                         <td style="width:120px;"><input style="width:100px; text-align:center" type="number" name="attr_xpstarting" value="12000" />
  2335.                         </td>
  2336.                         <td style="width:120px;"><input style="width:100px; text-align:center" type="number" name="attr_xptospent" value="1000" />
  2337.                         </td>
  2338.                         <td style="width:120px;"><input style="width:100px; text-align:center" type="number" name="attr_xpspend" value="0" />
  2339.                         </td>
  2340.                         <td style="width:120px;"><input  style="width:100px; text-align:center"type="number" name="attr_totalxpspent" disabled value="floor(@{xpstarting} + @{xpspend})" />
  2341.                         </td>
  2342.                         <td style="width:120px;"><input style="width:100px; text-align:center" type="number" name="attr_xpcalculated" value="0" />
  2343.                         </td>
  2344.                     </tr>
  2345.                 </table>
  2346.                 <br>
  2347.                 <label>Advancements Taken (Calculated):</label>
  2348.                 <fieldset class="repeating_advancements">
  2349.                     <div class="sheet-row">
  2350.                         <div class="sheet-item" style="width:26%;"><input type="text" placeholder="Advancement Name" name="attr_advancement1" /></div>
  2351.                         <div class="sheet-item sheet-puny sheet-center sheet-brackets sheet-armourblock"><input type="number" placeholder="Cost" name="attr_advancement1xp" value="0" /></div>
  2352.                         <div class="sheet-item" style="width:26%;"><input type="text" placeholder="Advancement Name" name="attr_advancement2" /></div>
  2353.                         <div class="sheet-item sheet-puny sheet-center sheet-brackets sheet-armourblock"><input type="number" placeholder="Cost" name="attr_advancement2xp" value="0" /></div>
  2354.                         <div class="sheet-item" style="width:26%;"><input type="text" placeholder="Advancement Name" name="attr_advancement3" /></div>
  2355.                         <div class="sheet-item sheet-puny sheet-center sheet-brackets sheet-armourblock"><input type="number" placeholder="Cost" name="attr_advancement3xp" value="0" /></div>
  2356.                     </div>
  2357.                 </fieldset>
  2358.                 <hr>
  2359.                 <h3>Other Notes:</h3>
  2360.                 <textarea name="attr_othernotes" placeholder="Notes"></textarea>
  2361.             </div>
  2362.         </div>
  2363.     </div>
  2364. </div>
  2365.  
  2366. <div class="sheet-tab-content sheet-tabGear">
  2367.         <h1>Gear</h1>
  2368.     <div class="sheet-wrapper">
  2369.         <div>
  2370.                 <h3>Carry Stats</h3>
  2371.                 <table style="width:100%">
  2372.                     <tr>
  2373.                         <td style="width:5%">
  2374.                         </td>
  2375.                         <td style="width:15%"><label style="text-align: right">Carry Bonus Mod.: </label></td>
  2376.                         <td style="width:7%"><input type="number" style="text-align: center" name="attr_CarryModTBandSB" value="0" />
  2377.                         </td>
  2378.                         <td style="width:1%">
  2379.                         </td>
  2380.                         <td style="width:10%"><label style="text-align: right">Max. Carry: </label></td>
  2381.                         <td style="width:10%"><input type="text" style="text-align: center" name="attr_WeightMaxCarry" />
  2382.                         </td>
  2383.                         <td style="width:1%">
  2384.                         </td>
  2385.                         <td style="width:10%"><label style="text-align: right">Max. Lift: </label></td>
  2386.                         <td style="width:10%"><input type="text" style="text-align: center" name="attr_WeightMaxLift" />
  2387.                         </td>
  2388.                         <td style="width:1%">
  2389.                         </td>
  2390.                         <td style="width:10%"><label style="text-align: right">Max. Push: </label></td>
  2391.                         <td style="width:10%"><input type="text" style="text-align: center" name="attr_WeightMaxPush" />
  2392.                         </td>
  2393.                         <td style="width:7%">
  2394.                         </td>
  2395.                     </tr>
  2396.                     <tr>
  2397.                         <td style="width:5%">
  2398.                         </td>
  2399.                         <td style="width:15%"><label style="text-align: right">Sum of TB and SB: </label></td>
  2400.                         <td style="width:7%"><input type="text" disabled style="text-align: center" name="attr_SumTBandSB" value="floor(@{strengthBonus} + @{CarryModTBandSB} + @{toughnessBonus})" />
  2401.                         </td>
  2402.                         <td style="width:1%">
  2403.                         </td>
  2404.                         <td style="width:10%"><label style="text-align: right">Curr. Carry: </label></td>
  2405.                         <td style="width:10%"><input type="number" step="any" style="text-align: center" name="attr_WeightCurrCarry" />
  2406.                         </td>
  2407.                         <td style="width:1%">
  2408.                         </td>
  2409.                         <td style="width:10%"></td>
  2410.                         <td style="width:10%">
  2411.                         </td>
  2412.                         <td style="width:1%">
  2413.                         </td>
  2414.                         <td style="width:10%"></td>
  2415.                         <td style="width:10%">
  2416.                         </td>
  2417.                         <td style="width:7%">
  2418.                         </td>
  2419.                     </tr>
  2420.                 </table>
  2421.                 <br>
  2422.                 <div>
  2423.                 <div class="sheet-col" style="width:68%">
  2424.                 <h3>Movement Stats</h3>
  2425.                     <!-- Movement -->
  2426.                 <table style="width:100%;margin-right:auto;margin-left:auto;">
  2427.                     <tr>
  2428.                         <td style="width:15%">
  2429.                         </td>
  2430.                         <td style="width:8%">
  2431.                         </td>
  2432.                         <td style="width:2%">
  2433.                         </td>
  2434.                         <td style="width:3%">
  2435.                         </td>
  2436.                         <td style="width:15%"><label style="text-align:right">Modifier</label>
  2437.                         </td>
  2438.                         <td style="width:8%"><input type="number" style="text-align:center;width:100%" name="attr_walkmod" value="0" />
  2439.                         </td>
  2440.                         <td style="width:2%">
  2441.                         </td>
  2442.                         <td style="width:3%">
  2443.                         </td>
  2444.                         <td style="width:15%">
  2445.                         </td>
  2446.                         <td style="width:8%">
  2447.                         </td>
  2448.                         <td style="width:2%">
  2449.                         </td>
  2450.                     </tr>
  2451.                     <tr>
  2452.                         <td style="width:15%"><label style="text-align:right">Half Walk</label>
  2453.                         </td>
  2454.                         <td style="width:8%"><input type="number" style="text-align:right;width:100%" name="attr_walkspeed" value="@{agBonus}+@{walkmod}" disabled="true" />
  2455.                         </td>
  2456.                         <td style="width:2%"><label>m</label>
  2457.                         </td>
  2458.                         <td style="width:3%">
  2459.                         </td>
  2460.                         <td style="width:15%"><label style="text-align:right">Full Walk</label>
  2461.                         </td>
  2462.                         <td style="width:8%"><input type="number" style="text-align:right;width:100%" name="attr_fullwalkspeed" value="2*(@{agBonus}+@{walkmod})" disabled="true" />
  2463.                         </td>
  2464.                         <td style="width:2%"><label>m</label>
  2465.                         </td>
  2466.                         <td style="width:3%">
  2467.                         </td>
  2468.                         <td style="width:15%"><label style="text-align:right">Charge</label>
  2469.                         </td>
  2470.                         <td style="width:8%"><input type="number" style="text-align:right;width:100%" name="attr_Chargespeed" value="3*(@{agBonus}+@{walkmod})" disabled="true" />
  2471.                         </td>
  2472.                         <td style="width:2%"><label>m</label>
  2473.                         </td>
  2474.                     </tr>
  2475.                     <tr>
  2476.                         <td style="width:15%"><label style="text-align:right">Run</label>
  2477.                         </td>
  2478.                         <td style="width:8%"><input type="number" style="text-align:right;width:100%" name="attr_Runspeed" value="6*(@{agBonus}+@{walkmod})" disabled="true" />
  2479.                         </td>
  2480.                         <td style="width:2%"><label>m</label>
  2481.                         </td>
  2482.                         <td style="width:3%">
  2483.                         </td>
  2484.                         <td style="width:15%"><label style="text-align:right">Base Leap</label>
  2485.                         </td>
  2486.                         <td style="width:8%"><input type="number" style="text-align:right;width:100%" name="attr_BaseLeapspeed" value="(1*@{strengthBonus})" disabled="true" />
  2487.                         </td>
  2488.                         <td style="width:2%"><label>m</label>
  2489.                         </td>
  2490.                         <td style="width:3%">
  2491.                         </td>
  2492.                         <td style="width:15%"><label style="text-align:right">Base Jump</label>
  2493.                         </td>
  2494.                         <td style="width:8%"><input type="number" style="text-align:right;width:100%" name="attr_BaseJumpspeed"  />
  2495.                         </td>
  2496.                         <td style="width:2%"><label>cm</label>
  2497.                         </td>
  2498.                     </tr>
  2499.                     <tr>
  2500.                         <td style="width:15%"><label style="text-align:right">Per Minute</label>
  2501.                         </td>
  2502.                         <td style="width:8%"><input type="text" style="text-align:right;width:100%" name="attr_MovementMinute"  />
  2503.                         </td>
  2504.                         <td style="width:2%"><label>m</label>
  2505.                         </td>
  2506.                         <td style="width:3%">
  2507.                         </td>
  2508.                         <td style="width:15%"><label style="text-align:right">Per Hour</label>
  2509.                         </td>
  2510.                         <td style="width:8%"><input type="text" style="text-align:right;width:100%" name="attr_MovementHour"  />
  2511.                         </td>
  2512.                         <td style="width:2%"><label>km</label>
  2513.                         </td>
  2514.                         <td style="width:3%">
  2515.                         </td>
  2516.                         <td style="width:15%"><label style="text-align:right">Per Day (10hr)</label>
  2517.                         </td>
  2518.                         <td style="width:8%"><input type="text" style="text-align:right;width:100%" name="attr_MovementDay"  />
  2519.                         </td>
  2520.                         <td style="width:2%"><label>km</label>
  2521.                         </td>
  2522.                     </tr>
  2523.                 </table>
  2524.        
  2525.                 </div>
  2526.                 <div class="sheet-col" style="width:30%">
  2527.                 <h3>Initative</h3>
  2528.                 <div>
  2529.                     <div class="sheet-col" style="width:50%"><label style="text-align:right">Characteristic</label>
  2530.                     </div>
  2531.                     <div class="sheet-col" style="width:40%">
  2532.             <select name="attr_InitiativeCharacteristic" style="width:100%" class="sheet-input-selectbox" >
  2533.                                 <option value="@{agBonus}" selected>Agility</option>
  2534.                                 <option value="@{intBonus}">Intelligence</option>
  2535.                                 <option value="@{perBonus}">Perception</option>
  2536.                                 <option value="@{wpBonus}">Willpower</option>
  2537.                                 <option value="floor([[ (floor(@{agFinal}/10) + @{agBonusBefore}) * (2 + @{agBonusMultiplier}) + @{agBonusAfter} ]])">Lighting Reflexes</option>
  2538.             </select>
  2539.                     </div>
  2540.                 </div>
  2541.                 <div>
  2542.                     <div class="sheet-col" style="width:50%"><label style="text-align:right">Modifier</label>
  2543.                     </div>
  2544.                     <div class="sheet-col" style="width:40%"><input type="number" style="text-align: center; width:50%" name="attr_InitiativeModifier" value="0" />
  2545.                     </div>
  2546.                 </div>
  2547.                 <div>
  2548.                     <div class="sheet-col" style="width:50%"><label style="text-align:right">Final</label>
  2549.                     </div>
  2550.                     <div class="sheet-col" style="width:40%"><input type="text" style="text-align: center; width:50%" name="attr_InitiativeFinal" value="floor(@{InitiativeCharacteristic} + @{InitiativeModifier})" disabled />
  2551.                     </div>
  2552.                 </div>
  2553.                 <div>
  2554.                     <div class="sheet-col" style="width:50%">
  2555.                     </div>
  2556.                     <div class="sheet-col" style="width:40%"><button type="roll" name="attr_InitiativeRoll" style="font-size:12px"  value="!warinitroll [[ @{InitiativeFinal} + ?{Modfier|0} ]] @{PlayerQueryRoll} @{character_name}">Initiative Roll</button>
  2557.                     </div>
  2558.                 </div>
  2559.                 </div>
  2560.                 </div>
  2561.         </div>
  2562.         <hr>
  2563.         <label style="width:100%; text-align:center;font-style: normal;font-size: 0.875em;font-weight: normal;">For Tearing: Add 1 die and d1 to the end (example: 2d10d1+X)</label>
  2564.         <div class="sheet-2colrow">            
  2565.             <div class="sheet-col sheet-col2">
  2566.                 <h3>Melee Weapons</h3>
  2567.                 <fieldset class="repeating_meleeweapons">
  2568.                     <div class="sheet-quickborder">
  2569.                         <div class="sheet-row">
  2570.                             <div class="sheet-item" style="width: 15%;">
  2571.                                 <button type="roll" name="roll_meleeattack" value='!warattackroll [[ @{wsFinal} + @{meleeweaponquality} ]] ?{Modfier|0} ?{Attack or Parry?|Attack,0|Parry,2} @{PlayerQueryRoll} "@{meleeweaponname}" "@{meleeweaponspecial}"'>
  2572.                             <label>Name:</label>
  2573.                         </button></div>
  2574.                             <div class="sheet-item" style="width: 30%;"><input type="text" placeholder="Name" name="attr_meleeweaponname" /></div>
  2575.                             <div class="sheet-item" style="width: 20%;">
  2576.             <select name="attr_meleeweaponquality" style="width:100%" class="sheet-input-selectbox" >
  2577.                                 <option value="-10" >Poor</option>
  2578.                                 <option value="0" selected>Common</option>
  2579.                                 <option value="5">Good</option>
  2580.                                 <option value="10">Best</option>
  2581.             </select></div>
  2582.                             <div class="sheet-item" style="width: 10%;"><label>Class:</label></div>
  2583.                             <div class="sheet-item" style="width: 20%;"><input type="text" placeholder="Weap. Type" name="attr_meleeweaponclass" /></div>
  2584.                         </div>
  2585.                         <div class="sheet-row">
  2586.                             <div class="sheet-item sheet-small">
  2587.                                 <button type="roll" name="roll_meleedamage" value="!wardamagehits ;1;?{Hits (min. 1)?|1};@{meleeweapondamage} + @{meleeweaponchardamage};@{meleeweapontype};@{meleeweaponpen};@{PlayerQueryRoll};@{meleeweaponname};">
  2588.                             <label>Damage:</label>
  2589.                         </button></div>
  2590.                             <div class="sheet-item sheet-med"><input type="text" placeholder="Xd10+X" name="attr_meleeweapondamage" /></div>
  2591.                             <div class="sheet-item sheet-little"><label>Type:</label></div>
  2592.                             <div class="sheet-item sheet-small"><input type="text" placeholder="Dmg. Type" name="attr_meleeweapontype" /></div>
  2593.                             <div class="sheet-item sheet-puny"><label>Pen:</label></div>
  2594.                             <div class="sheet-item sheet-other"><input type="number" name="attr_meleeweaponpen" value="0" /></div>
  2595.                         </div>
  2596.                         <div style="width:100%">
  2597.                             <div class="sheet-item sheet-large" style="width:15%"><label>Qualities:</label></div>
  2598.                             <div class="sheet-item sheet-morebig" style="width:70%"><input type="text" placeholder="Weapon Qualities" name="attr_meleeweaponspecial" /></div>
  2599.                            
  2600.                     <input type="checkbox" class="sheet-arrow" name="attr_attr_meleeweaponDescHide"/><span></span>
  2601.                         <div class="sheet-body">
  2602.                         <div class="sheet-row">
  2603.                             <div class="sheet-item sheet-large"><label style="font-size:0.9em;">Characteristic Damage</label></div>
  2604.                             <div class="sheet-item sheet-little">
  2605.             <select name="attr_meleeweaponchardamage" style="width:100%" class="sheet-input-selectbox" >
  2606.                                 <option value="0" >None</option>
  2607.                                 <option value="[[@{strengthBonus}]]" selected>SB</option>
  2608.                                 <option value="[[floor([[ (floor(@{strengthFinal}/10) + @{strengthBonusBefore}) * (2 + @{strengthBonusMultiplier}) + @{strengthBonusAfter} ]])]]">SBx2</option>
  2609.             </select></div>
  2610.                         </div>
  2611.                             <textarea name="attr_attr_meleeweapondesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  2612.                         </div> 
  2613.                         </div>
  2614.                     </div>
  2615.                 </fieldset>
  2616.  
  2617.                 <div class="sheet-row">
  2618.                     <div class="sheet-item sheet-med"><label>Handedness:</label></div>
  2619.                     <div class="sheet-item sheet-bigger">
  2620.             <select name="attr_handedness" style="width:100%" class="sheet-input-selectbox" >
  2621.                                 <option value="Right" selected>Right-Handed</option>
  2622.                                 <option value="Left">Left-Handed</option>
  2623.                                 <option value="Both">Ambidextrous</option>
  2624.                                 <option value="Other">Other Handedness?</option>
  2625.             </select></div>
  2626.                 </div>
  2627.                 <br />
  2628.                 <!-- Armor! -->
  2629.                 <h3>Armour</h3>
  2630.                 <div style="width:100%; text-align:center;">
  2631.                 <div class="sheet-armourblock">
  2632.  
  2633.                 </div>
  2634.                 <div class="sheet-quickborder sheet-armourblock">
  2635.                     <label>Head</label>
  2636.                     <input type="text" placeholder="Armour Points" name="attr_headarmourvalue" />
  2637.                     <label>(1-10) Type</label>
  2638.                     <input type="text" placeholder="Armour Type" name="attr_headarmourtype" />
  2639.                 </div>
  2640.                 <div class="sheet-armourblock">
  2641.  
  2642.                 </div><br />
  2643.                 <div class="sheet-quickborder sheet-armourblock">
  2644.                     <label>Left Arm</label>
  2645.                     <input type="text" placeholder="Armour Points" name="attr_leftarmarmourvalue" />
  2646.                     <label>(21-30) Type</label>
  2647.                     <input type="text" placeholder="Armour Type" name="attr_leftarmarmourtype" />
  2648.                 </div>
  2649.                 <div class="sheet-quickborder sheet-armourblock">
  2650.                     <label>Body</label>
  2651.  
  2652.                     <input type="text" placeholder="Armour Points" name="attr_bodyarmourvalue" />
  2653.                     <label>(31-70) Type</label>
  2654.                     <input type="text" placeholder="Armour Type" name="attr_bodyarmourtype" />
  2655.                 </div>
  2656.                 <div class="sheet-quickborder sheet-armourblock">
  2657.                     <label>Right Arm</label>
  2658.                     <input type="text" placeholder="Armour Points" name="attr_rightarmarmourvalue" />
  2659.                     <label>(11-20) Type</label>
  2660.                     <input type="text" placeholder="Armour Type" name="attr_rightarmarmourtype" />
  2661.                 </div><br>
  2662.                 <div class="sheet-quickborder sheet-armourblock" >
  2663.                     <label>Left Leg</label>
  2664.                     <input type="text" placeholder="Armour Points" name="attr_leftlegarmourvalue" />
  2665.                     <label>(71-85) Type</label>
  2666.                     <input type="text" placeholder="Armour Type" name="attr_leftlegarmourtype" />
  2667.                 </div>
  2668.                 <div class="sheet-quickborder sheet-armourblock" >
  2669.                     <label>Right Leg</label>
  2670.                     <input type="text" placeholder="Armour Points" name="attr_rightlegarmourvalue" />
  2671.                     <label>(86-00) Type</label>
  2672.                     <input type="text" placeholder="Armour Type" name="attr_rightlegarmourtype" />
  2673.                 </div>
  2674.                             <textarea name="attr_attr_powerarmorstats" placeholder="Power Armour Stats" style="width:90%; height:150px"></textarea>
  2675.                 </div>
  2676.                
  2677.                
  2678.                 <!-- Force Field! -->
  2679.                 <h3>Force Field</h3>
  2680.                     <div class="sheet-col" style="width:100%">
  2681.                         <div class="sheet-row">
  2682.                             <div class="sheet-item sheet-big"><input type="text" style="text-align:center" placeholder="Force Field (Quality)"  name="attr_forcefield_name" /></div>
  2683.                         </div>
  2684.                         <div class="sheet-row">
  2685.                             <div class="sheet-item sheet-large"><label style="text-align:right">Rating:</label></div>
  2686.                             <div class="sheet-item sheet-puny"><input type="number" style="text-align:center" value="0" name="attr_forcefield_rating" /></div>
  2687.                         </div>
  2688.                         <div class="sheet-row">
  2689.                             <div class="sheet-item sheet-large"><label style="text-align:right">Overload (1-X):</label></div>
  2690.                             <div class="sheet-item sheet-puny"><input type="number" style="text-align:center" name="attr_forcefield_overload" value="0" /></div>
  2691.                         </div>
  2692.                         <div class="sheet-row">
  2693.                             <button type="roll" name="roll_ForceFieldRoll" style="font-size:13px; font-weight:bold; width:50%" value="!warforcefield @{forcefield_rating} @{forcefield_overload} @{PlayerQueryRoll}">Roll for Force Field</button>
  2694.                         </div>
  2695.                     </div>
  2696.             </div>
  2697.  
  2698.             <!-- Right Side -->
  2699.  
  2700.             <div class="sheet-col sheet-col2">
  2701.                 <h3>Ranged Weapons</h3>
  2702.                 <fieldset class="repeating_rangedweapons">
  2703.                     <div class="sheet-quickborder">
  2704.                         <div class="sheet-row">
  2705.                             <div class="sheet-item sheet-tiny">
  2706.                                 <button type="roll" name="roll_rangedattack" value='!warattackroll [[ @{bsFinal} ]] ?{Modfier|0} 1 @{PlayerQueryRoll} "@{rangedweaponname} (RoF: @{rangedweaponrof}) (Clip: @{rangedweaponclip})" "@{rangedweaponspecial}"'>
  2707.                             <label>Name:</label>
  2708.                         </button></div>
  2709.                             <div class="sheet-item sheet-big"><input type="text" placeholder="Name" name="attr_rangedweaponname" /></div>
  2710.                             <div class="sheet-item sheet-puny"></div>
  2711.                             <div class="sheet-item sheet-tiny"><label>Class:</label></div>
  2712.                             <div class="sheet-item sheet-small"><input type="text" placeholder="Weap. Type" name="attr_rangedweaponclass" /></div>
  2713.                         </div>
  2714.                         <div class="sheet-row">
  2715.                             <div class="sheet-item sheet-small">
  2716.                                 <button type="roll" name="roll_rangeddamage" value="!wardamagehits ;0;?{Hits (min. 1)?|1};@{rangedweapondamage} + @{rangedweaponchardamage};@{rangedweapontype};@{rangedweaponpen};@{PlayerQueryRoll};@{rangedweaponname};">
  2717.                             <label>Damage:</label>
  2718.                         </button></div>
  2719.                             <div class="sheet-item sheet-med"><input type="text" placeholder="Xd10+X" name="attr_rangedweapondamage" /></div>
  2720.                             <div class="sheet-item sheet-little"><label>Type:</label></div>
  2721.                             <div class="sheet-item sheet-small"><input type="text" placeholder="Dmg. Type" name="attr_rangedweapontype" /></div>
  2722.                             <div class="sheet-item sheet-puny"><label>Pen:</label></div>
  2723.                             <div class="sheet-item sheet-other"><input type="number" name="attr_rangedweaponpen" value="0" /></div>
  2724.                         </div>
  2725.                         <div class="sheet-row">
  2726.                             <div class="sheet-item sheet-tiny"><label>Range:</label></div>
  2727.                             <div class="sheet-item sheet-tiny"><input type="text" placeholder="meters" name="attr_rangedweaponrange" /></div>
  2728.                             <div class="sheet-item sheet-puny"><label>RoF:</label></div>
  2729.                             <div class="sheet-item sheet-small"><input type="text" placeholder="S/-/-" style="text-align:center" name="attr_rangedweaponrof" value="S/-/-" /></div>
  2730.                             <div class="sheet-item sheet-puny"><label>Clip:</label></div>
  2731.                             <div class="sheet-item sheet-tiny"><input type="text" placeholder="curr./max." name="attr_rangedweaponclip" style="text-align:center" value="0/0" /></div>
  2732.                             <div class="sheet-item sheet-tiny"><label>Reload:</label></div>
  2733.                             <div class="sheet-item sheet-tiny"><input type="text" placeholder="Action" name="attr_rangedweaponreload" /></div>
  2734.                         </div>
  2735.                         <div style="width:100%">
  2736.                             <div class="sheet-item sheet-large" style="width:15%"><label>Qualities:</label></div>
  2737.                             <div class="sheet-item sheet-morebig" style="width:70%"><input type="text" placeholder="Weapon Qualities" name="attr_rangedweaponspecial" /></div>
  2738.                            
  2739.                     <input type="checkbox" class="sheet-arrow" name="attr_rangedweaponsDescHide"/><span></span>
  2740.                         <div class="sheet-body">
  2741.                         <div class="sheet-row">
  2742.                             <div class="sheet-item sheet-large"><label style="font-size:0.9em;">Characteristic Damage</label></div>
  2743.                             <div class="sheet-item sheet-little">
  2744.             <select name="attr_rangedweaponchardamage" style="width:100%" class="sheet-input-selectbox" >
  2745.                                 <option value="0" selected>None</option>
  2746.                                 <option value="[[@{strengthBonus}]]">SB</option>
  2747.                                 <option value="[[floor([[ (floor(@{strengthFinal}/10) + @{strengthBonusBefore}) * (2 + @{strengthBonusMultiplier}) + @{strengthBonusAfter} ]])]]">SBx2</option>
  2748.             </select></div>
  2749.                         </div>
  2750.                             <textarea name="attr_rangedweaponsdesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  2751.                         </div> 
  2752.                         </div>
  2753.                     </div>
  2754.                 </fieldset>
  2755.                 <h3>Gear</h3>
  2756.                 <div>
  2757.                 <fieldset class="repeating_gear" style="margin:auto;">
  2758.                     <div style="width:100%">
  2759.                     <div class="sheet-item" style="width:85%">
  2760.                     <input type="text" style="width:75%" placeholder="Name" name="attr_gear" />
  2761.                     (<input type="number" placeholder="Weight" style="width:15%;text-align:center" name="attr_gear_weight" step="0.01" />)
  2762.                     <input type="checkbox" name="attr_gear_holding" value="true" />
  2763.                     </div>
  2764.                     <input type="checkbox" class="sheet-arrow" name="attr_gearDescHide"/><span></span>
  2765.                         <div class="sheet-body">
  2766.                             <textarea name="attr_geardesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  2767.                         </div>                 
  2768.                     </div>
  2769.                 </fieldset>
  2770.                 <div>
  2771.                 <div class="sheet-col" style="width:45%">
  2772.                     <label style="text-align:center">Current Carry</label>
  2773.                     <input type="number" step="any" style="text-align: center;width:50%" name="attr_WeightCurrCarry" />
  2774.                 </div>
  2775.                 <div class="sheet-col" style="width:45%">
  2776.                     <label style="text-align:center">Total Carry</label>
  2777.                     <input type="number" step="any" style="text-align: center;width:50%" name="attr_WeightTotalCarry" />
  2778.                 </div>
  2779.                 </div>
  2780.                 </div>
  2781.                 <br>
  2782.                 <h3>Acquisitions</h3>
  2783.                 <fieldset class="repeating_Requisition" style="margin:auto;">
  2784.                     <input type="text" style="width:40%" placeholder="Name" name="attr_RequisitionName" />
  2785.         <select name="attr_RequisitionRenown" style="width:25%" class="sheet-input-selectbox" >
  2786.                                 <option value="0" selected>Initiated</option>
  2787.                                 <option value="1">Respected</option>
  2788.                                 <option value="2">Distinguished</option>
  2789.                                 <option value="3">Famed</option>
  2790.                                 <option value="4">Hero</option>
  2791.         </select>
  2792.                     <input type="text" style="width:10%;text-align:center" placeholder="Cost" name="attr_RequisitionCost" value="0" />
  2793.                     <input type="checkbox" name="attr_Requisition_holding" value="true" checked />
  2794.                     <input type="checkbox" class="sheet-arrow" name="attr_RequisitionDescHide"/><span></span>
  2795.                         <div class="sheet-body">
  2796.                             <textarea name="attr_Requisitiondesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  2797.                         </div>                 
  2798.                 </fieldset>
  2799.                 <div>
  2800.                 <div class="sheet-col" style="width:45%">
  2801.                     <label style="text-align:center">Current Cost</label>
  2802.                     <input type="number" step="any" style="text-align: center;width:50%" name="attr_RequisitionCurrCarry" />
  2803.                 </div>
  2804.                 <div class="sheet-col" style="width:45%">
  2805.                     <label style="text-align:center">Total Cost</label>
  2806.                     <input type="number" step="any" style="text-align: center;width:50%" name="attr_RequisitionTotalCarry" />
  2807.                 </div>
  2808.                 </div>
  2809.             </div>
  2810.         </div>
  2811.     </div>
  2812. </div>
  2813.  
  2814.  
  2815. </div>
  2816.  
  2817.  
  2818. <div class="sheet-tab-content sheet-tabSquad">
  2819. <h1>Squad Mode</h1>
  2820.     <div class="sheet-wrapper">
  2821.     <div class="sheet-1colrow">
  2822.             <div class="sheet-col">
  2823.  
  2824.                 <div class="sheet-row">
  2825.                     <div class="sheet-item sheet-little"><label style="text-align:right">Squad Name</label></div>
  2826.                     <div class="sheet-item sheet-small"><input type="text" name="attr_squadName" /></div>
  2827.                     <div class="sheet-item sheet-little"><label style="text-align:right">Squad Leader</label></div>
  2828.                     <div class="sheet-item sheet-small"><input type="text" name="attr_squadLeader" /></div>
  2829.                     <div class="sheet-item sheet-little"><label style="text-align:right">Chapter</label></div>
  2830.                     <div class="sheet-item sheet-small"><input type="text" name="attr_squadChapter" /></div>
  2831.                 </div>
  2832.             </div>
  2833.         </div>
  2834.         <hr>
  2835.         <h3>Cohesion</h3>
  2836.             <div class="sheet-col" style="width:25%;">
  2837.                 <h4>Calculation Table</h4>
  2838.                 <table style="margin-left:auto;margin-right:auto; text-align:center">
  2839.                     <tr>
  2840.                         <td><label style="text-align:center; height:auto">Modifier</label>
  2841.                         </td>
  2842.                         <td style="text-align:center"><label style="text-align:center">Bonus</label>
  2843.                         </td>
  2844.                     </tr>
  2845.                     <tr>
  2846.                         <td><label style="text-align:center">Base</label>
  2847.                         </td>
  2848.                         <td style="width:75px">Leader FelB
  2849.                         </td>
  2850.                     </tr>
  2851.                     <tr>
  2852.                         <td><label style="text-align:center">Rank 4+</label>
  2853.                         </td>
  2854.                         <td style="width:75px">+1*
  2855.                         </td>
  2856.                     </tr>
  2857.                     <tr>
  2858.                         <td><label style="text-align:center">Rank 6+</label>
  2859.                         </td>
  2860.                         <td style="width:75px">+2*
  2861.                         </td>
  2862.                     </tr>
  2863.                     <tr>
  2864.                         <td><label style="text-align:center">Command Skill</label>
  2865.                         </td>
  2866.                         <td style="width:75px">+1**
  2867.                         </td>
  2868.                     </tr>
  2869.                     <tr>
  2870.                         <td><label style="text-align:center">Command Skill +10</label>
  2871.                         </td>
  2872.                         <td style="width:75px">+2**
  2873.                         </td>
  2874.                     </tr>
  2875.                     <tr>
  2876.                         <td><label style="text-align:center">Command Skill +20</label>
  2877.                         </td>
  2878.                         <td style="width:75px">+3**
  2879.                         </td>
  2880.                     </tr>
  2881.                 </table>
  2882.                 <br>
  2883.                 * Only Highest
  2884.                 <br>
  2885.                 ** Only Highest
  2886.             </div>
  2887.             <div class="sheet-col" style="width:73%;">
  2888.             <div class="sheet-col" style="width:49%;">
  2889.                 <h4>Current</h4>
  2890.                 <input type="number" style="height:100px;font-size:80px;text-align:center; width:50%"  name="attr_currentCohesion" value="0" />
  2891.             </div>
  2892.             <div class="sheet-col" style="width:49%;">
  2893.                 <h4>Maximal</h4>
  2894.                 <input type="number" style="height:100px;font-size:80px;text-align:center; width:50%"  name="attr_maxCohesion" value="0" />
  2895.             </div>
  2896.                
  2897.             </div>
  2898.         <hr>
  2899.         <h3>Oath</h3>
  2900.                     <div class="sheet-item sheet-small"><label style="text-align:right">Name</label></div>
  2901.                     <div class="sheet-item sheet-large"><input type="text" name="attr_squadOathName" /></div>
  2902.                 <div>
  2903.                     <div class="sheet-item sheet-small"><label style="text-align:right">Prerequisites</label></div>
  2904.                     <div class="sheet-item sheet-large"><input type="text" name="attr_squadOathPrerequisites" /></div>
  2905.                 </div>
  2906.                 <div>
  2907.                     <div class="sheet-item sheet-small"><label style="text-align:right">Squad Mode Abilities</label></div>
  2908.                     <div class="sheet-item sheet-large"><input type="text" name="attr_squadOathAbilities" /></div>
  2909.                 </div>
  2910.                 <div>
  2911.                     <div class="sheet-item sheet-small"><label style="text-align:right">Effect</label></div>
  2912.                     <div class="sheet-item sheet-large"><input type="text" name="attr_squadOathEffect" /></div>
  2913.                     <input type="checkbox" class="sheet-arrow" style="" name="attr_squadOathEffectDescHide"/><span></span>
  2914.                         <div class="sheet-body">
  2915.                             <textarea name="attr_squadOathEffectdesc" style="width:90%; height:50px"></textarea>
  2916.                         </div>
  2917.                 </div> 
  2918.         <hr>
  2919.         <h3>Squad Mode Abilities</h3>  
  2920.             <div class="sheet-col" style="width:49%;">
  2921.                 <h4>Chapter (Active)</h4>
  2922.                 <fieldset class="repeating_squadmodeChapter">
  2923.                     <div style="width:100%">
  2924.                     <div class="sheet-item" style="width:80%"><input type="text" placeholder="Name" name="attr_repsquadmodeChapter" /></div>
  2925.                     <div class="sheet-item" style="width:5%"><input type="checkbox" name="attr_repsquadmodeChapterActive" /></div>
  2926.                     <input type="checkbox" class="sheet-arrow" name="attr_repsquadmodeChapterDescHide"/><span></span>
  2927.                         <div class="sheet-body">
  2928.                             <textarea name="attr_repsquadmodeChapterdesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  2929.                         </div>                 
  2930.                     </div>
  2931.                 </fieldset>
  2932.             </div>
  2933.             <div class="sheet-col" style="width:49%;">
  2934.                 <h4>Codex</h4>
  2935.                 <fieldset class="repeating_squadmodeCodex">
  2936.                     <div style="width:100%">
  2937.                     <div class="sheet-item" style="width:80%"><input type="text" placeholder="Name" name="attr_repsquadmodeCodex" /></div>
  2938.                     <div class="sheet-item" style="width:5%"><input type="checkbox" name="attr_repsquadmodeCodexActive" /></div>
  2939.                     <input type="checkbox" class="sheet-arrow" name="attr_repsquadmodeCodexDescHide"/><span></span>
  2940.                         <div class="sheet-body">
  2941.                             <textarea name="attr_repsquadmodeCodexdesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  2942.                         </div>                 
  2943.                     </div>
  2944.                 </fieldset>
  2945.             </div>     
  2946.            
  2947.     </div>
  2948. </div>
  2949.  
  2950. <div class="sheet-tab-content sheet-tabGM">
  2951.       <input type='radio' name="attr_gm_show" class="sheet-tab sheet-tabNPC"  value="1" checked/>
  2952. <label class="sheet-tab" >NPC</label>
  2953.        
  2954.         <br>
  2955.    
  2956. <!-- NPC begin -->
  2957. <div class="sheet-tab-content sheet-tabNPC">
  2958.         <h1>NPC</h1>
  2959.     <div class="sheet-wrapper">
  2960.                 <div style="width:100%;text-align:center">
  2961.                     <div class="sheet-col" style="width:100%">
  2962.                         <input name="attr_character_name" type="text" style="height:50px;font-size:30px; font-weight:bold; text-align:center;width:100%" placeholder="NPC Name" />
  2963.                     </div>
  2964.                 </div>
  2965.                 <br>
  2966.         <select name="attr_NPCQueryRoll" style="width:90%" class="sheet-input-selectbox" >
  2967.                                 <option value="?{Public, Private or OnlyGM?|Public,0|Private,2|OnlyGM,1}" >Query Rolls</option>
  2968.                                 <option value="0">Rolls are Public</option>
  2969.                                 <option value="2">Rolls are Private</option>
  2970.                                 <option value="1" selected>Rolls are GM Only</option>
  2971.         </select>
  2972.                 <br>
  2973.    
  2974.     <div>
  2975.     <div class="sheet-col" style="width:48%">
  2976.                 <h3>Movement Stats</h3>
  2977.                     <!-- Movement -->
  2978.                 <table style="width:100%;margin-right:auto;margin-left:auto;">
  2979.                     <tr>
  2980.                         <td style="width:15%">
  2981.                         </td>
  2982.                         <td style="width:8%">
  2983.                         </td>
  2984.                         <td style="width:2%">
  2985.                         </td>
  2986.                         <td style="width:3%">
  2987.                         </td>
  2988.                         <td style="width:15%"><label style="text-align:right">Modifier</label>
  2989.                         </td>
  2990.                         <td style="width:8%"><input type="number" style="text-align:right;width:100%" name="attr_NPCwalkmod" value="0"  />
  2991.                         </td>
  2992.                         <td style="width:2%">
  2993.                         </td>
  2994.                     </tr>
  2995.                     <tr>
  2996.                         <td style="width:15%"><label style="text-align:right">Half Walk</label>
  2997.                         </td>
  2998.                         <td style="width:8%"><input type="number" style="text-align:right;width:100%" name="attr_NPCwalkspeed" value="(@{NPCAgBonus}+@{NPCwalkmod})" disabled="true" />
  2999.                         </td>
  3000.                         <td style="width:2%"><label>m</label>
  3001.                         </td>
  3002.                         <td style="width:3%">
  3003.                         </td>
  3004.                         <td style="width:15%"><label style="text-align:right">Full Walk</label>
  3005.                         </td>
  3006.                         <td style="width:8%"><input type="number" style="text-align:right;width:100%" name="attr_NPCfullwalkspeed" value="2*(@{NPCAgBonus}+@{NPCwalkmod})" disabled="true" />
  3007.                         </td>
  3008.                         <td style="width:2%"><label>m</label>
  3009.                         </td>
  3010.                     </tr>
  3011.                     <tr>
  3012.                         <td style="width:15%"><label style="text-align:right">Charge</label>
  3013.                         </td>
  3014.                         <td style="width:8%"><input type="number" style="text-align:right;width:100%" name="attr_NPCChargespeed" value="3*(@{NPCAgBonus}+@{NPCwalkmod})" disabled="true" />
  3015.                         </td>
  3016.                         <td style="width:2%"><label>m</label>
  3017.                         </td>
  3018.                         <td style="width:3%">
  3019.                         </td>
  3020.                         <td style="width:15%"><label style="text-align:right">Run</label>
  3021.                         </td>
  3022.                         <td style="width:8%"><input type="number" style="text-align:right;width:100%" name="attr_NPCRunspeed" value="6*(@{NPCAgBonus}+@{NPCwalkmod})" disabled="true" />
  3023.                         </td>
  3024.                         <td style="width:2%"><label>m</label>
  3025.                         </td>
  3026.                     </tr>
  3027.                     <tr>
  3028.                         <td style="width:15%"><label style="text-align:right">Base Leap</label>
  3029.                         </td>
  3030.                         <td style="width:8%"><input type="number" style="text-align:right;width:100%" name="attr_NPCBaseLeapspeed" value="(1*@{NPCStrengthBonus})" disabled="true" />
  3031.                         </td>
  3032.                         <td style="width:2%"><label>m</label>
  3033.                         </td>
  3034.                         <td style="width:3%">
  3035.                         </td>
  3036.                         <td style="width:15%"><label style="text-align:right">Base Jump</label>
  3037.                         </td>
  3038.                         <td style="width:8%"><input type="number" style="text-align:right;width:100%" name="attr_NPCBaseJumpspeed"  />
  3039.                         </td>
  3040.                         <td style="width:2%"><label>cm</label>
  3041.                         </td>
  3042.                     </tr>
  3043.                 </table>
  3044.                 <hr>
  3045.         <label style="width:100%; text-align:center;font-style: normal;font-size: 0.875em;font-weight: normal;">For Tearing: Add 1 die and d1 to the end (example: 2d10d1+X)</label>
  3046.                 <h3>Melee Weapons</h3>
  3047.                 <fieldset class="repeating_NPCmeleeweapons">
  3048.                     <div class="sheet-quickborder">
  3049.                         <div class="sheet-row">
  3050.                             <div class="sheet-item" style="width: 15%;">
  3051.                                 <button type="roll" name="roll_NPCmeleeattack" value='!warattackroll [[ @{NPCWS} + @{NPCmeleeweaponquality} ]] ?{Modfier|0} ?{Attack or Parry?|Attack,0|Parry,2} @{NPCQueryRoll} "@{character_name} @{NPCmeleeweaponname}" "@{NPCmeleeweaponspecial}"'>
  3052.                             <label>Name:</label>
  3053.                         </button></div>
  3054.                             <div class="sheet-item" style="width: 30%;"><input type="text" placeholder="Name" name="attr_NPCmeleeweaponname" /></div>
  3055.                             <div class="sheet-item" style="width: 20%;">
  3056.             <select name="attr_NPCmeleeweaponquality" style="width:100%" class="sheet-input-selectbox" >
  3057.                                 <option value="-10" >Poor</option>
  3058.                                 <option value="0" selected>Common</option>
  3059.                                 <option value="5">Good</option>
  3060.                                 <option value="10">Best</option>
  3061.             </select></div>
  3062.                             <div class="sheet-item" style="width: 10%;"><label>Class:</label></div>
  3063.                             <div class="sheet-item" style="width: 20%;"><input type="text" placeholder="Weap. Type" name="attr_NPCmeleeweaponclass" /></div>
  3064.                         </div>
  3065.                         <div class="sheet-row">
  3066.                             <div class="sheet-item sheet-small">
  3067.                                 <button type="roll" name="roll_NPCmeleedamage" value="!wardamagehits ;1;?{Hits (min. 1)?|1};@{NPCmeleeweapondamage} + @{NPCmeleeweaponchardamage};@{NPCmeleeweapontype};@{NPCmeleeweaponpen};@{NPCQueryRoll};@{character_name} @{NPCmeleeweaponname};">
  3068.                             <label>Damage:</label>
  3069.                         </button></div>
  3070.                             <div class="sheet-item sheet-med"><input type="text" placeholder="Xd10+X" name="attr_NPCmeleeweapondamage" /></div>
  3071.                             <div class="sheet-item sheet-little"><label>Type:</label></div>
  3072.                             <div class="sheet-item sheet-small"><input type="text" placeholder="Dmg. Type" name="attr_NPCmeleeweapontype" /></div>
  3073.                             <div class="sheet-item sheet-puny"><label>Pen:</label></div>
  3074.                             <div class="sheet-item sheet-other"><input type="number" name="attr_NPCmeleeweaponpen" value="0" /></div>
  3075.                         </div>
  3076.                         <div style="width:100%">
  3077.                             <div class="sheet-item sheet-large" style="width:15%"><label>Qualities:</label></div>
  3078.                             <div class="sheet-item sheet-morebig" style="width:70%"><input type="text" placeholder="Weapon Qualities" name="attr_NPCmeleeweaponspecial" /></div>
  3079.                            
  3080.                     <input type="checkbox" class="sheet-arrow" name="attr_attr_NPCmeleeweaponDescHide"/><span></span>
  3081.                         <div class="sheet-body">
  3082.                        
  3083.                         <div class="sheet-row">
  3084.                             <div class="sheet-item sheet-large"><label style="font-size:0.9em;">Characteristic Damage</label></div>
  3085.                             <div class="sheet-item sheet-little">
  3086.             <select name="attr_NPCmeleeweaponchardamage" style="width:100%" class="sheet-input-selectbox" >
  3087.                                 <option value="0" >None</option>
  3088.                                 <option value="[[@{NPCStrengthBonus}]]" selected>SB</option>
  3089.             </select></div>
  3090.                         </div>
  3091.                             <textarea name="attr_attr_NPCmeleeweapondesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  3092.                         </div> 
  3093.                         </div>
  3094.                     </div>
  3095.                 </fieldset>
  3096.                 <hr>
  3097.                 <h3>Ranged Weapons</h3>
  3098.                 <fieldset class="repeating_NPCrangedweapons">
  3099.                     <div class="sheet-quickborder">
  3100.                         <div class="sheet-row">
  3101.                             <div class="sheet-item sheet-tiny">
  3102.                                 <button type="roll" name="roll_NPCrangedattack" value='!warattackroll [[ @{NPCBS} ]] ?{Modfier|0} 1 @{NPCQueryRoll} "@{character_name} @{NPCrangedweaponname} (RoF: @{NPCrangedweaponrof}) (Clip: @{NPCrangedweaponclip})" "@{NPCrangedweaponspecial}"'>
  3103.                             <label>Name:</label>
  3104.                         </button></div>
  3105.                             <div class="sheet-item sheet-big"><input type="text" placeholder="Name" name="attr_NPCrangedweaponname" /></div>
  3106.                             <div class="sheet-item sheet-puny"></div>
  3107.                             <div class="sheet-item sheet-tiny"><label>Class:</label></div>
  3108.                             <div class="sheet-item sheet-small"><input type="text" placeholder="Weap. Type" name="attr_NPCrangedweaponclass" /></div>
  3109.                         </div>
  3110.                         <div class="sheet-row">
  3111.                             <div class="sheet-item sheet-small">
  3112.                                 <button type="roll" name="roll_NPCrangeddamage" value="!wardamagehits ;0;?{Hits (min. 1)?|1};@{NPCrangedweapondamage};@{NPCrangedweapontype};@{NPCrangedweaponpen};@{NPCQueryRoll};@{character_name} @{NPCrangedweaponname};">
  3113.                             <label>Damage:</label>
  3114.                         </button></div>
  3115.                             <div class="sheet-item sheet-med"><input type="text" placeholder="Xd10+X" name="attr_NPCrangedweapondamage" /></div>
  3116.                             <div class="sheet-item sheet-little"><label>Type:</label></div>
  3117.                             <div class="sheet-item sheet-small"><input type="text" placeholder="Dmg. Type" name="attr_NPCrangedweapontype" /></div>
  3118.                             <div class="sheet-item sheet-puny"><label>Pen:</label></div>
  3119.                             <div class="sheet-item sheet-other"><input type="number" name="attr_NPCrangedweaponpen" value="0" /></div>
  3120.                         </div>
  3121.                         <div class="sheet-row">
  3122.                             <div class="sheet-item sheet-tiny"><label>Range:</label></div>
  3123.                             <div class="sheet-item sheet-tiny"><input type="text" placeholder="meters" name="attr_NPCrangedweaponrange" /></div>
  3124.                             <div class="sheet-item sheet-puny"><label>RoF:</label></div>
  3125.                             <div class="sheet-item sheet-small"><input type="text" placeholder="S/-/-" style="text-align:center" name="attr_NPCrangedweaponrof" value="S/-/-" /></div>
  3126.                             <div class="sheet-item sheet-puny"><label>Clip:</label></div>
  3127.                             <div class="sheet-item sheet-tiny"><input type="text" placeholder="curr./max." name="attr_NPCrangedweaponclip" style="text-align:center" value="0/0" /></div>
  3128.                             <div class="sheet-item sheet-tiny"><label>Reload:</label></div>
  3129.                             <div class="sheet-item sheet-tiny"><input type="text" placeholder="Action" name="attr_NPCrangedweaponreload" /></div>
  3130.                         </div>
  3131.                         <div style="width:100%">
  3132.                             <div class="sheet-item sheet-large" style="width:15%"><label>Qualities:</label></div>
  3133.                             <div class="sheet-item sheet-morebig" style="width:70%"><input type="text" placeholder="Weapon Qualities" name="attr_NPCrangedweaponspecial" /></div>
  3134.                            
  3135.                     <input type="checkbox" class="sheet-arrow" name="attr_NPCrangedweaponsDescHide"/><span></span>
  3136.                         <div class="sheet-body">
  3137.                         <div class="sheet-row">
  3138.                         </div>
  3139.                             <textarea name="attr_NPCrangedweaponsdesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  3140.                         </div> 
  3141.                         </div>
  3142.                     </div>
  3143.                 </fieldset>
  3144.                 <hr>
  3145.                
  3146.                 <h3>Psychic Powers</h3>
  3147.                 <select name="attr_NPCPsyPowersSanctioned" style="width:100%" class="sheet-input-selectbox">
  3148.                 <option value="1" selected>Astropath or Sanctioned Psyker</option>
  3149.                 <option value="0">Renegade Psyker or Sorcerer</option>
  3150.                 </select>
  3151.                 <div style="width:100%">
  3152.                 <select name="attr_NPCPsyPowersSkill" style="width:90%" class="sheet-input-selectbox">
  3153.                 <option value="@{NPCWP}" selected>Willpower</option>
  3154.                 <option value="@{NPCPsyniscience}">Psyniscience</option>
  3155.                 <option value="@{PsyPowerOther}">Other -> </option>
  3156.                 </select><input type="number" name="attr_NPCPsyPowerOther" style="width:10%" value="0" /></div>
  3157.                 <h3>Psy Rating:<div class="sheet-item sheet-tiny"><input type="number" name="attr_NPCpsy" value="0" /></div></h3>
  3158.                 <div class="sheet-item sheet-med">
  3159.                     <button type="roll" name="roll_NPCpsycicpower_fettered" style="width: 60px" value="!warpsychicroll [[ @{NPCPsyPowersSkill} ]] ?{Modifier?|0} 0 @{NPCpsy} ?{Bonus Psy?|0} 0 ?{Sustained Effects?|0} @{NPCPsyPowersSanctioned} @{NPCQueryRoll} @{character_name} Fettered Power">
  3160.                     <label>Fettered</label>
  3161.                 </button>
  3162.                 </div>
  3163.                 <div class="sheet-item sheet-med">
  3164.                     <button type="roll" name="roll_NPCpsycicpower_unfettered" style="width: 70px" value="!warpsychicroll [[ @{NPCPsyPowersSkill} ]] ?{Modifier?|0} 1 @{NPCpsy} ?{Bonus Psy?|0} 0 ?{Sustained Effects?|0} @{NPCPsyPowersSanctioned} @{NPCQueryRoll} @{character_name} Unfettered Power">
  3165.                     <label>Unfettered</label>
  3166.                 </button>
  3167.                 </div>
  3168.                 <div class="sheet-item sheet-med">
  3169.                     <button type="roll" name="roll_NPCpsycicpower_push" style="width: 50px" value="!warpsychicroll [[ @{NPCPsyPowersSkill} ]] ?{Modifier?|0} 2 @{NPCpsy} ?{Bonus Psy?|0} ?{Push (1-3/4)?|1} ?{Sustained Effects?|0} @{NPCPsyPowersSanctioned} @{NPCQueryRoll} @{character_name} Push Power">
  3170.                     <label>Push</label>
  3171.                 </button>
  3172.             </div>  
  3173.                 <br>
  3174.                 <!-- Psychic Disciplines -->
  3175.                 <div style="width:100%" >
  3176.                 <h4>Psychic Disciplines</h4>
  3177.                 <fieldset class="repeating_NPCpsychicdiscipline">
  3178.                     <div style="width:100%">
  3179.                         <div class="sheet-item2" style="width:37%"><label>Psychic Discipline</label></div>
  3180.                         <div class="sheet-item2 sheet-brackets" style=" width: 50%">
  3181.                             <input type="text" name="attr_NPCreppsychicdiscipline" placeholder="Name" style="width:100%" />
  3182.                         </div>
  3183.                         <input type="checkbox" class="sheet-arrow" name="attr_NPCreppsychicdisciplineDescHide"/><span></span>
  3184.                         <div class="sheet-body">
  3185.                             <textarea name="attr_NPCreppsychicdisciplinedesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  3186.                         </div>
  3187.                     </div>
  3188.                 </fieldset>
  3189.                 </div>
  3190.                
  3191.                 <br>
  3192.                 <!-- Psychic Techniques -->
  3193.                 <div >
  3194.                 <h4>Psychic Techniques</h4>
  3195.                 <fieldset class="repeating_NPCdisciplinepsychicpowers">
  3196.                     <div  style="width:100%">
  3197.                         <div class="sheet-item2" style="width:38%"><label>Psychic Technique</label></div>
  3198.                         <div class="sheet-item2  sheet-brackets" style="width:49%"><input type="text" placeholder="Name" name="attr_NPCrepdisciplinepsychicpower" /></div>
  3199.                         <input type="checkbox" class="sheet-arrow" name="attr_NPCrepdisciplinepsychicpowerDescHide"/><span></span>
  3200.                         <div class="sheet-body">
  3201.                             <textarea name="attr_NPCrepdisciplinepsychicpowerdesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  3202.                         </div>
  3203.                     </div>
  3204.                 </fieldset>
  3205.                 </div>
  3206.                 <hr>
  3207.                 <!-- Special Abilities -->
  3208.                 <h3>Special Abilities</h3>
  3209.                 <fieldset class="repeating_abilities">
  3210.                     <div style="width:100%">
  3211.                     <div class="sheet-item" style="width:85%"><input type="text" placeholder="Name" name="attr_NPCrepabili" /></div>
  3212.                     <input type="checkbox" class="sheet-arrow" name="attr_NPCrepabiliDescHide"/><span></span>
  3213.                         <div class="sheet-body">
  3214.                             <textarea name="attr_NPCrepabilidesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  3215.                         </div>                 
  3216.                     </div>
  3217.                 </fieldset>
  3218.                 <hr>
  3219.                 <!-- Mutations -->
  3220.                 <h3>Mutations</h3>
  3221.                 <fieldset class="repeating_mutations">
  3222.                     <div style="width:100%">
  3223.                     <div class="sheet-item" style="width:85%"><input type="text" placeholder="Name" name="attr_NPCrepmuta" /></div>
  3224.                     <input type="checkbox" class="sheet-arrow" name="attr_NPCrepmutaDescHide"/><span></span>
  3225.                         <div class="sheet-body">
  3226.                             <textarea name="attr_NPCrepmutadesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  3227.                         </div>                 
  3228.                     </div>
  3229.                 </fieldset>
  3230.     </div>
  3231.    
  3232.     <div class="sheet-col" style="width:4%">
  3233.     </div>
  3234.    
  3235.     <div class="sheet-col" style="width:47%">
  3236.     <h3>Statistics</h3>
  3237.         <br>
  3238.         <table style="border:1px solid black;text-align:center;margin-right:auto;margin-left:auto;">
  3239.             <tr>
  3240.                 <th COLSPAN=9 style="border-bottom:1px solid black;"><label style="text-align:center">Characteristics</label>
  3241.                 </th>
  3242.             </tr>
  3243.             <tr>
  3244.                 <td style="border-right:1px solid black;width:10%"><button type="roll" name="roll_wsNPC" value="!warroll @{NPCWS} ?{Modfier|0} @{NPCQueryRoll} @{character_name} Weapon Skill Test"><label style="text-align:center">WS</label></button>
  3245.                 </td>
  3246.                 <td style="border-right:1px solid black;width:10%"><button type="roll" name="roll_wsNPC" value="!warroll @{NPCBS} ?{Modfier|0} @{NPCQueryRoll} @{character_name} Ballistic Skill Test"><label style="text-align:center">BS</label></button>
  3247.                 </td>
  3248.                 <td style="border-right:1px solid black;width:10%"><button type="roll" name="roll_wsNPC" value="!warroll @{NPCStrength} ?{Modfier|0} @{NPCQueryRoll} @{character_name} Strength Test"><label style="text-align:center">S</label></button>
  3249.                 </td>
  3250.                 <td style="border-right:1px solid black;width:10%"><button type="roll" name="roll_wsNPC" value="!warroll @{NPCToughness} ?{Modfier|0} @{NPCQueryRoll} @{character_name} Toughness Test"><label style="text-align:center">T</label></button>
  3251.                 </td>
  3252.                 <td style="border-right:1px solid black;width:10%"><button type="roll" name="roll_wsNPC" value="!warroll @{NPCAg} ?{Modfier|0} @{NPCQueryRoll} @{character_name} Agility Test"><label style="text-align:center">Ag</label></button>
  3253.                 </td>
  3254.                 <td style="border-right:1px solid black;width:10%"><button type="roll" name="roll_wsNPC" value="!warroll @{NPCInt} ?{Modfier|0} @{NPCQueryRoll} @{character_name} Intelligence Test"><label style="text-align:center">Int</label></button>
  3255.                 </td>
  3256.                 <td style="border-right:1px solid black;width:10%"><button type="roll" name="roll_wsNPC" value="!warroll @{NPCPer} ?{Modfier|0} @{NPCQueryRoll} @{character_name} Perception Test"><label style="text-align:center">Per</label></button>
  3257.                 </td>
  3258.                 <td style="border-right:1px solid black;width:10%"><button type="roll" name="roll_wsNPC" value="!warroll @{NPCWP} ?{Modfier|0} @{NPCQueryRoll} @{character_name} Willpower Test"><label style="text-align:center">WP</label></button>
  3259.                 </td>
  3260.                 <td style="width:10%"><button type="roll" name="roll_wsNPC" value="!warroll @{NPCFel} ?{Modfier|0} @{NPCQueryRoll} @{character_name} Fellowship Test"><label style="text-align:center">Fel</label></button>
  3261.                 </td>
  3262.             </tr>
  3263.             <tr>
  3264.                 <td style="border-right:1px solid black;border-bottom:1px solid black;width:10%"><input type="number" name="attr_NPCWS" style="text-align:center" value="20" />
  3265.                 </td>
  3266.                 <td style="border-right:1px solid black;border-bottom:1px solid black;width:10%"><input type="number" name="attr_NPCBS" style="text-align:center" value="20" />
  3267.                 </td>
  3268.                 <td style="border-right:1px solid black;border-bottom:1px solid black;width:10%"><input type="number" name="attr_NPCStrength" style="text-align:center" value="20" />
  3269.                 </td>
  3270.                 <td style="border-right:1px solid black;border-bottom:1px solid black;width:10%"><input type="number" name="attr_NPCToughness" style="text-align:center" value="20" />
  3271.                 </td>
  3272.                 <td style="border-right:1px solid black;border-bottom:1px solid black;width:10%"><input type="number" name="attr_NPCAg" style="text-align:center" value="20" />
  3273.                 </td>
  3274.                 <td style="border-right:1px solid black;border-bottom:1px solid black;width:10%"><input type="number" name="attr_NPCInt" style="text-align:center" value="20" />
  3275.                 </td>
  3276.                 <td style="border-right:1px solid black;border-bottom:1px solid black;width:10%"><input type="number" name="attr_NPCPer" style="text-align:center" value="20" />
  3277.                 </td>
  3278.                 <td style="border-right:1px solid black;border-bottom:1px solid black;width:10%"><input type="number" name="attr_NPCWP" style="text-align:center" value="20" />
  3279.                 </td>
  3280.                 <td style="border-bottom:1px solid black;width:10%"><input type="number" name="attr_NPCFel" style="text-align:center" value="20" />
  3281.                 </td>
  3282.             </tr>
  3283.             <tr>
  3284.                 <td COLSPAN=2 style="border-right:1px solid black;width:10%"><label style="text-align:center">Bonuses</label>
  3285.                 </td>
  3286.                 <td style="border-right:1px solid black;width:10%"><label style="text-align:center">SB</label>
  3287.                 </td>
  3288.                 <td style="border-right:1px solid black;width:10%"><label style="text-align:center">TB</label>
  3289.                 </td>
  3290.                 <td style="border-right:1px solid black;width:10%"><label style="text-align:center">AgB</label>
  3291.                 </td>
  3292.                 <td style="border-right:1px solid black;width:10%"><label style="text-align:center">IntB</label>
  3293.                 </td>
  3294.                 <td style="border-right:1px solid black;width:10%"><label style="text-align:center">PerB</label>
  3295.                 </td>
  3296.                 <td style="border-right:1px solid black;width:10%"><label style="text-align:center">WPB</label>
  3297.                 </td>
  3298.                 <td style="width:10%"><label style="text-align:center">FelB</label>
  3299.                 </td>
  3300.             </tr>
  3301.             <tr>
  3302.                 <td COLSPAN=2 style="border-right:1px solid black;width:10%">
  3303.                 </td>
  3304.                 <td style="border-right:1px solid black;width:10%"><input type="number" name="attr_NPCStrengthBonus" style="text-align:center" value="2" />
  3305.                 </td>
  3306.                 <td style="border-right:1px solid black;width:10%"><input type="number" name="attr_NPCToughnessBonus" style="text-align:center" value="2" />
  3307.                 </td>
  3308.                 <td style="border-right:1px solid black;width:10%"><input type="number" name="attr_NPCAgBonus" style="text-align:center" value="2" />
  3309.                 </td>
  3310.                 <td style="border-right:1px solid black;width:10%"><input type="number" name="attr_NPCIntBonus" style="text-align:center" value="2" />
  3311.                 </td>
  3312.                 <td style="border-right:1px solid black;width:10%"><input type="number" name="attr_NPCPerBonus" style="text-align:center" value="2" />
  3313.                 </td>
  3314.                 <td style="border-right:1px solid black;width:10%"><input type="number" name="attr_NPCWPBonus" style="text-align:center" value="2" />
  3315.                 </td>
  3316.                 <td style="width:10%"><input type="number" name="attr_NPCFelBonus" style="text-align:center" value="2" />
  3317.                 </td>
  3318.             </tr>
  3319.         </table>
  3320.         <br>
  3321.         <table style="border:1px solid black;text-align:center;margin-right:auto;margin-left:auto;">
  3322.             <tr>
  3323.                 <th COLSPAN=6 style="border-bottom:1px solid black;"><label style="text-align:center">Armor</label>
  3324.                 </th>
  3325.             </tr>
  3326.             <tr>
  3327.                 <td style="border-right:1px solid black;width:10%"><label style="text-align:center">Head</label>
  3328.                 </td>
  3329.                 <td style="border-right:1px solid black;width:10%"><label style="text-align:center">L. Arm</label>
  3330.                 </td>
  3331.                 <td style="border-right:1px solid black;width:10%"><label style="text-align:center">R. Arm</label>
  3332.                 </td>
  3333.                 <td style="border-right:1px solid black;width:10%"><label style="text-align:center">Body</label>
  3334.                 </td>
  3335.                 <td style="border-right:1px solid black;width:10%"><label style="text-align:center">L. Leg</label>
  3336.                 </td>
  3337.                 <td style="border-right:1px solid black;width:10%"><label style="text-align:center">R. Leg</label>
  3338.                 </td>
  3339.             </tr>
  3340.             <tr>
  3341.                 <td style="border-right:1px solid black;width:10%"><input type="number" name="attr_NPCArmorHead" style="text-align:center" value="0" />
  3342.                 </td>
  3343.                 <td style="border-right:1px solid black;width:10%"><input type="number" name="attr_NPCArmorLeftArm" style="text-align:center" value="0" />
  3344.                 </td>
  3345.                 <td style="border-right:1px solid black;width:10%"><input type="number" name="attr_NPCArmorRightArm" style="text-align:center" value="0" />
  3346.                 </td>
  3347.                 <td style="border-right:1px solid black;width:10%"><input type="number" name="attr_NPCArmorBody" style="text-align:center" value="0" />
  3348.                 </td>
  3349.                 <td style="border-right:1px solid black;width:10%"><input type="number" name="attr_NPCArmorLeftLeg" style="text-align:center" value="0" />
  3350.                 </td>
  3351.                 <td style="border-right:1px solid black;width:10%"><input type="number" name="attr_NPCArmorRightLeg" style="text-align:center" value="0" />
  3352.                 </td>
  3353.             </tr>
  3354.         </table>
  3355.         <br>
  3356.         <table style="border:1px solid black;text-align:center;margin-right:auto;margin-left:auto;">
  3357.             <tr>
  3358.                 <th COLSPAN=5><label style="border-bottom:1px solid black;text-align:center">Force Field</label>
  3359.                 </th>
  3360.             </tr>
  3361.             <tr>
  3362.                 <td style="border-right:1px solid black;width:10%"><label style="text-align:center">Rating</label>
  3363.                 </td>
  3364.                 <td style="border-right:1px solid black;width:10%"><input type="number" name="attr_NPCForceFieldRating" style="text-align:center" value="0" />
  3365.                 </td>
  3366.                 <td style="border-right:1px solid black;width:10%"><label style="text-align:center">Overload</label>
  3367.                 </td>
  3368.                 <td style="border-right:1px solid black;width:10%"><input type="number" name="attr_NPCForceFieldOverload" style="text-align:center" value="0" />
  3369.                 </td>
  3370.                 <td style="border-right:1px solid black;width:10%"><button type="roll" name="roll_NPCForceFieldRoll" style="height:85%" value="!warforcefield @{NPCForceFieldRating} @{NPCForceFieldOverload} @{NPCQueryRoll}"><label style="text-align:center">Roll</label></button>
  3371.                 </td>
  3372.             </tr>
  3373.         </table>
  3374.         <br>
  3375.                 <div class="sheet-col" >
  3376.                 <h3>Initative</h3>
  3377.                 <div>
  3378.                     <div class="sheet-col" style="width:50%"><label style="text-align:right">Total</label>
  3379.                     </div>
  3380.                     <div class="sheet-col" style="width:40%"><input type="number" style="text-align: center; width:50%" name="attr_NPCInitiative" value="2" />
  3381.                     </div>
  3382.                 </div>
  3383.                 <div>
  3384.                     <div class="sheet-col" style="width:50%">
  3385.                     </div>
  3386.                     <div class="sheet-col" style="width:40%"><button type="roll" name="attr_InitiativeRoll" style="font-size:12px"  value="!warinitroll [[ @{NPCInitiative} + ?{Modfier|0} ]] @{NPCQueryRoll} @{character_name}">Initiative Roll</button>
  3387.                     </div>
  3388.                 </div>
  3389.                 </div>
  3390.         <hr>
  3391.         <div>
  3392.         <label>Custom Rolls</label>
  3393.                 <table style="width:100%">
  3394.                     <tr>
  3395.                         <th>Name</th>
  3396.                         <th>Total</th>
  3397.                         <th>Roll</th>
  3398.                     </tr>
  3399.                    
  3400.                     <tr>
  3401.                         <td style="width:70%; text-align:left"><input class="sheet-baseinfo" type="text" name="attr_NPCCustomName1" /></td></td>
  3402.                         <td style="width:20%"><input type="number" style="text-align:center" name="attr_NPCCustomRoll1" value="0" /></td>
  3403.                         <td style="width:10%"><button type="roll" name="roll_NPCCustomRollTest1" value="!warroll @{NPCCustomRoll1} ?{Modfier|0} @{NPCQueryRoll} @{character_name} @{NPCCustomName1} Test">Roll</button></td>
  3404.                     </tr>
  3405.                     </table>
  3406.                 <fieldset class="repeating_NPCCustomRolls" name="attr_repeating_NPCCustomRolls">
  3407.                     <table style="width:100%">
  3408.                     <tr>
  3409.                         <td style="width:70%; text-align:left"><input class="sheet-baseinfo" type="text" name="attr_NPCCustomName" /></td></td>
  3410.                         <td style="width:20%"><input type="number" style="text-align:center" name="attr_NPCCustomRoll" value="0" /></td>
  3411.                         <td style="width:10%"><button type="roll" name="roll_NPCCustomRollTest" value="!warroll @{NPCCustomRoll} ?{Modfier|0} @{NPCQueryRoll} @{character_name} @{NPCCustomName} Test">Roll</button></td>
  3412.                     </tr>
  3413.                     </table>
  3414.                 </fieldset>
  3415.         </div>
  3416.         <br>
  3417.         <div>
  3418.         <label>Skills</label>
  3419.                 <table style="width:100%">
  3420.                     <tr>
  3421.                         <th>Skill Name</th>
  3422.                         <th>Char.</th>
  3423.                         <th>Trained?</th>
  3424.                         <th>Mod</th>
  3425.                         <th>Roll</th>
  3426.                     </tr>
  3427.                    
  3428.                     <tr>
  3429.                         <td style="width:55%; text-align:left">Psyniscience</td>
  3430.                         <td style="width:10%">
  3431.             <select name="attr_NPCPsyniscience_char" style="width:100%" class="sheet-input-selectbox" >
  3432.                                 <option value="@{NPCWS}">(WS)</option>
  3433.                                 <option value="@{NPCBS}">(BS)</option>
  3434.                                 <option value="@{NPCStrength}">(S)</option>
  3435.                                 <option value="@{NPCToughness}">(T)</option>
  3436.                                 <option value="@{NPCAg}">(Ag)</option>
  3437.                                 <option value="@{NPCInt}">(Int)</option>
  3438.                                 <option value="@{NPCPer}" selected>(Per)</option>
  3439.                                 <option value="@{NPCWP}">(Wp)</option>
  3440.                                 <option value="@{NPCFel}">(Fel)</option>
  3441.             </select>
  3442.                         </td>
  3443.                         <td style="width:15%"> <select name="attr_NPCPsyniscience_Train" style="width:100%" class="sheet-input-selectbox">
  3444.                 <option value="0.5" selected>No</option>
  3445.                 <option value="1">Yes</option>
  3446.                 <option value="1+10">+10</option>
  3447.                 <option value="1+20">+20</option>
  3448.             </select></td>
  3449.                         <td style="width:10%"><input type="number" name="attr_NPCPsyniscience_mod" value="0" /></td>
  3450.                         <td style="width:10%"><button type="roll" name="roll_NPCPsyniscienceTest" value="!warroll @{NPCPsyniscience} ?{Modfier|0} @{NPCQueryRoll} @{character_name} Psyniscience Test">
  3451.                     <input type="number" name="attr_NPCPsyniscience" value="[[ floor(@{NPCPsyniscience_char}*@{NPCPsyniscience_Train}+@{NPCPsyniscience_mod}) ]]" disabled="true"/>
  3452.                 </button></td>
  3453.                     </tr>
  3454.                     </table>
  3455.                 <fieldset class="repeating_NPCskills" name="attr_repeating_NPCskills">
  3456.                     <table style="width:100%">
  3457.                     <tr>
  3458.                         <td style="width:55%">
  3459.                                         <input class="sheet-baseinfo" type="text" name="attr_NPCSkillName" /></td>
  3460.                         <td style="width:10%">
  3461.             <select name="attr_NPCSkill_char" style="width:100%" class="sheet-input-selectbox" >
  3462.                                 <option value="@{NPCWS}">(WS)</option>
  3463.                                 <option value="@{NPCBS}">(BS)</option>
  3464.                                 <option value="@{NPCStrength}">(S)</option>
  3465.                                 <option value="@{NPCToughness}">(T)</option>
  3466.                                 <option value="@{NPCAg}">(Ag)</option>
  3467.                                 <option value="@{NPCInt}">(Int)</option>
  3468.                                 <option value="@{NPCPer}" selected>(Per)</option>
  3469.                                 <option value="@{NPCWP}">(Wp)</option>
  3470.                                 <option value="@{NPCFel}">(Fel)</option>
  3471.             </select>
  3472.                         </td>
  3473.                         <td style="width:15%"> <select name="attr_NPCSkill_Train" style="width:100%" class="sheet-input-selectbox">
  3474.                 <option value="0.5" selected>No</option>
  3475.                 <option value="1">Yes</option>
  3476.                 <option value="1+10">+10</option>
  3477.                 <option value="1+20">+20</option>
  3478.             </select></td>
  3479.                         <td style="width:10%"><input type="number" name="attr_NPCSkill_mod" value="0" /></td>
  3480.                         <td style="width:10%"><button type="roll" name="roll_NPCSkill" value="!warroll [[@{NPCSkill}]] ?{Modfier|0} @{NPCQueryRoll} @{character_name} @{NPCSkillName} Test">
  3481.                     <input type="number" name="attr_NPCSkill" value="floor(@{NPCSkill_char}*@{NPCSkill_Train}+@{NPCSkill_mod})" disabled="true"/>
  3482.                 </button></td>
  3483.                     </tr>
  3484.                     </table>
  3485.                 </fieldset>
  3486.         </div>
  3487.         <br>
  3488.         <div>
  3489.         <label>Talents</label>
  3490.                 <fieldset class="repeating_NPCtalents">
  3491.                     <div style="width:100%">
  3492.                     <div class="sheet-item" style="width:85%"><input type="text" placeholder="Name" name="attr_NPCreptalent" /></div>
  3493.                     <input type="checkbox" class="sheet-arrow" name="attr_NPCreptalentDescHide"/><span></span>
  3494.                         <div class="sheet-body">
  3495.                             <textarea name="attr_NPCreptalentdesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  3496.                         </div>                 
  3497.                     </div>
  3498.                 </fieldset>
  3499.         </div>
  3500.         <br>
  3501.         <div>
  3502.         <label>Traits</label>
  3503.                 <fieldset class="repeating_NPCTraits">
  3504.                     <div style="width:100%">
  3505.                     <div class="sheet-item" style="width:85%"><input type="text" placeholder="Name" name="attr_NPCrepTraits" /></div>
  3506.                     <input type="checkbox" class="sheet-arrow" name="attr_NPCrepTraitsDescHide"/><span></span>
  3507.                         <div class="sheet-body">
  3508.                             <textarea name="attr_NPCrepTraitsdesc" placeholder="Description" style="width:90%; height:50px"></textarea>
  3509.                         </div>                 
  3510.                     </div>
  3511.                 </fieldset>
  3512.         </div>
  3513.         <br>
  3514.         <div>
  3515.         <label>Weapons/Gear</label>
  3516.                     <input type="checkbox" class="sheet-arrow" name="attr_colonyRepresentativeGearDescHide"/><span></span>
  3517.                         <div class="sheet-body">
  3518.                             <textarea name="attr_colonyRepresentativeGeardesc" style="width:90%; height:100px"></textarea>
  3519.                         </div>
  3520.         </div>
  3521.         <br>
  3522.         <div>
  3523.         <label>Personality</label>
  3524.                     <input type="checkbox" class="sheet-arrow" name="attr_colonyRepresentativePersonalityDescHide"/><span></span>
  3525.                         <div class="sheet-body">
  3526.                             <textarea name="attr_colonyRepresentativePersonalitydesc" style="width:90%; height:100px"></textarea>
  3527.                         </div>
  3528.         </div>
  3529.         <br>
  3530.         <div>
  3531.         <label>Notes</label>
  3532.                     <input type="checkbox" class="sheet-arrow" name="attr_colonyRepresentativeNotesDescHide"/><span></span>
  3533.                         <div class="sheet-body">
  3534.                             <textarea name="attr_colonyRepresentativeNotesdesc" style="width:90%; height:100px"></textarea>
  3535.                         </div>
  3536.         </div>
  3537.                
  3538.     </div>
  3539.    
  3540.     </div>
  3541.     </div>
  3542. </div>         
  3543. </div>
  3544.  
  3545. <script type="text/worker">
  3546. /* ---- BEGIN: TheAaronSheet.js ---- */
  3547. // Github:   https://github.com/shdwjk/TheAaronSheet/blob/master/TheAaronSheet.js
  3548. // By:       The Aaron, Arcane Scriptomancer
  3549. // Contact:  https://app.roll20.net/users/104025/the-aaron
  3550.  
  3551. var TAS = TAS || (function(){
  3552.     'use strict';
  3553.  
  3554.     var version = '0.2.4',
  3555.         lastUpdate = 1457098091,
  3556.  
  3557.         loggingSettings = {
  3558.             debug: {
  3559.                 key:     'debug',
  3560.                 title:   'DEBUG',
  3561.                 color: {
  3562.                     bgLabel: '#7732A2',
  3563.                     label:   '#F2EF40',
  3564.                     bgText:  '#FFFEB7',
  3565.                     text:    '#7732A2'
  3566.                 }
  3567.             },
  3568.             error: {
  3569.                 key:     'error',
  3570.                 title:   'Error',
  3571.                 color: {
  3572.                     bgLabel: '#C11713',
  3573.                     label:   'white',
  3574.                     bgText:  '#C11713',
  3575.                     text:    'white'
  3576.                 }
  3577.             },
  3578.             warn: {
  3579.                 key:     'warn',
  3580.                 title:   'Warning',
  3581.                 color: {
  3582.                     bgLabel: '#F29140',
  3583.                     label:   'white',
  3584.                     bgText:  '#FFD8B7',
  3585.                     text:    'black'
  3586.                 }
  3587.             },
  3588.             info: {
  3589.                 key:     'info',
  3590.                 title:   'Info',
  3591.                 color: {
  3592.                     bgLabel: '#413FA9',
  3593.                     label:   'white',
  3594.                     bgText:  '#B3B2EB',
  3595.                     text:    'black'
  3596.                 }
  3597.             },
  3598.             notice: {
  3599.                 key:     'notice',
  3600.                 title:   'Notice',
  3601.                 color: {
  3602.                     bgLabel: '#33C133',
  3603.                     label:   'white',
  3604.                     bgText:  '#ADF1AD',
  3605.                     text:    'black'
  3606.                 }
  3607.             },
  3608.             log: {
  3609.                 key:     'log',
  3610.                 title:   'Log',
  3611.                 color: {
  3612.                     bgLabel: '#f2f240',
  3613.                     label:   'black',
  3614.                     bgText:  '#ffff90',
  3615.                     text:    'black'
  3616.                 }
  3617.             },
  3618.             callstack: {
  3619.                 key:     'TAS',
  3620.                 title:   'function',
  3621.                 color: {
  3622.                     bgLabel: '#413FA9',
  3623.                     label:   'white',
  3624.                     bgText:  '#B3B2EB',
  3625.                     text:    'black'
  3626.                 }
  3627.             },
  3628.             callstack_async: {
  3629.                 key:     'TAS',
  3630.                 title:   'ASYNC CALL',
  3631.                 color: {
  3632.                     bgLabel: '#413FA9',
  3633.                     label:   'white',
  3634.                     bgText:  '#413FA9',
  3635.                     text:    'white'
  3636.                 }
  3637.             },
  3638.             TAS: {
  3639.                 key:     'TAS',
  3640.                 title:   'TAS',
  3641.                 color: {
  3642.                     bgLabel: 'grey',
  3643.                     label:   'black;background:linear-gradient(#304352,#d7d2cc,#d7d2cc,#d7d2cc,#304352)',
  3644.                     bgText:  'grey',
  3645.                     text:    'black;background:linear-gradient(#304352,#d7d2cc,#d7d2cc,#d7d2cc,#304352)'
  3646.                 }
  3647.             }
  3648.         },
  3649.  
  3650.  
  3651.         config = {
  3652.             debugMode: false,
  3653.             logging: {
  3654.                 log: true,
  3655.                 notice: true,
  3656.                 info: true,
  3657.                 warn: true,
  3658.                 error: true,
  3659.                 debug: false
  3660.             }
  3661.         },
  3662.  
  3663.         callstackRegistry = [],
  3664.         queuedUpdates = {}, //< Used for delaying saves till the last momment.
  3665.  
  3666.    complexType = function(o){
  3667.        switch(typeof o){
  3668.            case 'string':
  3669.                return 'string';
  3670.            case 'boolean':
  3671.                return 'boolean';
  3672.            case 'number':
  3673.                return (_.isNaN(o) ? 'NaN' : (o.toString().match(/\./) ? 'decimal' : 'integer'));
  3674.            case 'function':
  3675.                return 'function: '+(o.name ? o.name+'()' : '(anonymous)');
  3676.            case 'object':
  3677.                return (_.isArray(o) ? 'array' : (_.isArguments(o) ? 'arguments' : ( _.isNull(o) ? 'null' : 'object')));
  3678.            default:
  3679.                return typeof o;
  3680.        }
  3681.    },
  3682.  
  3683.     dataLogger = function(primaryLogger,secondaryLogger,data){
  3684.        _.each(data,function(m){
  3685.            var type = complexType(m);
  3686.            switch(type){
  3687.                case 'string':
  3688.                    primaryLogger(m);
  3689.                    break;
  3690.                case 'undefined':
  3691.                case 'null':
  3692.                case 'NaN':
  3693.                    primaryLogger('['+type+']');
  3694.                    break;
  3695.                case 'number':
  3696.                case 'not a number':
  3697.                case 'integer':
  3698.                case 'decimal':
  3699.                case 'boolean':
  3700.                    primaryLogger('['+type+']: '+m);
  3701.                    break;
  3702.                default:
  3703.                    primaryLogger('['+type+']:=========================================');
  3704.                    secondaryLogger(m);
  3705.                    primaryLogger('=========================================================');
  3706.                    break;
  3707.            }
  3708.        });
  3709.     },
  3710.  
  3711.  
  3712.    colorLog = function(options){
  3713.        var coloredLoggerFunction,
  3714.            key = options.key,
  3715.            label = options.title || 'TAS',
  3716.            lBGColor = (options.color && options.color.bgLabel) || 'blue',
  3717.            lTxtColor = (options.color && options.color.label) || 'white',
  3718.            mBGColor = (options.color && options.color.bgText) || 'blue',
  3719.            mTxtColor = (options.color && options.color.text) || 'white';
  3720.  
  3721.        coloredLoggerFunction = function(message){
  3722.            console.log(
  3723.                '%c '+label+': %c '+message + ' ',
  3724.                'background-color: '+lBGColor+';color: '+lTxtColor+'; font-weight:bold;',
  3725.                'background-color: '+mBGColor+';color: '+mTxtColor+';'
  3726.            );
  3727.        };
  3728.        return function(){
  3729.            if('TAS'===key || config.logging[key]){
  3730.               dataLogger(coloredLoggerFunction,function(m){console.log(m);},_.toArray(arguments));
  3731.            }
  3732.        };
  3733.    },
  3734.  
  3735.    logDebug  = colorLog(loggingSettings.debug),
  3736.    logError  = colorLog(loggingSettings.error),
  3737.    logWarn   = colorLog(loggingSettings.warn),
  3738.    logInfo   = colorLog(loggingSettings.info),
  3739.    logNotice = colorLog(loggingSettings.notice),
  3740.    logLog    = colorLog(loggingSettings.log),
  3741.    log       = colorLog(loggingSettings.TAS),
  3742.    logCS     = colorLog(loggingSettings.callstack),
  3743.    logCSA    = colorLog(loggingSettings.callstack_async),
  3744.  
  3745.    registerCallstack = function(callstack,label){
  3746.        var idx=_.findIndex(callstackRegistry,function(o){
  3747.            return (_.difference(o.stack,callstack).length === _.difference(callstack,o.stack).length) &&
  3748.                _.difference(o.stack,callstack).length === 0 &&
  3749.                o.label === label;
  3750.        });
  3751.        if(-1 === idx){
  3752.            idx=callstackRegistry.length;
  3753.            callstackRegistry.push({
  3754.                stack: callstack,
  3755.                label: label
  3756.            });
  3757.        }
  3758.        return idx;
  3759.    },
  3760.  
  3761.    setConfigOption = function(options){
  3762.        var newconf =_.defaults(options,config);
  3763.        newconf.logging=_.defaults(
  3764.            (options && options.logging)||{},
  3765.            config.logging
  3766.        );
  3767.        config=newconf;
  3768.    },
  3769.    
  3770.    debugMode = function(){
  3771.        config.logging.debug=true;
  3772.        config.debugMode = true;
  3773.    },
  3774.  
  3775.    getCallstack = function(){
  3776.        var e = new Error('dummy'),
  3777.            stack = _.map(_.rest(e.stack.replace(/^[^\(]+?[\n$]/gm, '')
  3778.            .replace(/^\s+at\s+/gm, '')
  3779.            .replace(/^Object.<anonymous>\s*\(/gm, '{anonymous}()@')
  3780.             .split('\n')),function(l){
  3781.                 return l.replace(/\s+.*$/,'');
  3782.             });
  3783.         return stack;
  3784.     },
  3785.     logCallstackSub = function(cs){
  3786.         var matches, csa;
  3787.         _.find(cs,function(line){
  3788.             matches = line.match(/TAS_CALLSTACK_(\d+)/);
  3789.             if(matches){
  3790.                csa=callstackRegistry[matches[1]];
  3791.                logCSA( '===================='+(csa.label ? '> '+csa.label+' <' : '')+'====================');
  3792.               logCallstackSub(csa.stack);
  3793.               return true;
  3794.            }
  3795.            logCS(line);
  3796.            return false;
  3797.        });
  3798.    },
  3799.    logCallstack = function(){
  3800.        var cs;
  3801.        if(config.debugMode){
  3802.            cs = getCallstack();
  3803.            cs.shift();
  3804.            log('==============================> CALLSTACK <==============================');
  3805.            logCallstackSub(cs);
  3806.            log('=========================================================================');
  3807.        }
  3808.    },
  3809.    wrapCallback = function (label, callback, context){
  3810.        var callstack;
  3811.        if('function' === typeof label){
  3812.            context=callback;
  3813.            callback=label;
  3814.            label=undefined;
  3815.        }
  3816.        if(!config.debugMode){
  3817.            return (function(cb,ctx){
  3818.                return function(){
  3819.                    cb.apply(ctx||{},arguments);
  3820.                };
  3821.            }(callback,context));
  3822.        }
  3823.        
  3824.        callstack = getCallstack();
  3825.        callstack.shift();
  3826.        
  3827.        return (function(cb,ctx,cs,lbl){
  3828.            var ctxref=registerCallstack(cs,lbl);
  3829.            /*jshint -W054 */
  3830.            return new Function('cb','ctx','TASlog',
  3831.                "return function TAS_CALLSTACK_"+ctxref+"(){"+
  3832.                    "TASlog('Entering: '+(cb.name||'(anonymous function)'));"+
  3833.                    "cb.apply(ctx||{},arguments);"+
  3834.                    "TASlog('Exiting: '+(cb.name||'(anonymous function)'));"+
  3835.                "};")(cb,ctx,log);
  3836.            /*jshint +W054 */
  3837.        }(callback,context,callstack,label));
  3838.    },
  3839.    prepareUpdate = function( attribute, value ){
  3840.        queuedUpdates[attribute]=value;
  3841.    },
  3842.    applyQueuedUpdates = function() {
  3843.      setAttrs(queuedUpdates);
  3844.      queuedUpdates = {};
  3845.    },
  3846.     namesFromArgs = function(args,base){
  3847.        return _.chain(args)
  3848.            .reduce(function(memo,attr){
  3849.                if('string' === typeof attr) {
  3850.                    memo.push(attr);
  3851.                } else if(_.isArray(args) || _.isArguments(args)){
  3852.                    memo = namesFromArgs(attr,memo);
  3853.                }
  3854.                return memo;
  3855.            },(_.isArray(base) && base) || [])
  3856.            .uniq()
  3857.            .value();
  3858.     },
  3859.     addId = function(obj,value){
  3860.         Object.defineProperty(obj,'id',{
  3861.             value: value,
  3862.             writeable: false,
  3863.             enumerable: false
  3864.         });
  3865.     },
  3866.     addProp = function(obj,prop,value,fullname){
  3867.         (function(){
  3868.            var pname=(_.contains(['S','F','I','D'],prop) ? '_'+prop : prop),
  3869.                 full_pname = fullname || prop,
  3870.                pvalue=value;
  3871.            _.each(['S','I','F'],function(p){
  3872.                if( !_.has(obj,p)){
  3873.                    Object.defineProperty(obj, p, {
  3874.                        value: {},
  3875.                        enumerable: false,
  3876.                        readonly: true
  3877.                    });
  3878.                }
  3879.            });
  3880.            if( !_.has(obj,'D')){
  3881.                Object.defineProperty(obj, 'D', {
  3882.                    value: _.reduce(_.range(10),function(m,d){
  3883.                            Object.defineProperty(m, d, {
  3884.                                value: {},
  3885.                                enumerable: true,
  3886.                                readonly: true
  3887.                            });
  3888.                            return m;
  3889.                        },{}),
  3890.                    enumerable: false,
  3891.                    readonly: true
  3892.                });
  3893.            }
  3894.            // Raw value
  3895.             Object.defineProperty(obj, pname, {
  3896.                enumerable: true,
  3897.                 set: function(v){
  3898.                    if(v!==pvalue) {
  3899.                        pvalue=v;
  3900.                        prepareUpdate(full_pname,v);
  3901.                    }
  3902.                 },
  3903.                 get: function(){
  3904.                     return pvalue;
  3905.                 }
  3906.             });
  3907.            
  3908.            // string value
  3909.             Object.defineProperty(obj.S, pname, {
  3910.                enumerable: true,
  3911.                 set: function(v){
  3912.                    var val=v.toString();
  3913.                    if(val !== pvalue) {
  3914.                        pvalue=val;
  3915.                        prepareUpdate(full_pname,val);
  3916.                    }
  3917.                 },
  3918.                 get: function(){
  3919.                     return pvalue.toString();
  3920.                 }
  3921.             });
  3922.            // int value
  3923.             Object.defineProperty(obj.I, pname, {
  3924.                enumerable: true,
  3925.                 set: function(v){
  3926.                    var val=parseInt(v,10) || 0;
  3927.                    if(val !== pvalue){
  3928.                        pvalue=val;
  3929.                        prepareUpdate(full_pname,val);
  3930.                    }
  3931.                 },
  3932.                 get: function(){
  3933.                     return parseInt(pvalue,10) || 0;
  3934.                 }
  3935.             });
  3936.            // float value
  3937.             Object.defineProperty(obj.F, pname, {
  3938.                enumerable: true,
  3939.                 set: function(v){
  3940.                    var val=parseFloat(v) || 0;
  3941.                    if(val !== pvalue) {
  3942.                        pvalue=val;
  3943.                        prepareUpdate(full_pname,val);
  3944.                    }
  3945.                 },
  3946.                 get: function(){
  3947.                     return parseFloat(pvalue) || 0;
  3948.                 }
  3949.             });
  3950.            _.each(_.range(10),function(d){
  3951.                Object.defineProperty(obj.D[d], pname, {
  3952.                    enumerable: true,
  3953.                    set: function(v){
  3954.                        var val=(parseFloat(v) || 0).toFixed(d);
  3955.                        if(val !== pvalue){
  3956.                            pvalue=val;
  3957.                            prepareUpdate(full_pname,val);
  3958.                        }
  3959.                    },
  3960.                    get: function(){
  3961.                        return (parseFloat(pvalue) || 0).toFixed(d);
  3962.                    }
  3963.                });
  3964.            });
  3965.         }());
  3966.     },
  3967.    
  3968.     repeating = function( section ) {
  3969.         return (function(s){
  3970.             var sectionName = s,
  3971.                 attrNames = [],
  3972.                 fieldNames = [],
  3973.                 operations = [],
  3974.                after = [],
  3975.            
  3976.             repAttrs = function TAS_Repeating_Attrs(){
  3977.                 attrNames = namesFromArgs(arguments,attrNames);
  3978.                 return this;
  3979.             },
  3980.             repFields = function TAS_Repeating_Fields(){
  3981.                 fieldNames = namesFromArgs(arguments,fieldNames);
  3982.                 return this;
  3983.             },
  3984.             repReduce = function TAS_Repeating_Reduce(func, initial, final, context) {
  3985.                 operations.push({
  3986.                    type: 'reduce',
  3987.                    func: (func && _.isFunction(func) && func) || _.noop,
  3988.                    memo: (_.isUndefined(initial) && 0) || initial,
  3989.                    final: (final && _.isFunction(final) && final) || _.noop,
  3990.                    context: context || {}
  3991.                });
  3992.                 return this;
  3993.             },
  3994.             repMap = function TAS_Repeating_Map(func, final, context) {
  3995.                 operations.push({
  3996.                    type: 'map',
  3997.                    func: (func && _.isFunction(func) && func) || _.noop,
  3998.                    final: (final && _.isFunction(final) && final) || _.noop,
  3999.                    context: context || {}
  4000.                });
  4001.                 return this;
  4002.             },
  4003.            repEach = function TAS_Repeating_Each(func, final, context) {
  4004.                 operations.push({
  4005.                    type: 'each',
  4006.                    func: (func && _.isFunction(func) && func) || _.noop,
  4007.                    final: (final && _.isFunction(final) && final) || _.noop,
  4008.                    context: context || {}
  4009.                });
  4010.                 return this;
  4011.            },
  4012.            repTap = function TAS_Repeating_Tap(final, context) {
  4013.                 operations.push({
  4014.                    type: 'tap',
  4015.                    final: (final && _.isFunction(final) && final) || _.noop,
  4016.                    context: context || {}
  4017.                });
  4018.                 return this;
  4019.            },
  4020.            repAfter = function TAS_Repeating_After(callback,context) {
  4021.                 after.push({
  4022.                    callback: (callback && _.isFunction(callback) && callback) || _.noop,
  4023.                    context: context || {}
  4024.                });
  4025.                 return this;
  4026.            },
  4027.             repExecute = function TAS_Repeating_Execute(callback,context){
  4028.                 var rowSet = {},
  4029.                     attrSet = {},
  4030.                     fieldIds = [],
  4031.                     fullFieldNames = [];
  4032.                repAfter(callback,context);
  4033.                 // call each operation per row.
  4034.                 // call each operation's final
  4035.                 getSectionIDs("repeating_"+sectionName,function(ids){
  4036.                     fieldIds = ids;
  4037.                     fullFieldNames = _.reduce(fieldIds,function(memo,id){
  4038.                         return memo.concat(_.map(fieldNames,function(name){
  4039.                             return 'repeating_'+sectionName+'_'+id+'_'+name;  
  4040.                         }));
  4041.                     },[]);
  4042.                     getAttrs( _.uniq(attrNames.concat(fullFieldNames)), function(values){
  4043.                         _.each(attrNames,function(aname){
  4044.                             if(values.hasOwnProperty(aname)){
  4045.                                 addProp(attrSet,aname,values[aname]);
  4046.                             }
  4047.                         });
  4048.  
  4049.                         rowSet = _.reduce(fieldIds,function(memo,id){
  4050.                             var r={};
  4051.                             addId(r,id);
  4052.                             _.each(fieldNames,function(name){
  4053.                                 var fn = 'repeating_'+sectionName+'_'+id+'_'+name;  
  4054.                                 addProp(r,name,values[fn],fn);
  4055.                             });
  4056.  
  4057.                             memo[id]=r;
  4058.  
  4059.                             return memo;
  4060.                         },{});
  4061.  
  4062.                        _.each(operations,function(op){
  4063.                            var res;
  4064.                            switch(op.type){
  4065.                                case 'tap':
  4066.                                    _.bind(op.final,op.context,rowSet,attrSet)();
  4067.                                    break;
  4068.  
  4069.                                case 'each':
  4070.                                    _.each(rowSet,function(r){
  4071.                                        _.bind(op.func,op.context,r,attrSet,r.id,rowSet)();
  4072.                                    });
  4073.                                    _.bind(op.final,op.context,rowSet,attrSet)();
  4074.                                    break;
  4075.  
  4076.                                case 'map':
  4077.                                    res = _.map(rowSet,function(r){
  4078.                                        return _.bind(op.func,op.context,r,attrSet,r.id,rowSet)();
  4079.                                    });
  4080.                                    _.bind(op.final,op.context,res,rowSet,attrSet)();
  4081.                                    break;
  4082.  
  4083.                                case 'reduce':
  4084.                                    res = op.memo;
  4085.                                    _.each(rowSet,function(r){
  4086.                                        res = _.bind(op.func,op.context,res,r,attrSet,r.id,rowSet)();
  4087.                                    });
  4088.                                    _.bind(op.final,op.context,res,rowSet,attrSet)();
  4089.                                    break;
  4090.                            }
  4091.                        });
  4092.  
  4093.                        // finalize attrs
  4094.                        applyQueuedUpdates();
  4095.                        _.each(after,function(op){
  4096.                            _.bind(op.callback,op.context)();
  4097.                        });
  4098.                     });
  4099.                 });
  4100.             };
  4101.                
  4102.             return {
  4103.                 attrs: repAttrs,
  4104.                 attr: repAttrs,
  4105.  
  4106.                 column: repFields,
  4107.                 columns: repFields,
  4108.                 field: repFields,
  4109.                 fields: repFields,
  4110.  
  4111.                 reduce: repReduce,
  4112.                 inject: repReduce,
  4113.                 foldl: repReduce,
  4114.  
  4115.                 map: repMap,
  4116.                 collect: repMap,
  4117.  
  4118.                 each: repEach,
  4119.                forEach: repEach,
  4120.  
  4121.                tap: repTap,
  4122.                'do': repTap,
  4123.  
  4124.                 after: repAfter,
  4125.                 last: repAfter,
  4126.                 done: repAfter,
  4127.  
  4128.                 execute: repExecute,
  4129.                 go: repExecute,
  4130.                 run: repExecute
  4131.             };
  4132.         }(section));
  4133.     },
  4134.  
  4135.  
  4136.    repeatingSimpleSum = function(section, field, destination){
  4137.        repeating(section)
  4138.            .attr(destination)
  4139.            .field(field)
  4140.            .reduce(function(m,r){
  4141.                return m + (r.F[field]);
  4142.            },0,function(t,r,a){
  4143.                a.S[destination]=t;
  4144.            })
  4145.            .execute();
  4146.    };
  4147.  
  4148.     console.log('-----¸  The Aaron Sheet  v'+version+'  -----','background: linear-gradient(to right,green,white,white,green); color:black;text-shadow: 0 0 8px white;');
  4149.     console.log('-----¸  Last update: '+(new Date(lastUpdate*1000))+'  -----','background: linear-gradient(to right,green,white,white,green); color:black;text-shadow: 0 0 8px white;');
  4150.  
  4151.  
  4152.    return {
  4153.        /* Repeating Sections */
  4154.        repeatingSimpleSum: repeatingSimpleSum,
  4155.         repeating: repeating,
  4156.  
  4157.        /* Configuration */
  4158.        config: setConfigOption,
  4159.  
  4160.        /* Debugging */
  4161.        callback: wrapCallback,
  4162.        callstack: logCallstack,
  4163.        debugMode: debugMode,
  4164.        _fn: wrapCallback,
  4165.  
  4166.        /* Logging */
  4167.        debug: logDebug,
  4168.        error: logError,
  4169.        warn: logWarn,
  4170.        info: logInfo,
  4171.        notice: logNotice,
  4172.        log: logLog
  4173.    };
  4174. }());
  4175.  
  4176. /* ---- END: TheAaronSheet.js ---- */
  4177.  
  4178.  
  4179. /*on("sheet:opened change:Mag_taken change:Mag_temp", function() {
  4180.     getAttrs(["Mag_taken", "Mag_temp", "Mag_Script"], function(value)
  4181.     {
  4182.         setAttrs({Mag_Script: Number(value.Mag_taken) + Number(value.Mag_temp)});
  4183.     });
  4184. });*/
  4185.        
  4186.         on('change:repeating_gear', function(){
  4187.    TAS.repeating('gear')  //< set the repeating group we are using
  4188.        .attrs('WeightCurrCarry', 'WeightTotalCarry')  //< specify we want access to the total_weight attribute
  4189.        .fields('gear_weight','gear_holding') //< specify we want the item and weight repeating fields
  4190.        .reduce(function(memo,row,attrSet,id,rowSet)
  4191.        {
  4192.             if (row.gear_holding)
  4193.             {
  4194.                 if (row.S.gear_holding == "true")
  4195.                 {
  4196.                     memo.current += row.F.gear_weight;
  4197.                 }
  4198.             }
  4199.             memo.total += row.F.gear_weight;
  4200.             return memo;
  4201.        },{total: 0, current: 0},function(memo,rowSet,attrSet)
  4202.        {
  4203.            attrSet.D[2].WeightCurrCarry = memo.current;
  4204.            attrSet.D[2].WeightTotalCarry = memo.total;
  4205.        })
  4206.        .execute();
  4207. });
  4208.         on('change:repeating_Requisition', function(){
  4209.    TAS.repeating('Requisition')  //< set the repeating group we are using
  4210.        .attrs('RequisitionCurrCarry', 'RequisitionTotalCarry')  //< specify we want access to the total_weight attribute
  4211.        .fields('RequisitionCost','Requisition_holding') //< specify we want the item and weight repeating fields
  4212.        .reduce(function(memo,row,attrSet,id,rowSet)
  4213.        {
  4214.             if (row.Requisition_holding)
  4215.             {
  4216.                 if (row.S.Requisition_holding == "true")
  4217.                 {
  4218.                     memo.current += row.F.RequisitionCost;
  4219.                 }
  4220.             }
  4221.             memo.total += row.F.RequisitionCost;
  4222.             return memo;
  4223.        },{total: 0, current: 0},function(memo,rowSet,attrSet)
  4224.        {
  4225.            attrSet.D[2].RequisitionCurrCarry = memo.current;
  4226.            attrSet.D[2].RequisitionTotalCarry = memo.total;
  4227.        })
  4228.        .execute();
  4229. });
  4230.         on('change:repeating_advancements', function(){
  4231.    TAS.repeating('advancements')  //< set the repeating group we are using
  4232.        .attrs('xpcalculated')  //< specify we want access to the total_weight attribute
  4233.        .fields('advancement1xp', 'advancement2xp', 'advancement3xp') //< specify we want the item and weight repeating fields
  4234.        .reduce(function(memo,row,attrSet,id,rowSet)
  4235.         {          
  4236.             memo.total += row.I.advancement1xp;
  4237.             memo.total += row.I.advancement2xp;
  4238.             memo.total += row.I.advancement3xp;
  4239.             return memo;
  4240.        },{total: 0},function(memo,rowSet,attrSet)
  4241.        {
  4242.         log (memo.total);
  4243.            attrSet.I.xpcalculated = memo.total;
  4244.        })
  4245.        .execute();
  4246. });
  4247. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement