diff --git a/Todo and utils.txt b/Todo and utils.txt index 25b8de0..6112182 100644 --- a/Todo and utils.txt +++ b/Todo and utils.txt @@ -48,7 +48,7 @@ on("change:skill_SKILLNAME_activation change:general_skilllevel_SKILLNAME", func - + @@ -83,3 +83,5 @@ on("change:item_shield3_activation change:general_item_shield3", function() { setAttrs({"general_effective_shield3":values.item_shield3_activation*values.general_item_shield3}); }); }); + +name roll_name dice_name result threshold diff --git a/feuille_sysd10.html b/feuille_sysd10.html index a91d0bb..d625a68 100644 --- a/feuille_sysd10.html +++ b/feuille_sysd10.html @@ -401,7 +401,8 @@ d10+ + - +
@@ -410,7 +411,8 @@ - + @@ -469,7 +471,8 @@ - + @@ -488,7 +491,8 @@ - + @@ -507,7 +511,8 @@ - + @@ -526,7 +531,8 @@ - + @@ -587,7 +593,8 @@ d10+ + - + @@ -624,7 +631,8 @@ - + @@ -643,7 +651,8 @@ - + @@ -662,7 +671,8 @@ - + @@ -681,7 +691,8 @@ - + @@ -734,7 +745,8 @@ - + @@ -753,7 +765,8 @@ - + @@ -772,7 +785,8 @@ - + @@ -829,3 +843,28 @@ + + + + + + {{#rollWasCrit() result}} + + {{/rollWasCrit() result}} + {{#^rollWasCrit() result}} + {{#rollGreater() result 1}} + + {{/rollGreater() result 1}} + {{#rollBetween() result 0 1}} + + {{/rollBetween() result 0 1}} + {{#rollLess() result 0}} + + {{/rollLess() result 0}} + {{#rollWasFumble() result}} + + {{/rollWasFumble() result}} + {{/^rollWasCrit() result}} + +
{{name}} — {{roll_name}}
Test au d{{dice_name}} seuil {{threshold}}
Critique ! {{result}} degrés de réussite{{result}} degrés de réussite{{result}} degré de réussite{{result}} degrés d'échecÉchec critique ! {{result}} degrés d'échec
+
diff --git a/style.css b/style.css index a7f3fcf..1907d23 100644 --- a/style.css +++ b/style.css @@ -3,14 +3,14 @@ input.sheet-tab1:checked ~ div.sheet-tab1, input.sheet-tab2:checked ~ div.sheet-tab2, input.sheet-tab3:checked ~ div.sheet-tab3 { - display: block; + display: block; } input.sheet-secondary_tab1:checked ~ div.sheet-secondary_tab1, input.sheet-secondary_tab2:checked ~ div.sheet-secondary_tab2, input.sheet-secondary_tab3:checked ~ div.sheet-secondary_tab3, input.sheet-secondary_tab4:checked ~ div.sheet-secondary_tab4 { - display:block; + display:block; } input.sheet-secondary_magic_tab1:checked ~ div.sheet-secondary_magic_tab1, input.sheet-secondary_magic_tab2:checked ~ div.sheet-secondary_magic_tab2, @@ -18,105 +18,167 @@ input.sheet-secondary_magic_tab3:checked ~ div.sheet-secondary_magic_tab3, input.sheet-secondary_magic_tab4:checked ~ div.sheet-secondary_magic_tab4, input.sheet-secondary_magic_tab5:checked ~ div.sheet-secondary_magic_tab5 { - display:block; + display:block; } input.sheet-secondary_skills_tab1:checked ~ div.sheet-secondary_skills_tab1, input.sheet-secondary_skills_tab2:checked ~ div.sheet-secondary_skills_tab2, input.sheet-secondary_skills_tab3:checked ~ div.sheet-secondary_skills_tab3 { - display:block; + display:block; } input.sheet-tab{ - -moz-appearance: none; - width:150px; - height: 20px; - top: 5px; - left: 6px; - margin: 5px; - cursor: pointer; - z-index: 1; - content: attr(title); + -moz-appearance: none; + width:150px; + height: 20px; + top: 5px; + left: 6px; + margin: 5px; + cursor: pointer; + z-index: 1; + content: attr(title); } input.sheet-tab::before{ - -moz-appearance: none; - content: attr(title); + -moz-appearance: none; + content: attr(title); - border-radius:.5em; - border:2px solid black; - text-align: center; - display: inline-block; + border-radius:.5em; + border:2px solid black; + text-align: center; + display: inline-block; - background: black; - color:white; - width: 150px; - height: 20px; - font-size: 18px; + background: black; + color:white; + width: 150px; + height: 20px; + font-size: 18px; } input.sheet-tab:checked::before{ - -moz-appearance: none; - background:#CCCCCC; - color:black; - border-radius:.5em; - border:2px solid black; + -moz-appearance: none; + background:#CCCCCC; + color:black; + border-radius:.5em; + border:2px solid black; } input.sheet-small_tab{ - -moz-appearance: none; - width:120px; - height: 20px; - cursor: pointer; - z-index: 1; - margin:5px; + -moz-appearance: none; + width:120px; + height: 20px; + cursor: pointer; + z-index: 1; + margin:5px; } input.sheet-small_tab::before{ - -moz-appearance: none; - content: attr(title); + -moz-appearance: none; + content: attr(title); - border-radius:.5em; - text-align: center; - display: inline-block; - color:white; - background:black; - border:2px solid black; - width: 120px; - height:20px; - font-size: 14px; + border-radius:.5em; + text-align: center; + display: inline-block; + color:white; + background:black; + border:2px solid black; + width: 120px; + height:20px; + font-size: 14px; } input.sheet-small_tab:checked::before{ - -moz-appearance: none; - border:2px solid black; - background:#CCCCCC; - color:black; - border-radius:.5em; + -moz-appearance: none; + border:2px solid black; + background:#CCCCCC; + color:black; + border-radius:.5em; } input.sheet-skill_name{ - -moz-appearance: none; - width:400px; + -moz-appearance: none; + width:400px; } input.sheet-skill_hidden{ visibility: hidden; } div.sheet-tab-content{ - border-top-color: #000; - margin: 2px 0 0 0; + border-top-color: #000; + margin: 2px 0 0 0; } select.sheet-skill_select{ - width:55px; - margin-bottom:-1px; + width:55px; + margin-bottom:-1px; } select.sheet-dice_select{ - width:85px; - margin-bottom:-1px; + width:85px; + margin-bottom:-1px; } .sheet-trait{ width: 30px; } .sheet-numberbox { - width: 50px; + width: 50px; +} + + +.sheet-rolltemplate-d10skillcheck table { + border-radius: 6px; + width:100%; + border: 2px solid #898989; + background-color: #999999; + padding: 2px; + border: 1px solid; + background-color: #ffffff; +} +.sheet-rolltemplate-d10skillcheck th { + color: rgb(42, 42, 42); + padding-left: 5px; + font-size: 1.2em; + text-align: left; + font-family: "Times New Roman", Times, serif; + font-variant: small-caps; + text-transform: capitalize; +} + +.sheet-rolltemplate-d10skillcheck .sheet-roll-sucess , +.sheet-rolltemplate-d10skillcheck .sheet-roll-fail { + padding-left: 5px; + margin-bottom: 5px; +} +.sheet-rolltemplate-d10skillcheck .sheet-roll-crit { + padding-left: 5px; + margin-bottom: 5px; + background-color:#b0d6ad; +} +.sheet-rolltemplate-d10skillcheck .sheet-roll-fumble { + padding-left: 5px; + margin-bottom: 5px; + background-color:#d6adad; +} + +.sheet-rolltemplate-d10skillcheck .sheet-roll-attr{ + color: #555555; + font-size: 1em; + font-style: italic; + padding-left: 9px; + padding-top: 0px; + margin-top: -10px; +} +.sheet-rolltemplate-d10skillcheck .inlinerollresult { + background-color: transparent; + border: none; +} +.sheet-rolltemplate-d10skillcheck .inlinerollresult.fullcrit { + color: #3FB315; + border: none; +} + +.sheet-rolltemplate-d10skillcheck .inlinerollresult.fullfail { + color: #B31515; + border: none; +} +.sheet-rolltemplate-d10skillcheck .inlinerollresult.importantroll { + color: #4A57ED; + border: none; }