diff --git a/Stargate-RPG/Readme.md b/Stargate-RPG/Readme.md index 67bd524dec..f0e91834fc 100644 --- a/Stargate-RPG/Readme.md +++ b/Stargate-RPG/Readme.md @@ -4,13 +4,27 @@ Offical Roll20 Character sheet for "Stargate RPG" by Wyvern Gaming (Full release ### Changelog -**v.1.21 (2020-08-04)** +**v.1.4** + +* Roll buttons & hover highlight made more distinct +* roll templates updated, now mentions character name, works better for descriptions * Init & moxie now rolls only once -* attacks section made more clear and given more space, rolls doesn't break if no damage is given any longer +* attacks section made more clear and given more space, rolls doesn't break if no damage is given, any special info is displayed on the roll * Skills set as default to zero * Default speed set to 6m, deafult HP removed. * Important fields that need to be filled out, are higlighted in red while empty. +Stat Additions/Removals: + +* determination now have a max value, moved next to AC +* `hp_temp` added, next to `hp` +* Tension die added, can be added to rolls with `@{td}` +* (MP)Mission Points added +* Bulk tracker +* Small Inventory section on first page +* Ammo trackers & `ac_extra` removed + + **v.1.2 (2020-07-28)** * skills, saves, init, ac, ac_extra & moxie now update when their attribute changes. init is keyed to dex, moxie to cha. * skills & saves that have been marked as proficient will now update when the prof bonus changes. diff --git a/Stargate-RPG/stargate.css b/Stargate-RPG/stargate.css index 5508457811..b3cbbac3a7 100644 --- a/Stargate-RPG/stargate.css +++ b/Stargate-RPG/stargate.css @@ -68,26 +68,31 @@ input[type="number"]{ width: 40px; } +.sheet-w30, input[type="text"].sheet-w30, input[type="number"].sheet-w30{ width: 30px; } +.sheet-w40, input[type="text"].sheet-w40, -input[type="number"].sheet-w40{ +input[type="number"].sheet-w40,{ width: 40px; } +.sheet-w50, input[type="text"].sheet-w50, input[type="number"].sheet-w50{ width: 50px; } +.sheet-w70, input[type="text"].sheet-w70, input[type="number"].sheet-w70{ width: 70px; } +.sheet-w110, input[type="text"].sheet-w110, input[type="number"].sheet-w110{ width: 110px; @@ -142,8 +147,8 @@ button[type="roll"].sheet-txt-btn:before{ } button[type="roll"].sheet-txt-btn{ - height: 22px; - border-style: none; + height: 19px; + border: 2px solid black; background-color: transparent; margin-left: 5px; font-weight: bold; @@ -151,8 +156,9 @@ button[type="roll"].sheet-txt-btn{ } button[type="roll"].sheet-txt-btn:hover{ - background-color: #d9d9d9; + background-color: #87AFC7; border-radius: 10px; + background-position: 0 -28px; } @@ -161,8 +167,10 @@ button[type="roll"].sheet-txt-btn:hover{ \*-----------------------------------------------------------------*/ .sheet-version{ - float: right; - margin-top: -20px; + float: left; + margin-top: -85px; + width: 170px; + margin-left: 550px; } @@ -228,8 +236,8 @@ div.sheet-page1 { "attr skills hp condition" "attr skills prof condition" "attr skills ac condition" - "attr skills speed condition" - "attr skills saves ammo " + "attr skills speed bulk " + "attr skills saves inventory" "attr attacks attacks attacks "; width: 850px; height: 1000px; @@ -238,7 +246,7 @@ div.sheet-page1 { background-size: 700px 700px; background-position: center; background-color: black; - margin-top: -23px; + margin-top: -52px; } div.sheet-page2 { @@ -255,7 +263,7 @@ div.sheet-page2 { background-size: 700px 700px; background-position: center; background-color: black; - margin-top: -23px; + margin-top: -52px; grid-gap: 10px; padding: 5px; } @@ -283,6 +291,16 @@ div.sheet-name label{ padding-left: 10px; } +div.sheet-name div select{ + width: 42px; + margin-left: 16px; +} + +div.sheet-name input[type="number"]{ + height: 20px; +} + + /* ATTRS SECTION */ div.sheet-attr{ grid-area: attr; @@ -337,7 +355,7 @@ div.sheet-attr input[type="number"]{ div.sheet-attr button[type="roll"].sheet-large{ font-size: 1.5em; - margin-bottom: 2px; + margin-bottom: -3px; border-radius: 15px; } @@ -431,6 +449,7 @@ div.sheet-condition{ div.sheet-condition span{ padding-left: 5px; font-weight: bold; + font-size: 12px; } /* prof SECTION */ @@ -443,6 +462,10 @@ div.sheet-prof > div:nth-child(1) > label:nth-child(1){ width: 80px; } +div.sheet-prof > div:nth-child(1){ + padding: 5px 1px; +} + div.sheet-prof > div:nth-child(2) > label:nth-child(1) { padding: 0px; } @@ -455,8 +478,16 @@ div.sheet-prof .sheet-init{ padding-right: 2px; } +div.sheet-prof .sheet-init button{ + width: 63px; + margin-left: 0px; + padding-right: 7px; + padding-left: 2px; +} + + div.sheet-prof .sheet-moxie{ - width: 50px; + width: 62px; } .sheet-prof > div:nth-child(2) > label:nth-child(1) { @@ -537,6 +568,27 @@ div.sheet-saves div.sheet-mb20{ +/* BULK SECTION */ + +div.sheet-bulk{ + grid-area:bulk; + width: 156px; + height: 80px; +} + +/* INVENTORY SECTION */ + +div.sheet-inventory{ + grid-area:inventory; + width: 156px; +} + +div.sheet-inventory textarea{ + width: 95%; + height: 95%; + margin-bottom: 0px; +} + /* ammo SECTION */ div.sheet-ammo.sheet-grid{ @@ -624,7 +676,8 @@ div.sheet-page2 textarea{ /* ------------ Tabs ---------- */ input.sheet-tab1:checked ~ div.sheet-tab1, -input.sheet-tab2:checked ~ div.sheet-tab2{ +input.sheet-tab2:checked ~ div.sheet-tab2, +span.sheet-version{ display: grid; } @@ -670,4 +723,95 @@ input.sheet-tab2 + span::before{ div.sheet-tab-content{ display: none; +} + +/*------------------------------------*\ + #ROLL TEMPLATES +\*------------------------------------*/ + +/* Smaller margins - remove these if you want the huge default left margin */ +.sheet-rolltemplate-stargate { + margin-left: -37px; +} +.withoutavatars .sheet-rolltemplate-stargate { + margin-left: -7px; +} + +.sheet-rolltemplate-stargate .sheet-container { + border: 3px solid black; + border-radius: 3px; +} + +/* Header formatting - title and subtitle */ +.sheet-rolltemplate-stargate .sheet-header { + background-color: var(--header-bg-color); + color: var(--header-text-color); + text-align: left; + text-transform: capitalize; + padding: 5px; + border-bottom: 2px solid black; +} +.sheet-rolltemplate-stargate .sheet-title { + font-size:1.2em; + font-weight: bold; +} +.sheet-rolltemplate-stargate .sheet-subtitle { + font-size:.9em; +} + +/* example colors */ +.sheet-rolltemplate-stargate .sheet-container { + /* this is the default color */ + --header-bg-color: #a83521; + --header-text-color: #FFF; +} + +/* alt template colors */ +.sheet-rolltemplate-stargate .sheet-container.sheet-color-green { + --header-bg-color: #008000; +} +.sheet-rolltemplate-stargate .sheet-container.sheet-color-black { + --header-bg-color: #000; +} +.sheet-rolltemplate-stargate .sheet-container.sheet-color-white { + --header-bg-color: #FFF; + --header-text-color: #000; +} + +/* Allprops part */ +.sheet-rolltemplate-stargate .sheet-content { + display: grid; + background: #FFF; + /* Header formatting - modify the column layout below */ + grid-template-columns: auto auto; + /* Line height to match default roll template */ + line-height:1.4em; +} +.sheet-rolltemplate-stargate .sheet-content > div { + padding: 5px; +} + +/* Left column */ +.sheet-rolltemplate-stargate .sheet-content .sheet-key { + font-weight: bold; + padding-right: 10px; + text-align: right; +} + +/* Empty rule, use this if you want to change the right column +.sheet-rolltemplate-stargate .sheet-value { +} +*/ + +/* Make even-numbered rows grey */ +.sheet-rolltemplate-stargate .sheet-content :nth-child(4n+3), +.sheet-rolltemplate-stargate .sheet-content :nth-child(4n) { + background:#EEE; +} + +/* Description field */ +.sheet-rolltemplate-stargate .sheet-desc { + grid-column: span 2; + padding: 5px; + text-align: center; } \ No newline at end of file diff --git a/Stargate-RPG/stargate.html b/Stargate-RPG/stargate.html index ea577d2fa3..dabc489308 100644 --- a/Stargate-RPG/stargate.html +++ b/Stargate-RPG/stargate.html @@ -1,7 +1,7 @@ - +Sheet Version: 1.4 + -Sheet Version: 1.21
-

Condition

+

CONDITION

Normal @@ -288,7 +305,7 @@
- disadv attacks saves + disadv attacks, saves
@@ -313,11 +330,11 @@
- +
- +
@@ -331,8 +348,12 @@
- - + +
+ + / + +
@@ -345,7 +366,7 @@
- +
@@ -369,38 +390,46 @@
- +
- +
- +
- +
- +
- +
+ + +
+

Tactical Vest Bulk

+ +
+ + + + +
+

Inventory

+ +
@@ -434,7 +470,7 @@
- +
@@ -458,7 +494,7 @@
- +
@@ -482,7 +518,7 @@
- +
@@ -506,7 +542,7 @@
- +
@@ -530,7 +566,7 @@
- +
@@ -604,6 +640,26 @@ Sheet Config/Settings goes here
--> + + + + + +
+
+ {{#title}}
{{title}}
{{/title}} + {{#subtitle}}
{{subtitle}}
{{/subtitle}} +
+
+ {{#allprops() title subtitle desc color}} +
{{key}}
+
{{value}}
+ {{/allprops() title subtitle desc color}} + {{#desc}}
{{desc}}
{{/desc}} +
+
+
+ @@ -743,17 +799,26 @@ on(`change:prof`, eventInfo => { console.log("prof change"); let profold = int(eventInfo.previousValue); console.log("eventinfo: " + eventInfo.previousValue); - let getlist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "acrobatics_c", "animalhandling_c", "athletics_c", "culture_c", "deception_c", "engineering_c", "history_c", "insight_c", "intimidation_c", "investigation_c", "medicine_c", "nature_c", "perception_c", "performance_c", "persuasion_c", "pilot_c", "science_c", "sleight_c", "stealth_c", "survival_c", "str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save","str_save_c", "dex_save_c", "con_save_c", "wis_save_c", "int_save_c", "cha_save_c", "prof"]; + let getlist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "acrobatics_c", "animalhandling_c", "athletics_c", "culture_c", "deception_c", "engineering_c", "history_c", "insight_c", "intimidation_c", "investigation_c", "medicine_c", "nature_c", "perception_c", "performance_c", "persuasion_c", "pilot_c", "science_c", "sleight_c", "stealth_c", "survival_c", "str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save","str_save_c", "dex_save_c", "con_save_c", "wis_save_c", "int_save_c", "cha_save_c", "prof", "determination", "determination_max"]; getAttrs(getlist, values => { var update = {}; let profnew = int(values["prof"]); let profdiff = profnew - profold; + let determination = int(values["determination"]) + profdiff; + let determination_max = int(values["determination_max"]) + profdiff; //manual fix for when you change proficiency for first time if (profnew === 3 && profold ===3)( profdiff = 1); + determination = int(values["determination"]) + profdiff; + determination_max = int(values["determination_max"]) + profdiff; + update["determination"] = determination; + console.log("det worked"); + update["determination_max"] = determination_max; + console.log("det max worked"); + console.log("profold:" + profold + " profnew:" + profnew + " proffdiff: " + profdiff); let xboxlist = ["acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival","str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save"]; @@ -796,7 +861,7 @@ statmods.forEach(statmod => { console.log("old mod: " + oldstatmod); - let getlist = ["str_mod", "dex_mod", "con_mod", "wis_mod", "int_mod", "cha_mod", "acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save", "prof", "init", "moxie", "ac", "ac_extra"]; + let getlist = ["str_mod", "dex_mod", "con_mod", "wis_mod", "int_mod", "cha_mod", "acrobatics", "animalhandling", "athletics", "culture", "deception", "engineering", "history", "insight", "intimidation", "investigation", "medicine", "nature", "perception", "performance", "persuasion", "pilot", "science", "sleight", "stealth", "survival", "str_save", "dex_save", "con_save", "wis_save", "int_save", "cha_save", "prof", "init", "moxie", "ac", "ac_extra", "determination","determination_max"]; getAttrs(getlist, values => { @@ -810,7 +875,8 @@ statmods.forEach(statmod => { console.log("oldstatmod: " + oldstatmod + " modnew:" + modnew + " moddiff: " + moddiff); update["athletics"] = int(values["athletics"]) + moddiff; update["str_save"] = int(values["str_save"]) + moddiff; - + update["bulk"] = 8 + modnew; + setAttrs(update); break; case "con_mod":