Files
roll20-character-sheets/MechWarrior Destiny/MWCharSheet.html
T
AgentofChange 091f801cad MechWarrior Destiny Character Sheet 2.0 (#6011)
* Sheet 2.0

format, functionality, adn bug fixes.

* 2.0

name changes

* renamed to original names
2020-03-30 13:36:56 -04:00

876 lines
59 KiB
HTML

<!--START COPY HERE-->
<!--Top of Charsheet Inputs-->
<input type="checkbox" name="attr_tab" class="hidden tab-is-main" value="main" checked>
<!--Page Selector Tabs-->
<div class="title">
<label class="tab-selector" title="General">
<input type="radio" name="attr_tab" value="general" checked>
<span>
General Information and Battlemech
</span>
</label>
<label class="tab-selector" title="Stats">
<input type="radio" name="attr_tab" value="stats">
<span>
Stats, Skills, and Equipment
</span>
</label>
</div>
<!--Page Data-->
<!--General Information and Battlemech Page-->
<input type="checkbox" name="attr_tab" class="hidden tab" value="general" checked>
<div class="page-general pane">
<!--Vital Factors-->
<div class="container-vital-factors">
<input type="text" class="field-name font-name transparent" autocomplete="off" spellcheck="false" title="@{character_name}" name="attr_character_name">
<select type="text" class="field-faction font-small transparent" title="@{faction}" name="attr_faction">
<option value="blank" selected="selected"> </option>
<option value="liao">Capellan Confederation (House Liao)</option>
<option value="kurita">Draconis Combine (House Kurita)</option>
<option value="davion">Federated Suns (House Davion)</option>
<option value="marik">Free Worlds League (House Marik)</option>
<option value="steiner">Lyran Commonwealth (House Steiner)</option>
<option value="canopus">Magistracy of Canopus</option>
<option value="outworlds">Outworlds Alliance</option>
<option value="taurian">Taurian Concordat</option>
<option value="pirate">Pirate (Bandit Kingdom)</option>
<option value="comStar">ComStar</option>
<option value="mercenary">Mercenary</option>
<option value="pirate">Pirate (Independent)</option>
<option value="unaffiliated">Unaffiliated</option>
</select>
<input type="text" class="field-age font-small transparent" autocomplete="off" spellcheck="false" title="@{age}" name="attr_age">
<input type="text" class="field-rank font-small transparent" autocomplete="off" spellcheck="false" title="@{rank}" name="attr_rank">
<select class="field-experience-level font-small transparent" title="@{experience}" name="attr_experience">
<option value="0" selected="selected">Green</option>
<option value="1">Regular</option>
<option value="2">Veteran</option>
<option value="3">Elite</option>
</select>
<label class="label-totalpoints">Character Points: ATTR-___ SKILLS-___</label>
<input type="number" class="field-attr-total font-medium transparent" title="@{attr-total}" name="attr_attr-total" value="@{str}+@{rfl}+@{int}+@{wil}+@{cha}+@{edg}" disabled="true">
<input type="number" class="field-skill-total font-medium transparent" title="@{skill-total}" name="attr_skill-total" value="@{skill-rating1}+@{skill-rating2}+@{skill-rating3}+@{skill-rating4}+@{skill-rating5}+@{skill-rating6}+@{skill-rating7}+@{skill-rating8}+@{skill-rating9}" disabled="true">
<input type="text" class="field-height font-medium transparent" autocomplete="off" spellcheck="false" title="@{height}" name="attr_height">
<input type="text" class="field-weight font-medium transparent" autocomplete="off" spellcheck="false" title="@{weight}" name="attr_weight">
<input type="number" class="field-xp font-small transparent" title="@{xp}" name="attr_xp" value="0" min="0">
<input type="text" class="field-tag1 font-medium transparent" autocomplete="off" spellcheck="false" title="@{tag1}" name="attr_tag1">
<input type="text" class="field-tag2 font-medium transparent" autocomplete="off" spellcheck="false" title="@{tag2}" name="attr_tag2">
<input type="text" class="field-tag3 font-medium transparent" autocomplete="off" spellcheck="false" title="@{tag3}" name="attr_tag3">
<input type="text" class="field-tag4 font-medium transparent" autocomplete="off" spellcheck="false" title="@{tag4}" name="attr_tag4">
<input type="text" class="field-tag5 font-medium transparent" autocomplete="off" spellcheck="false" title="@{tag5}" name="attr_tag5">
<!--Partial Plot Points-->
<div class="container-partial-plot">
<input type="checkbox" class="partial-plot1" name="attr_plot1" value="plot1">
<input type="checkbox" class="partial-plot2" name="attr_plot2" value="plot2">
<input type="checkbox" class="partial-plot3" name="attr_plot3" value="plot3">
</div>
<!--Full Plot Points-->
<label class="label-full">Full</label>
<label class="label-plot">Plot</label>
<label class="label-points">Points</label>
<input type="number" class="field-full-plot font-name transparent" title="@{full-plot}" name="attr_full-plot" value="3" min="0" max="5">
<!--Edge Points-->
<label class="label-edge">Edge</label>
<label class="label-points2">Points</label>
<input type="number" class="field-edge-points font-name transparent" title="@{edge-points}" name="attr_edge-points" value="" min="0">
</div>
<!--Identity Text-->
<div class="container-identity">
<textarea class="field-history font-medium transparent" spellcheck="false" title="@{history}" name="attr_history"></textarea>
<textarea class="field-personality font-medium transparent" spellcheck="false" title="@{personality}" name="attr_personality"></textarea>
<textarea class="field-disposition font-medium transparent" spellcheck="false" title="@{disposition}" name="attr_disposition"></textarea>
</div>
<!--Battlemech-->
<div class="container-battlemech">
<div class="container-mech-rowtop">
<!--Mech Silhouette Top-->
<div class="column-mech-top container-mechchart-top" >
<div class="container-ra">
<input type="number" class="field-rightarm-armor font-large transparent" title="@{rightarm-armor}" name="attr_rightarm-armor" value="" min="0">
<input type="number" class="field-rightarm-structure font-large transparent" title="@{rightarm-structure}" name="attr_rightarm-structure" value="" min="0">
</div>
<div class="container-torso">
<input type="number" class="field-torso-armor font-large transparent" title="@{torso-armor}" name="attr_torso-armor" value="" min="0">
<input type="number" class="field-torso-structure font-large transparent" title="@{torso-structure}" name="attr_torso-structure" value="" min="0">
</div>
<div class="container-la">
<input type="number" class="field-leftarm-armor font-large transparent" title="@{leftarm-armor}" name="attr_leftarm-armor" value="" min="0">
<input type="number" class="field-leftarm-structure font-large transparent" title="@{leftarm-structure}" name="attr_leftarm-structure" value="" min="0">
</div>
<div class="container-head">
<input type="number" class="field-head-armor font-large transparent" title="@{head-armor}" name="attr_head-armor" value="" min="0">
<input type="number" class="field-head-structure font-large transparent" title="@{head-structure}" name="attr_head-structure" value="" min="0">
</div>
</div>
<!--Mech Details-->
<div class="column-mech-top container-mechhardware">
<label class="label-armor-values">Armor Values (A/S):</label>
<label class="label-head">Head-</label>
<input type="number" class="field-head-armor-max transparent" name="attr_head-armor-max" title="@{head-armor-max}" value="0" min="0">
<label class="label-head-slash">/</label>
<input type="number" class="field-head-structure-max transparent" name="attr_head-structure-max" title="@{head-structure-max}" value="0" min="0">
<label class="label-torso">Torso-</label>
<input type="number" class="field-torso-armor-max transparent" name="attr_torso-armor-max" title="@{torso-armor-max}" value="0" min="0">
<label class="label-torso-slash">/</label>
<input type="number" class="field-torso-structure-max transparent" name="attr_torso-structure-max" title="@{torso-structure-max}" value="0" min="0">
<label class="label-arms">Arms-</label>
<input type="number" class="field-arm-armor-max transparent" name="attr_arm-armor-max" title="@{arm-armor-max}" value="0" min="0">
<label class="label-arms-slash">/</label>
<input type="number" class="field-arm-structure-max transparent" name="attr_arm-structure-max" title="@{arm-structure-max}" value="0" min="0">
<label class="label-legs">Legs-</label>
<input type="number" class="field-leg-armor-max transparent" name="attr_leg-armor-max" title="@{leg-armor-max}" value="0" min="0">
<label class="label-legs-slash">/</label>
<input type="number" class="field-leg-structure-max transparent" name="attr_leg-structure-max" title="@{leg-structure-max}" value="0" min="0">
<input type="text" class="field-mechtype font-small transparent" title="@{mechtype}" name="attr_mechtype" autocomplete="off" spellcheck="false">
<input type="text" class="field-mechweight font-small transparent" title="@{mechweight}" name="attr_mechweight" autocomplete="off" spellcheck="false">
<select class="field-mechweight font-small transparent" title="@{mechweight-damage}" name="attr_weight-damage">
<option value="0" selected="selected"> </option>
<option value="1">Light</option>
<option value="2">Medium</option>
<option value="3">Heavy</option>
<option value="4">Assault</option>
</select>
<input type="number" class="field-mechton font-small transparent" title="@{mechton}" name="attr_mechmechton" value=" " min="20" max="100" step="5">
<input type="number" class="field-mechmove font-medium transparent" title="@{mechmove}" name="attr_mechmove" value=" " min="0" max="5">
<input type="text" class="field-mechheat font-small transparent" title="@{mechheat}" name="attr_mechheat" value=" " >
<label class="label-mechheatbuildup">Heat:</label>
<input type="number" class="field-mechheatbuildup font-small transparent" title="@{mechheatbuildup}" name="attr_mechheatbuildup" value=" " min="0">
<textarea class="field-mechequipment font-small transparent" spellcheck="false" title="@{mechequipment}" name="attr_mechequipment"></textarea>
<input type="text" class="field-mechtag1 font-medium transparent" title="@{mechtag1}" name="attr_mechtag1" autocomplete="off" spellcheck="false">
<input type="text" class="field-mechtag2 font-medium transparent" title="@{mechtag2}" name="attr_mechtag2" autocomplete="off" spellcheck="false">
<input type="text" class="field-mechtag3 font-medium transparent" title="@{mechtag3}" name="attr_mechtag3" autocomplete="off" spellcheck="false">
<input type="text" class="field-mechtag4 font-medium transparent" title="@{mechtag4}" name="attr_mechtag4" autocomplete="off" spellcheck="false">
<input type="text" class="field-mechtag5 font-medium transparent" title="@{mechtag5}" name="attr_mechtag5" autocomplete="off" spellcheck="false">
</div>
</div>
<div class="container-mech-rowbottom">
<!--Mech Silhouette Bottom-->
<div class="column-mech-bottom container-mechchart-bottom" >
<div class="container-rl">
<input type="number" class="field-rightleg-armor font-large transparent" title="@{rightleg-armor}" name="attr_rightleg-armor" value="" min="0">
<input type="number" class="field-rightleg-structure font-large transparent" title="@{rightleg-structure}" name="attr_rightleg-structure" value="" min="0">
</div>
<div class="container-ll">
<input type="number" class="field-leftleg-armor font-large transparent" title="@{leftleg-armor}" name="attr_leftleg-armor" value="" min="0">
<input type="number" class="field-leftleg-structure font-large transparent" title="@{leftleg-structure}" name="attr_leftleg-structure" value="" min="0">
</div>
</div>
<!--Mech Weapons-->
<button type="roll" name="roll_MechWep1" title="%{@{character_id}|mechgun1-type}" value="@{output_option} &{template:default} {{name= **?{Skill|Piloting|Gunnery} Check** }} {{**Bonus:** [[?{SkillBonus|0}]] **Modifiers:** [[?{Modifiers|0}]]}} {{**Result:** [[2d6+?{SkillBonus|0}+?{Modifiers|0}]]}}"> </button>
<div class="column-mech-bottom container-mechguns">
<!--Battlemech weapons line 1-->
<select class="field-mechgun1 font-small transparent" title="@{mechgun1}" name="attr_mechgun1">
<option value="Punch/Kick" selected="selected">Punch/Kick</option>
<option value="-/Kick">-/Kick</option>
</select>
<select class="field-mechgun1-damage font-small transparent" title="@{mechgun1-damage}" name="attr_mechgun1-damage">
<option value="blank" selected="selected"> </option>
<option value="1/2">1/2</option>
<option value="2/3">2/3</option>
<option value="2/4">2/4</option>
<option value="3/5">3/5</option>
<option value="3/6">3/6</option>
<option value="4/7">4/7</option>
<option value="0/2">0/2</option>
<option value="0/3">0/3</option>
<option value="0/4">0/4</option>
<option value="0/5">0/5</option>
<option value="0/6">0/6</option>
<option value="0/7">0/7</option>
</select>
<label>
<div class="field-mechgun1-type font-small" title="@{mechgun1-type}" name="attr_mechgun1-type">-</div>
<div class="field-mechgun1-heat font-small" title="@{mechgun1-type}" name="attr_mechgun1-type">0</div>
<div class="field-mechgun1-location font-small" title="@{mechgun1-type}" name="attr_mechgun1-type">-</div>
<div class="field-mechgun1-pointblank font-small" title="@{mechgun1-type}" name="attr_mechgun1-type">OK</div>
<div class="field-mechgun1-short font-small" title="@{mechgun1-type}" name="attr_mechgun1-type">-</div>
<div class="field-mechgun1-medium font-small" title="@{mechgun1-type}" name="attr_mechgun1-type">-</div>
<div class="field-mechgun1-long font-small" title="@{mechgun1-type}" name="attr_mechgun1-type">-</div>
</label>
<!--Battlemech weapons line 2-->
<input type="text" class="field-mechgun2 font-small transparent" title="@{mechgun2}" name="attr_mechgun2" autocomplete="off" spellcheck="false">
<input type="text" class="field-mechgun2-damage font-small transparent" title="@{mechgun2-damage}" name="attr_mechgun2-damage" autocomplete="off" spellcheck="false">
<select class="field-mechgun2-type font-small transparent" title="@{mechgun2-type}" name="attr_mechgun2-type">
<option value="blank" selected="selected"> </option>
<option value="b">B</option>
<option value="m">M</option>
<option value="e">E</option>
<option value="b,e">B,E</option>
<option value="b,m">B,M</option>
<option value="e,m">E,M</option>
</select>
<input type="number" class="field-mechgun2-heat font-small transparent" title="@{mechgun2-heat}" name="attr_mechgun2-heat" value=" " min="0">
<select class="field-mechgun2-location font-small transparent" title="@{mechgun2-location}" name="attr_mechgun2-location">
<option value="blank" selected="selected"> </option>
<option value="ra">RA</option>
<option value="la">LA</option>
<option value="t">T</option>
<option value="h">H</option>
<option value="t(r)">T(R)</option>
<option value="arms">Arms</option>
<option value="t,arms">T,Arms</option>
<option value="h,t">H,T</option>
<option value="ra,t">RA,T</option>
<option value="la,t">LA,T</option>
<option value="ra,h">RA,H</option>
<option value="la,h">LA,H</option>
</select>
<select class="field-mechgun2-pointblank font-small transparent" title="@{mechgun2-pointblank}" name="attr_mechgun2-pointblank">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-1">-1</option>
<option value="-2">-2</option>
<option value="-3">-3</option>
<option value="-4">-4</option>
<option value="+1">+1</option>
<option value="+2">+2</option>
</select>
<select class="field-mechgun2-short font-small transparent" title="@{mechgun2-short}" name="attr_mechgun2-short">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-1">-1</option>
<option value="-2">-2</option>
<option value="-3">-3</option>
<option value="-4">-4</option>
<option value="+1">+1</option>
<option value="+2">+2</option>
</select>
<select class="field-mechgun2-medium font-small transparent" title="@{mechgun2-medium}" name="attr_mechgun2-medium">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-1">-1</option>
<option value="-2">-2</option>
<option value="-3">-3</option>
<option value="-4">-4</option>
<option value="+1">+1</option>
<option value="+2">+2</option>
</select>
<select class="field-mechgun2-long font-small transparent" title="@{mechgun2-long}" name="attr_mechgun2-long">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-1">-1</option>
<option value="-2">-2</option>
<option value="-3">-3</option>
<option value="-4">-4</option>
<option value="+1">+1</option>
<option value="+2">+2</option>
</select>
<!--Battlemech weapons line 3-->
<input type="text" class="field-mechgun3 font-small transparent" title="@{mechgun3}" name="attr_mechgun3" autocomplete="off" spellcheck="false">
<input type="text" class="field-mechgun3-damage font-small transparent" title="@{mechgun3-damage}" name="attr_mechgun3-damage" autocomplete="off" spellcheck="false">
<select class="field-mechgun3-type font-small transparent" title="@{mechgun3-type}" name="attr_mechgun3-type">
<option value="blank" selected="selected"> </option>
<option value="b">B</option>
<option value="m">M</option>
<option value="e">E</option>
<option value="b,e">B,E</option>
<option value="b,m">B,M</option>
<option value="e,m">E,M</option>
</select>
<input type="number" class="field-mechgun3-heat font-small transparent" title="@{mechgun3-heat}" name="attr_mechgun3-heat" value=" " min="0">
<select class="field-mechgun3-location font-small transparent" title="@{mechgun3-location}" name="attr_mechgun3-location">
<option value="blank" selected="selected"> </option>
<option value="ra">RA</option>
<option value="la">LA</option>
<option value="t">T</option>
<option value="h">H</option>
<option value="t(r)">T(R)</option>
<option value="arms">Arms</option>
<option value="t,arms">T,Arms</option>
<option value="h,t">H,T</option>
<option value="ra,t">RA,T</option>
<option value="la,t">LA,T</option>
<option value="ra,h">RA,H</option>
<option value="la,h">LA,H</option>
</select>
<select class="field-mechgun3-pointblank font-small transparent" title="@{mechgun3-pointblank}" name="attr_mechgun3-pointblank">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-1">-1</option>
<option value="-2">-2</option>
<option value="-3">-3</option>
<option value="-4">-4</option>
<option value="+1">+1</option>
<option value="+2">+2</option>
</select>
<select class="field-mechgun3-short font-small transparent" title="@{mechgun3-short}" name="attr_mechgun3-short">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-1">-1</option>
<option value="-2">-2</option>
<option value="-3">-3</option>
<option value="-4">-4</option>
<option value="+1">+1</option>
<option value="+2">+2</option>
</select>
<select class="field-mechgun3-medium font-small transparent" title="@{mechgun3-medium}" name="attr_mechgun3-medium">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-1">-1</option>
<option value="-2">-2</option>
<option value="-3">-3</option>
<option value="-4">-4</option>
<option value="+1">+1</option>
<option value="+2">+2</option>
</select>
<select class="field-mechgun3-long font-small transparent" title="@{mechgun3-long}" name="attr_mechgun3-long">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-1">-1</option>
<option value="-2">-2</option>
<option value="-3">-3</option>
<option value="-4">-4</option>
<option value="+1">+1</option>
<option value="+2">+2</option>
</select>
<!--Battlemech weapons line 4-->
<input type="text" class="field-mechgun4 font-small transparent" title="@{mechgun4}" name="attr_mechgun4" autocomplete="off" spellcheck="false">
<input type="text" class="field-mechgun4-damage font-small transparent" title="@{mechgun4-damage}" name="attr_mechgun4-damage" autocomplete="off" spellcheck="false">
<select class="field-mechgun4-type font-small transparent" title="@{mechgun4-type}" name="attr_mechgun4-type">
<option value="blank" selected="selected"> </option>
<option value="b">B</option>
<option value="m">M</option>
<option value="e">E</option>
<option value="b,e">B,E</option>
<option value="b,m">B,M</option>
<option value="e,m">E,M</option>
</select>
<input type="number" class="field-mechgun4-heat font-small transparent" title="@{mechgun4-heat}" name="attr_mechgun4-heat" value=" " min="0">
<select class="field-mechgun4-location font-small transparent" title="@{mechgun4-location}" name="attr_mechgun4-location">
<option value="blank" selected="selected"> </option>
<option value="ra">RA</option>
<option value="la">LA</option>
<option value="t">T</option>
<option value="h">H</option>
<option value="t(r)">T(R)</option>
<option value="arms">Arms</option>
<option value="t,arms">T,Arms</option>
<option value="h,t">H,T</option>
<option value="ra,t">RA,T</option>
<option value="la,t">LA,T</option>
<option value="ra,h">RA,H</option>
<option value="la,h">LA,H</option>
</select>
<select class="field-mechgun4-pointblank font-small transparent" title="@{mechgun4-pointblank}" name="attr_mechgun4-pointblank">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-1">-1</option>
<option value="-2">-2</option>
<option value="-3">-3</option>
<option value="-4">-4</option>
<option value="+1">+1</option>
<option value="+2">+2</option>
</select>
<select class="field-mechgun4-short font-small transparent" title="@{mechgun4-short}" name="attr_mechgun4-short">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-1">-1</option>
<option value="-2">-2</option>
<option value="-3">-3</option>
<option value="-4">-4</option>
<option value="+1">+1</option>
<option value="+2">+2</option>
</select>
<select class="field-mechgun4-medium font-small transparent" title="@{mechgun4-medium}" name="attr_mechgun4-medium">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-1">-1</option>
<option value="-2">-2</option>
<option value="-3">-3</option>
<option value="-4">-4</option>
<option value="+1">+1</option>
<option value="+2">+2</option>
</select>
<select class="field-mechgun4-long font-small transparent" title="@{mechgun4-long}" name="attr_mechgun4-long">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-1">-1</option>
<option value="-2">-2</option>
<option value="-3">-3</option>
<option value="-4">-4</option>
<option value="+1">+1</option>
<option value="+2">+2</option>
</select>
<!--Battlemech weapons line 5-->
<input type="text" class="field-mechgun5 font-small transparent" title="@{mechgun5}" name="attr_mechgun5" autocomplete="off" spellcheck="false">
<input type="text" class="field-mechgun5-damage font-small transparent" title="@{mechgun5-damage}" name="attr_mechgun5-damage" autocomplete="off" spellcheck="false">
<select class="field-mechgun5-type font-small transparent" title="@{mechgun5-type}" name="attr_mechgun5-type">
<option value="blank" selected="selected"> </option>
<option value="b">B</option>
<option value="m">M</option>
<option value="e">E</option>
<option value="b,e">B,E</option>
<option value="b,m">B,M</option>
<option value="e,m">E,M</option>
</select>
<input type="number" class="field-mechgun5-heat font-small transparent" title="@{mechgun5-heat}" name="attr_mechgun5-heat" value=" " min="0">
<select class="field-mechgun5-location font-small transparent" title="@{mechgun5-location}" name="attr_mechgun5-location">
<option value="blank" selected="selected"> </option>
<option value="ra">RA</option>
<option value="la">LA</option>
<option value="t">T</option>
<option value="h">H</option>
<option value="t(r)">T(R)</option>
<option value="arms">Arms</option>
<option value="t,arms">T,Arms</option>
<option value="h,t">H,T</option>
<option value="ra,t">RA,T</option>
<option value="la,t">LA,T</option>
<option value="ra,h">RA,H</option>
<option value="la,h">LA,H</option>
</select>
<select class="field-mechgun5-pointblank font-small transparent" title="@{mechgun5-pointblank}" name="attr_mechgun5-pointblank">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-1">-1</option>
<option value="-2">-2</option>
<option value="-3">-3</option>
<option value="-4">-4</option>
<option value="+1">+1</option>
<option value="+2">+2</option>
</select>
<select class="field-mechgun5-short font-small transparent" title="@{mechgun5-short}" name="attr_mechgun5-short">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-1">-1</option>
<option value="-2">-2</option>
<option value="-3">-3</option>
<option value="-4">-4</option>
<option value="+1">+1</option>
<option value="+2">+2</option>
</select>
<select class="field-mechgun5-medium font-small transparent" title="@{mechgun5-medium}" name="attr_mechgun5-medium">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-1">-1</option>
<option value="-2">-2</option>
<option value="-3">-3</option>
<option value="-4">-4</option>
<option value="+1">+1</option>
<option value="+2">+2</option>
</select>
<select class="field-mechgun5-long font-small transparent" title="@{mechgun5-long}" name="attr_mechgun5-long">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-1">-1</option>
<option value="-2">-2</option>
<option value="-3">-3</option>
<option value="-4">-4</option>
<option value="+1">+1</option>
<option value="+2">+2</option>
</select>
</div>
</div>
</div>
</div>
<!--Stats, Skills, and Equipment Page-->
<input type="checkbox" name="attr_tab" class="hidden tab" value="stats" >
<div class="page-stats pane secondary-tab">
<!--Character Attributes-->
<div class="container-attributes">
<input type="text" class="field-name font-name transparent" autocomplete="off" spellcheck="false" title="@{character_name}" name="attr_character_name">
<input type="number" class="field-str transparent" name="attr_str" title="@{str}" value="1" min="1" max="6">
<input type="number" class="field-rfl transparent" name="attr_rfl" title="@{rfl}" value="1" min="1" max="6">
<input type="number" class="field-int transparent" name="attr_int" title="@{int}" value="1" min="1" max="6">
<input type="number" class="field-wil transparent" name="attr_wil" title="@{wil}" value="1" min="1" max="6">
<input type="number" class="field-cha transparent" name="attr_cha" title="@{cha}" value="1" min="1" max="6">
<input type="number" class="field-edg transparent" name="attr_edg" title="@{edg}" value="1" min="1" max="6">
</div>
<!--Skills Section-->
<div class="container-details">
<!--Skill Line 1-->
<input type="text" class="field-skill1 font-medium transparent" autocomplete="off" spellcheck="false" title="@{skill1}" name="attr_skill1">
<input type="number" class="field-skill-rating1 font-large transparent" title="@{skill-rating1}" name="attr_skill-rating1" required maxlength="1" value="1" min="1" max="6">
<select type="text" class="field-skill-attribute1 font-small transparent" title="@{skill-attribute1}" name="attr_skill-attribute1">
<option value="blank" selected="selected"> </option>
<option value="@{str}">STR</option>
<option value="@{rfl}">RFL</option>
<option value="@{int}">INT</option>
<option value="@{wil}">WIL</option>
<option value="@{cha}">CHA</option>
</select>
<input type="number" class="field-skill-bonus1 font-large transparent" title="@{skill-bonus1}" name="attr_skill-bonus1" value="@{skill-rating1}+@{skill-attribute1}" disabled="true">
<!--Skill Line 2-->
<input type="text" class="field-skill2 font-medium transparent" autocomplete="off" spellcheck="false" title="@{skill2}" name="attr_skill2">
<input type="number" class="field-skill-rating2 font-large transparent" title="@{skill-rating2}" name="attr_skill-rating2" required maxlength="1" min="0" max="6">
<select type="text" class="field-skill-attribute2 font-small transparent" title="@{skill-attribute2}" name="attr_skill-attribute2">
<option value="blank" selected="selected"> </option>
<option value="@{str}">STR</option>
<option value="@{rfl}">RFL</option>
<option value="@{int}">INT</option>
<option value="@{wil}">WIL</option>
<option value="@{cha}">CHA</option>
</select>
<input type="number" class="field-skill-bonus2 font-large transparent" title="@{skill-bonus2}" name="attr_skill-bonus2" value="@{skill-rating2}+@{skill-attribute2}" disabled="true">
<!--Skill Line 3-->
<input type="text" class="field-skill3 font-medium transparent" autocomplete="off" spellcheck="false" title="@{skill3}" name="attr_skill3">
<input type="number" class="field-skill-rating3 font-large transparent" title="@{skill-rating3}" name="attr_skill-rating3" required maxlength="1" min="0" max="6">
<select type="text" class="field-skill-attribute3 font-small transparent" title="@{skill-attribute3}" name="attr_skill-attribute3">
<option value="blank" selected="selected"> </option>
<option value="@{str}">STR</option>
<option value="@{rfl}">RFL</option>
<option value="@{int}">INT</option>
<option value="@{wil}">WIL</option>
<option value="@{cha}">CHA</option>
</select>
<input type="number" class="field-skill-bonus3 font-large transparent" title="@{skill-bonus3}" name="attr_skill-bonus3" value="@{skill-rating3}+@{skill-attribute3}" disabled="true">
<!--Skill Line 4-->
<input type="text" class="field-skill4 font-medium transparent" autocomplete="off" spellcheck="false" title="@{skill4}" name="attr_skill4">
<input type="number" class="field-skill-rating4 font-large transparent" title="@{skill-rating4}" name="attr_skill-rating4"required maxlength="1" min="0" max="6">
<select type="text" class="field-skill-attribute4 font-small transparent" title="@{skill-attribute4}" name="attr_skill-attribute4">
<option value="blank" selected="selected"> </option>
<option value="@{str}">STR</option>
<option value="@{rfl}">RFL</option>
<option value="@{int}">INT</option>
<option value="@{wil}">WIL</option>
<option value="@{cha}">CHA</option>
</select>
<input type="number" class="field-skill-bonus4 font-large transparent" title="@{skill-bonus4}" name="attr_skill-bonus4" value="@{skill-rating4}+@{skill-attribute4}" disabled="true">
<!--Skill Line 5-->
<input type="text" class="field-skill5 font-medium transparent" autocomplete="off" spellcheck="false" title="@{skill5}" name="attr_skill5">
<input type="number" class="field-skill-rating5 font-large transparent" title="@{skill-rating5}" name="attr_skill-rating5"required maxlength="1" min="0" max="6">
<select type="text" class="field-skill-attribute5 font-small transparent" title="@{skill-attribute5}" name="attr_skill-attribute5">
<option value="blank" selected="selected"> </option>
<option value="@{str}">STR</option>
<option value="@{rfl}">RFL</option>
<option value="@{int}">INT</option>
<option value="@{wil}">WIL</option>
<option value="@{cha}">CHA</option>
</select>
<input type="number" class="field-skill-bonus5 font-large transparent" title="@{skill-bonus5}" name="attr_skill-bonus5" value="@{skill-rating5}+@{skill-attribute5}" disabled="true">
<!--Skill Line 6-->
<input type="text" class="field-skill6 font-medium transparent" autocomplete="off" spellcheck="false" title="@{skill6}" name="attr_skill6">
<input type="number" class="field-skill-rating6 font-large transparent" title="@{skill-rating6}" name="attr_skill-rating6"required maxlength="1" min="0" max="6">
<select type="text" class="field-skill-attribute6 font-small transparent" title="@{skill-attribute6}" name="attr_skill-attribute6">
<option value="blank" selected="selected"> </option>
<option value="@{str}">STR</option>
<option value="@{rfl}">RFL</option>
<option value="@{int}">INT</option>
<option value="@{wil}">WIL</option>
<option value="@{cha}">CHA</option>
</select>
<input type="number" class="field-skill-bonus6 font-large transparent" title="@{skill-bonus6}" name="attr_skill-bonus6" value="@{skill-rating6}+@{skill-attribute6}" disabled="true">
<!--Skill Line 7-->
<input type="text" class="field-skill7 font-medium transparent" autocomplete="off" spellcheck="false" title="@{skill7}" name="attr_skill7">
<input type="number" class="field-skill-rating7 font-large transparent" title="@{skill-rating7}" name="attr_skill-rating7"required maxlength="1" min="0" max="6">
<select type="text" class="field-skill-attribute7 font-small transparent" title="@{skill-attribute7}" name="attr_skill-attribute7">
<option value="blank" selected="selected"> </option>
<option value="@{str}">STR</option>
<option value="@{rfl}">RFL</option>
<option value="@{int}">INT</option>
<option value="@{wil}">WIL</option>
<option value="@{cha}">CHA</option>
</select>
<input type="number" class="field-skill-bonus7 font-large transparent" title="@{skill-bonus7}" name="attr_skill-bonus7" value="@{skill-rating7}+@{skill-attribute7}" disabled="true">
<!--Skill Line 8-->
<input type="text" class="field-skill8 font-medium transparent" autocomplete="off" spellcheck="false" title="@{skill8}" name="attr_skill8">
<input type="number" class="field-skill-rating8 font-large transparent" title="@{skill-rating8}" name="attr_skill-rating8"required maxlength="1" min="0" max="6">
<select type="text" class="field-skill-attribute8 font-small transparent" title="@{skill-attribute8}" name="attr_skill-attribute8">
<option value="blank" selected="selected"> </option>
<option value="@{str}">STR</option>
<option value="@{rfl}">RFL</option>
<option value="@{int}">INT</option>
<option value="@{wil}">WIL</option>
<option value="@{cha}">CHA</option>
</select>
<input type="number" class="field-skill-bonus8 font-large transparent" title="@{skill-bonus8}" name="attr_skill-bonus8" value="@{skill-rating8}+@{skill-attribute8}" disabled="true">
<!--Skill Line 9-->
<input type="text" class="field-skill9 font-medium transparent" autocomplete="off" spellcheck="false" title="@{skill9}" name="attr_skill9">
<input type="number" class="field-skill-rating9 font-large transparent" title="@{skill-rating9}" name="attr_skill-rating9"required maxlength="1" min="0" max="6">
<select type="text" class="field-skill-attribute9 font-small transparent" title="@{skill-attribute9}" name="attr_skill-attribute9">
<option value="blank" selected="selected"> </option>
<option value="@{str}">STR</option>
<option value="@{rfl}">RFL</option>
<option value="@{int}">INT</option>
<option value="@{wil}">WIL</option>
<option value="@{cha}">CHA</option>
</select>
<input type="number" class="field-skill-bonus9 font-large transparent" title="@{skill-bonus9}" name="attr_skill-bonus9" value="@{skill-rating9}+@{skill-attribute9}" disabled="true">
<!--life modules-->
<input type="text" class="field-life-faction font-medium transparent" autocomplete="off" spellcheck="false" title="@{life-faction}" name="attr_life-faction">
<input type="text" class="field-life-childhood font-medium transparent" autocomplete="off" spellcheck="false" title="@{life-childhood}" name="attr_life-childhood">
<input type="text" class="field-life-education font-medium transparent" autocomplete="off" spellcheck="false" title="@{life-education}" name="attr_life-education">
<input type="text" class="field-life-real font-medium transparent" autocomplete="off" spellcheck="false" title="@{life-real}" name="attr_life-real">
<textarea class="field-inventory font-medium transparent" spellcheck="false" title="@{inventory}" name="attr_inventory"></textarea>
<!--Traits-->
<input type="text" class="field-postrait1 font-large transparent" autocomplete="off" spellcheck="false" title="@{postrait1}" name="attr_postrait1">
<input type="text" class="field-postrait2 font-large transparent" autocomplete="off" spellcheck="false" title="@{postrait2}" name="attr_postrait2">
<input type="text" class="field-negtrait1 font-large transparent" autocomplete="off" spellcheck="false" title="@{negtrait1}" name="attr_negtrait1">
<input type="text" class="field-negtrait2 font-large transparent" autocomplete="off" spellcheck="false" title="@{negtrait1}" name="attr_negtrait2">
<!--cues-->
<textarea class="field-cues1 font-large transparent" spellcheck="false" title="@{cues1}" name="attr_cues1"></textarea>
<textarea class="field-cues2 font-large transparent" spellcheck="false" title="@{cues2}" name="attr_cues2"></textarea>
<textarea class="field-cues3 font-large transparent" spellcheck="false" title="@{cues3}" name="attr_cues3"></textarea>
</div>
<!--Personal Weaponry-->
<div class="container-combat">
<!--Weapon line 1-->
<input type="text" class="field-weapon1-damage font-large transparent" title="@{weapon1-damage}" name="attr_weapon1-damage" autocomplete="off" spellcheck="false">
<label class="field-weapon1-close font-large transparent" title="@{weapon1-close}" name="attr_weapon1-close">OK</label>
<label class="field-weapon1-near font-large transparent" title="@{weapon1-near}" name="attr_weapon1-near">-</label>
<label class="field-weapon1-far font-large transparent" title="@{weapon1-far}" name="attr_weapon1-far">-</label>
<!--Weapon line 2-->
<input type="text" class="field-weapon2 font-medium transparent" autocomplete="off" spellcheck="false" title="@{weapon2}" name="attr_weapon2">
<input type="text" class="field-weapon2-damage font-large transparent" title="@{weapon2-damage}" name="attr_weapon2-damage" autocomplete="off" spellcheck="false">
<select type="text" class="field-weapon2-close font-large transparent" title="@{weapon2-close}" name="attr_weapon2-close">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-2">-2</option>
</select>
<select type="text" class="field-weapon2-near font-large transparent" title="@{weapon2-near}" name="attr_weapon2-near">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-2">-2</option>
</select>
<select type="text" class="field-weapon2-far font-large transparent" title="@{weapon2-far}" name="attr_weapon2-far">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-2">-2</option>
</select>
<!--Weapon line 3-->
<input type="text" class="field-weapon3 font-medium transparent" autocomplete="off" spellcheck="false" title="@{weapon3}" name="attr_weapon3">
<input type="text" class="field-weapon3-damage font-large transparent" title="@{weapon3-damage}" name="attr_weapon3-damage" autocomplete="off" spellcheck="false">
<select type="text" class="field-weapon3-close font-large transparent" title="@{weapon3-close}" name="attr_weapon3-close">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-2">-2</option>
</select>
<select type="text" class="field-weapon3-near font-large transparent" title="@{weapon3-near}" name="attr_weapon3-near">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-2">-2</option>
</select>
<select type="text" class="field-weapon3-far font-large transparent" title="@{weapon3-far}" name="attr_weapon3-far">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-2">-2</option>
</select>
<!--Weapon line 4-->
<input type="text" class="field-weapon4 font-medium transparent" autocomplete="off" spellcheck="false" title="@{weapon4}" name="attr_weapon4">
<input type="text" class="field-weapon4-damage font-large transparent" title="@{weapon4-damage}" name="attr_weapon4-damage" autocomplete="off" spellcheck="false">
<select type="text" class="field-weapon4-close font-large transparent" title="@{weapon4-close}" name="attr_weapon4-close">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-2">-2</option>
</select>
<select type="text" class="field-weapon4-near font-large transparent" title="@{weapon4-near}" name="attr_weapon4-near">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-2">-2</option>
</select>
<select type="text" class="field-weapon4-far font-large transparent" title="@{weapon4-far}" name="attr_weapon4-far">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-2">-2</option>
</select>
<!--Weapon line 5-->
<input type="text" class="field-weapon5 font-medium transparent" autocomplete="off" spellcheck="false" title="@{weapon5}" name="attr_weapon5">
<input type="text" class="field-weapon5-damage font-large transparent" title="@{weapon5-damage}" name="attr_weapon5-damage" autocomplete="off" spellcheck="false">
<select type="text" class="field-weapon5-close font-large transparent" title="@{weapon5-close}" name="attr_weapon5-close">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-2">-2</option>
</select>
<select type="text" class="field-weapon5-near font-large transparent" title="@{weapon5-near}" name="attr_weapon5-near">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-2">-2</option>
</select>
<select type="text" class="field-weapon5-far font-large transparent" title="@{weapon5-far}" name="attr_weapon5-far">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-2">-2</option>
</select>
<!--Weapon line 6-->
<input type="text" class="field-weapon6 font-medium transparent" autocomplete="off" spellcheck="false" title="@{weapon6}" name="attr_weapon6">
<input type="text" class="field-weapon6-damage font-large transparent" title="@{weapon6-damage}" name="attr_weapon6-damage" autocomplete="off" spellcheck="false">
<select type="text" class="field-weapon6-close font-large transparent" title="@{weapon6-close}" name="attr_weapon6-close">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-2">-2</option>
</select>
<select type="text" class="field-weapon6-near font-large transparent" title="@{weapon6-near}" name="attr_weapon6-near">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-2">-2</option>
</select>
<select type="text" class="field-weapon6-far font-large transparent" title="@{weapon6-far}" name="attr_weapon6-far">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-2">-2</option>
</select>
<!--Weapon line 7-->
<input type="text" class="field-weapon7 font-medium transparent" autocomplete="off" spellcheck="false" title="@{weapon7}" name="attr_weapon7">
<input type="text" class="field-weapon7-damage font-large transparent" title="@{weapon7-damage}" name="attr_weapon7-damage" autocomplete="off" spellcheck="false">
<select type="text" class="field-weapon7-close font-large transparent" title="@{weapon7-close}" name="attr_weapon7-close">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>w
<option value="ok">OK</option>
<option value="-2">-2</option>
</select>
<select type="text" class="field-weapon7-near font-large transparent" title="@{weapon7-near}" name="attr_weapon7-near">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-2">-2</option>
</select>
<select type="text" class="field-weapon7-far font-large transparent" title="@{weapon7-far}" name="attr_weapon7-far">
<option value="blank" selected="selected"> </option>
<option value="-">-</option>
<option value="ok">OK</option>
<option value="-2">-2</option>
</select>
<input type="text" class="field-weapon-notes font-large transparent" autocomplete="off" spellcheck="false" title="@{weapon-notes}" name="attr_weapon-notes">
<!--Physical Condition monitor-->
<div class="container-physical-condition">
<input type="checkbox" class="physical-1-1" name="attr_physical-1-1" value="physical-1-1">
<input type="checkbox" class="physical-2-1" name="attr_physical-2-1" value="physical-2-1">
<input type="checkbox" class="physical-3-1" name="attr_physical-3-1" value="physical-3-1">
<input type="checkbox" class="physical-1-2" name="attr_physical-1-2" value="physical-1-2">
<input type="checkbox" class="physical-2-2" name="attr_physical-2-2" value="physical-2-2">
<input type="checkbox" class="physical-3-2" name="attr_physical-3-2" value="physical-3-2">
<input type="checkbox" class="physical-1-3" name="attr_physical-1-3" value="physical-1-3">
<input type="checkbox" class="physical-2-3" name="attr_physical-2-3" value="physical-2-3">
<input type="checkbox" class="physical-3-3" name="attr_physical-3-3" value="physical-3-3">
<input type="checkbox" class="physical-1-4" name="attr_physical-1-4" value="physical-1-4">
<input type="checkbox" class="physical-2-4" name="attr_physical-2-4" value="physical-2-4">
<input type="checkbox" class="physical-3-4" name="attr_physical-3-4" value="physical-3-4">
<input type="checkbox" class="physical-stag" name="attr_physical-stag" value="physical-stag">
<input type="checkbox" class="physical-kia" name="attr_physical-kia" value="physical-kia">
</div>
<!--Fatigue Condition monitor-->
<div class="container-fatigue-condition">
<input type="checkbox" class="fatigue-1-1" name="fatigue-1-1" values="attr_fatigue-1-1">
<input type="checkbox" class="fatigue-2-1" values="fatigue-2-1" name="attr_fatigue-2-1">
<input type="checkbox" class="fatigue-3-1" values="fatigue-3-1" name="attr_fatigue-3-1">
<input type="checkbox" class="fatigue-1-2" values="fatigue-1-2" name="attr_fatigue-1-2">
<input type="checkbox" class="fatigue-2-2" values="fatigue-2-2" name="attr_fatigue-2-2">
<input type="checkbox" class="fatigue-3-2" values="fatigue-3-2" name="attr_fatigue-3-2">
<input type="checkbox" class="fatigue-1-3" values="fatigue-1-3" name="attr_fatigue-1-3">
<input type="checkbox" class="fatigue-2-3" values="fatigue-2-3" name="attr_fatigue-2-3">
<input type="checkbox" class="fatigue-3-3" values="fatigue-3-3" name="attr_fatigue-3-3">
<input type="checkbox" class="fatigue-1-4" values="fatigue-1-4" name="attr_fatigue-1-4">
<input type="checkbox" class="fatigue-2-4" values="fatigue-2-4" name="attr_fatigue-2-4">
<input type="checkbox" class="fatigue-3-4" values="fatigue-3-4" name="attr_fatigue-3-4">
<input type="checkbox" class="fatigue-stag" values="fatigue-stag" name="attr_fatigue-stag">
<input type="checkbox" class="fatigue-ko" values="fatigue-ko" name="attr_fatigue-ko">
</div>
<!--Armor-->
<input type="text" class="field-armor1 font-medium transparent" autocomplete="off" spellcheck="false" title="@{armor1}" name="attr_armor1">
<input type="text" class="field-armor2 font-medium transparent" autocomplete="off" spellcheck="false" title="@{armor2}" name="attr_armor2">
<input type="text" class="field-armor3 font-medium transparent" autocomplete="off" spellcheck="false" title="@{armor3}" name="attr_armor3">
<div class="container-armor">
<input type="checkbox" class="check-armor-1" value="check-armor-1" name="attr_check-armor-1">
<input type="checkbox" class="check-armor-2" value="check-armor-2" name="attr_check-armor-2">
<input type="checkbox" class="check-armor-3" value="check-armor-3" name="attr_check-armor-3">
<input type="checkbox" class="check-armor-4" value="check-armor-4" name="attr_check-armor-4">
<input type="checkbox" class="check-armor-5" value="check-armor-5" name="attr_check-armor-5">
<input type="checkbox" class="check-armor-6" value="check-armor-6" name="attr_check-armor-6">
<input type="checkbox" class="check-armor-7" value="check-armor-7" name="attr_check-armor-7">
<input type="checkbox" class="check-armor-8" value="check-armor-8" name="attr_check-armor-8">
<input type="checkbox" class="check-armor-9" value="check-armor-9" name="attr_check-armor-9">
<input type="checkbox" class="check-armor-10" value="check-armor-10" name="attr_check-armor-10">
</div>
</div>
</div>
<!--SHEET WORKERS-->
<script type="text/worker">
//EdgePoints Scripts
on('change:edge-points', () => {
getAttrs(['edg', 'edge-points'], values => {
let edge = +values['edg'] ||0;
let points = +values['edge-points'] || 0;
let newpoints = points;
if(newpoints > edge) newpoints = edge;
else if (newpoints < 0) newpoints = 0;
if (newpoints !== points)
setAttrs({
'edge-points': newpoints
});
});
});
on('change:edg', () => {
getAttrs(['edg'], values => {
let edge = +values['edg'] ||0;
setAttrs({
'edge-points': edge
}, {silent:true});
});
});
//Armor Default Scripts
const bodyparts = ['head-armor', 'head-structure', 'torso-armor', 'torso-structure', 'rightarm-armor', 'rightarm-structure', 'rightleg-armor', 'rightleg-structure', 'leftarm-armor', 'leftarm-structure', 'leftleg-armor', 'leftleg-structure'];
bodyparts.forEach(part => {
let partmax = part.replace('right', '');
partmax = partmax.replace('left', '');
partmax = partmax + "-max";
on(`change:${part} change:${partmax}`, () => {
getAttrs([part,partmax], values => {
let max = +values[partmax] ||0;
let current = +values[part] || 0;
let newcurrent = current;
if(newcurrent > max) newcurrent = max;
else if (newcurrent < 0) newcurrent = 0;
if (newcurrent !== current)
setAttrs({
[part]: newcurrent
});
});
});
});
const bodypartsmax = ['head-armor', 'head-structure', 'torso-armor', 'torso-structure', 'arm-armor', 'arm-structure', 'leg-armor', 'leg-structure'];
bodypartsmax.forEach(max => {
on(`change:${max}-max`, () => {
getAttrs([`${max}-max`], values => {
let score = +values[`${max}-max`] ||0;
let output ={};
if(max.startsWith('arm') || max.startsWith('leg')) {
output[`left${max}`] = score;
output[`right${max}`] = score;
} else {
output[max] = score;
}
setAttrs(output, {silent:true});
});
});
});
</script>
<!--NOTHING BEYOND THIS POINT -->