Update tcfbtg.html

Added new roll buttons to skills and paths.
This commit is contained in:
Long Shadow
2022-03-08 11:17:56 +00:00
committed by GitHub
parent 3ac65db556
commit ec8ed2f854
+135 -6
View File
@@ -38,6 +38,7 @@
<button type="action" name="act_aim_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_aimroll" class="dice-roll" value="@{whisper} &{template:skillroll} {{character=@{character_name}}} {{name=aim}} {{successes=[[@{rollqueryaim}]]}}"></button>
</div>
</div>
@@ -66,6 +67,7 @@
<button type="action" name="act_athletics_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_athleticsroll" class="dice-roll" value="@{whisper} &{template:skillroll} {{character=@{character_name}}} {{name=athletics}} {{successes=[[@{rollqueryathletics}]]}}"></button>
</div>
</div>
@@ -94,6 +96,7 @@
<button type="action" name="act_close-combat_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_close-combatroll" class="dice-roll" value="@{whisper} &{template:skillroll} {{character=@{character_name}}} {{name=closecombat}} {{successes=[[@{rollqueryclosecombat}]]}}"></button>
</div>
</div>
@@ -122,6 +125,7 @@
<button type="action" name="act_command_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_commandroll" class="dice-roll" value="@{whisper} &{template:skillroll} {{character=@{character_name}}} {{name=command}} {{successes=[[@{rollquerycommand}]]}}"></button>
</div>
</div>
@@ -150,6 +154,7 @@
<button type="action" name="act_culture_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_cultureroll" class="dice-roll" value="@{whisper} &{template:skillroll} {{character=@{character_name}}} {{name=culture}} {{successes=[[@{rollqueryculture}]]}}"></button>
</div>
</div>
@@ -178,6 +183,7 @@
<button type="action" name="act_empathy_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_empathyroll" class="dice-roll" value="@{whisper} &{template:skillroll} {{character=@{character_name}}} {{name=empathy}} {{successes=[[@{rollqueryempathy}]]}}"></button>
</div>
</div>
@@ -206,6 +212,7 @@
<button type="action" name="act_enigmas_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_enigmasroll" class="dice-roll" value="@{whisper} &{template:skillroll} {{character=@{character_name}}} {{name=enigmas}} {{successes=[[@{rollqueryenigmas}]]}}"></button>
</div>
</div>
@@ -234,6 +241,7 @@
<button type="action" name="act_humanities_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_humanitiesroll" class="dice-roll" value="@{whisper} &{template:skillroll} {{character=@{character_name}}} {{name=humanities}} {{successes=[[@{rollqueryhumanities}]]}}"></button>
</div>
</div>
@@ -265,6 +273,7 @@
<button type="action" name="act_integrity_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_integrityroll" class="dice-roll" value="@{whisper} &{template:skillroll} {{character=@{character_name}}} {{name=integrity}} {{successes=[[@{rollqueryintegrity}]]}}"></button>
</div>
</div>
@@ -293,6 +302,7 @@
<button type="action" name="act_larceny_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_larcenyroll" class="dice-roll" value="@{whisper} &{template:skillroll} {{character=@{character_name}}} {{name=larceny}} {{successes=[[@{rollquerylarceny}]]}}"></button>
</div>
</div>
@@ -321,6 +331,7 @@
<button type="action" name="act_medicine_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_medicineroll" class="dice-roll" value="@{whisper} &{template:skillroll} {{character=@{character_name}}} {{name=medicine}} {{successes=[[@{rollquerymedicine}]]}}"></button>
</div>
</div>
@@ -349,6 +360,7 @@
<button type="action" name="act_persuasion_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_persuasionroll" class="dice-roll" value="@{whisper} &{template:skillroll} {{character=@{character_name}}} {{name=persuasion}} {{successes=[[@{rollquerypersuasion}]]}}"></button>
</div>
</div>
@@ -377,6 +389,7 @@
<button type="action" name="act_pilot_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_pilotroll" class="dice-roll" value="@{whisper} &{template:skillroll} {{character=@{character_name}}} {{name=pilot}} {{successes=[[@{rollquerypilot}]]}}"></button>
</div>
</div>
@@ -405,6 +418,7 @@
<button type="action" name="act_science_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_scienceroll" class="dice-roll" value="@{whisper} &{template:skillroll} {{character=@{character_name}}} {{name=science}} {{successes=[[@{rollqueryscience}]]}}"></button>
</div>
</div>
@@ -433,6 +447,7 @@
<button type="action" name="act_survival_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_survivalroll" class="dice-roll" value="@{whisper} &{template:skillroll} {{character=@{character_name}}} {{name=survival}} {{successes=[[@{rollquerysurvival}]]}}"></button>
</div>
</div>
@@ -461,6 +476,7 @@
<button type="action" name="act_technology_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_technologyroll" class="dice-roll" value="@{whisper} &{template:skillroll} {{character=@{character_name}}} {{name=technology}} {{successes=[[@{rollquerytechnology}]]}}"></button>
</div>
</div>
@@ -699,6 +715,7 @@
<button type="action" name="act_archetype_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_archetyperoll" class="dice-roll" value="@{whisper} &{template:path} {{character=@{character_name}}} {{name=archetype}} {{successes=[[@{rollqueryarchetype}]]}}"></button>
</div>
</div>
@@ -726,6 +743,7 @@
<button type="action" name="act_origin_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_originroll" class="dice-roll" value="@{whisper} &{template:path} {{character=@{character_name}}} {{name=origin}} {{successes=[[@{rollqueryorigin}]]}}"></button>
</div>
</div>
@@ -754,6 +772,7 @@
<button type="action" name="act_ambition_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_darkagendaroll" class="dice-roll" value="@{whisper} &{template:path} {{character=@{character_name}}} {{name=darkagenda}} {{successes=[[@{rollquerydarkagenda}]]}}"></button>
</div>
</div>
@@ -782,6 +801,7 @@
<button type="action" name="act_path4_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_path4roll" class="dice-roll" value="@{whisper} &{template:custompath} {{character=@{character_name}}} {{name=@{path4name}}} {{successes=[[@{rollquerypath4}]]}}"></button>
</div>
</div>
@@ -810,6 +830,7 @@
<button type="action" name="act_path5_5" class="dot gt-0 gt-1 gt-2 gt-3 gt-4">
<span class="checked"></span>
</button>
<button type="roll" name="roll_path5roll" class="dice-roll" value="@{whisper} &{template:custompath} {{character=@{character_name}}} {{name=@{path5name}}} {{successes=[[@{rollquerypath5}]]}}"></button>
</div>
</div>
@@ -1140,6 +1161,48 @@
</div>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-path">
<div class="sheet-outer">
<div class="header">
<h4>{{character}}<br><span data-i18n="rolled">Rolled</span> <span data-i18n="path"></span>:<br>{{name}}</h4>
</div>
<div class="sheet-inner">
<div class="results">
<h4><span data-i18n="successes">Successes</span>:</h4>
<p>{{successes}}</p>
</div>
{{#rollWasCrit() successes}}
<p>Yay! You rolled one or more 10s!</p>
{{/rollWasCrit() successes}}
{{#rollWasFumble() successes}}
<p>Oops! You rolled one or more 1s!</p>
{{/rollWasFumble() successes}}
</div>
</div>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-custompath">
<div class="sheet-outer">
<div class="header">
<h4>{{character}}<br><span data-i18n="rolled">Rolled</span> <span data-i18n="custom-path"></span>:<br>{{name}}</h4>
</div>
<div class="sheet-inner">
<div class="results">
<h4><span data-i18n="successes">Successes</span>:</h4>
<p>{{successes}}</p>
</div>
{{#rollWasCrit() successes}}
<p>Yay! You rolled one or more 10s!</p>
{{/rollWasCrit() successes}}
{{#rollWasFumble() successes}}
<p>Oops! You rolled one or more 1s!</p>
{{/rollWasFumble() successes}}
</div>
</div>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-drawquip">
<div class="sheet-outer">
<div class="header">
@@ -2223,6 +2286,76 @@ on("sheet:opened", function(eventInfo){
getTranslationByKey("stamina") + ",@{stamina}|" +
getTranslationByKey("composure") + ",@{composure}}d10>8+?{" +
getTranslationByKey("extradice") + "|0}d10>8]]}}",
rollqueryarchetype:
"@{archetype}d10>8+?{" +
getTranslationByKey("selectattribute") + "|" +
getTranslationByKey("intellect") + ",@{intellect}|" +
getTranslationByKey("might") + ",@{might}|" +
getTranslationByKey("presence") + ",@{presence}|" +
getTranslationByKey("cunning") + ",@{cunning}|" +
getTranslationByKey("dexterity") + ",@{dexterity}|" +
getTranslationByKey("manipulation") + ",@{manipulation}|" +
getTranslationByKey("resolve") + ",@{resolve}|" +
getTranslationByKey("stamina") + ",@{stamina}|" +
getTranslationByKey("composure") + ",@{composure}}d10>8+?{" +
getTranslationByKey("extradice") + "|0}d10>8]]}}",
rollqueryorigin:
"@{origin}d10>8+?{" +
getTranslationByKey("selectattribute") + "|" +
getTranslationByKey("intellect") + ",@{intellect}|" +
getTranslationByKey("might") + ",@{might}|" +
getTranslationByKey("presence") + ",@{presence}|" +
getTranslationByKey("cunning") + ",@{cunning}|" +
getTranslationByKey("dexterity") + ",@{dexterity}|" +
getTranslationByKey("manipulation") + ",@{manipulation}|" +
getTranslationByKey("resolve") + ",@{resolve}|" +
getTranslationByKey("stamina") + ",@{stamina}|" +
getTranslationByKey("composure") + ",@{composure}}d10>8+?{" +
getTranslationByKey("extradice") + "|0}d10>8]]}}",
rollquerydarkagenda:
"@{ambition}d10>8+?{" +
getTranslationByKey("selectattribute") + "|" +
getTranslationByKey("intellect") + ",@{intellect}|" +
getTranslationByKey("might") + ",@{might}|" +
getTranslationByKey("presence") + ",@{presence}|" +
getTranslationByKey("cunning") + ",@{cunning}|" +
getTranslationByKey("dexterity") + ",@{dexterity}|" +
getTranslationByKey("manipulation") + ",@{manipulation}|" +
getTranslationByKey("resolve") + ",@{resolve}|" +
getTranslationByKey("stamina") + ",@{stamina}|" +
getTranslationByKey("composure") + ",@{composure}}d10>8+?{" +
getTranslationByKey("extradice") + "|0}d10>8]]}}",
rollquerypath4:
"@{path4}d10>8+?{" +
getTranslationByKey("selectattribute") + "|" +
getTranslationByKey("intellect") + ",@{intellect}|" +
getTranslationByKey("might") + ",@{might}|" +
getTranslationByKey("presence") + ",@{presence}|" +
getTranslationByKey("cunning") + ",@{cunning}|" +
getTranslationByKey("dexterity") + ",@{dexterity}|" +
getTranslationByKey("manipulation") + ",@{manipulation}|" +
getTranslationByKey("resolve") + ",@{resolve}|" +
getTranslationByKey("stamina") + ",@{stamina}|" +
getTranslationByKey("composure") + ",@{composure}}d10>8+?{" +
getTranslationByKey("extradice") + "|0}d10>8]]}}",
rollquerypath5:
"@{path5}d10>8+?{" +
getTranslationByKey("selectattribute") + "|" +
getTranslationByKey("intellect") + ",@{intellect}|" +
getTranslationByKey("might") + ",@{might}|" +
getTranslationByKey("presence") + ",@{presence}|" +
getTranslationByKey("cunning") + ",@{cunning}|" +
getTranslationByKey("dexterity") + ",@{dexterity}|" +
getTranslationByKey("manipulation") + ",@{manipulation}|" +
getTranslationByKey("resolve") + ",@{resolve}|" +
getTranslationByKey("stamina") + ",@{stamina}|" +
getTranslationByKey("composure") + ",@{composure}}d10>8+?{" +
getTranslationByKey("extradice") + "|0}d10>8]]}}",
});
});
@@ -2355,12 +2488,8 @@ on("sheet:opened", function(eventInfo){
getAttrs(['sheet-version','ambition_field'], function(values) {
let newattrs = {};
if (String(values['sheet-version'])=="") {
newattrs['sheet-version']="1.0";
}
if (String(values['sheet-version'])=="1.0") {
newattrs['sheet-version']="1.1";
if (String(values['sheet-version'])<"1.2") {
newattrs['sheet-version']="1.2";
}
setAttrs(newattrs);