From fa72dfd04fb8ba8f85a5663f76d344c4c1d79e79 Mon Sep 17 00:00:00 2001 From: tapiochre Date: Fri, 19 Mar 2021 21:51:41 +0000 Subject: [PATCH] finalise the dice roller --- .../CortexPrime-Hammerhead.css | 4 +- .../CortexPrime-Hammerhead.html | 83 ++++++++++++++++++- CortexPrime-Hammerheads/readme.md | 5 ++ CortexPrime-Hammerheads/sheet.json | 2 +- 4 files changed, 88 insertions(+), 6 deletions(-) diff --git a/CortexPrime-Hammerheads/CortexPrime-Hammerhead.css b/CortexPrime-Hammerheads/CortexPrime-Hammerhead.css index eda5701fee..fbcf28d9f4 100644 --- a/CortexPrime-Hammerheads/CortexPrime-Hammerhead.css +++ b/CortexPrime-Hammerheads/CortexPrime-Hammerhead.css @@ -410,7 +410,7 @@ input[name="attr_Edit"]:checked + div { } .sheet-rolltemplate-Hammerheads { - background-color: #485c80; + background-color: #2a364e; margin-left: -50px; } @@ -431,7 +431,7 @@ input[name="attr_Edit"]:checked + div { .sheet-rolltemplate-dice { display: grid; - grid-template-columns: repeat(5, 35px); + grid-template-columns: repeat(7, 35px); align-items: start; grid-gap: 1rem; padding: 2ch; diff --git a/CortexPrime-Hammerheads/CortexPrime-Hammerhead.html b/CortexPrime-Hammerheads/CortexPrime-Hammerhead.html index 02a75b834c..709cd8d656 100644 --- a/CortexPrime-Hammerheads/CortexPrime-Hammerhead.html +++ b/CortexPrime-Hammerheads/CortexPrime-Hammerhead.html @@ -413,7 +413,7 @@
+&{template:Hammerheads} {{name=@{Callsign}}} {{portrait=@{Portrait}}} {{physical_stress=[[0d0+@{PhysicalStress}]]}} {{physical_dice_size=@{Physical}}} {{physical=[[1d@{Physical}]]}} {{mental_stress=[[0d0+@{MentalStress}]]}} {{mental_dice_size=@{Mental}}} {{mental=[[1d@{Mental}]]}} {{social_stress=[[0d0+@{SocialStress}]]}} {{social_dice_size=@{Social}}} {{social=[[1d@{Social}]]}} {{trait_name=[[0d0 + ?{Which attribute?|Physical,1|Mental,2|Social,3}]]}} {{CrowdControl_dice_size=@{CrowdControl}}} {{CrowdControl=[[1d@{CrowdControl}]]}} {{EmergencyMedical_dice_size=@{EmergencyMedical}}} {{EmergencyMedical=[[1d@{EmergencyMedical}]]}} {{Firefighting_dice_size=@{Firefighting}}} {{Firefighting=[[1d@{Firefighting}]]}} {{HammerheadPilot_dice_size=@{HammerheadPilot}}} {{HammerheadPilot=[[1d@{HammerheadPilot}]]}} {{Hazmat_dice_size=@{Hazmat}}} {{Hazmat=[[1d@{Hazmat}]]}} {{HighAltitudeRecovery_dice_size=@{HighAltitudeRecovery}}} {{HighAltitudeRecovery=[[1d@{HighAltitudeRecovery}]]}} {{LegalSpecialist_dice_size=@{LegalSpecialist}}} {{LegalSpecialist=[[1d@{LegalSpecialist}]]}} {{Logistics_dice_size=@{Logistics}}} {{Logistics=[[1d@{Logistics}]]}} {{MarineRecovery_dice_size=@{MarineRecovery}}} {{MarineRecovery=[[1d@{MarineRecovery}]]}} {{NetworkSpecialist_dice_size=@{NetworkSpecialist}}} {{NetworkSpecialist=[[1d@{NetworkSpecialist}]]}} {{Mechanic_dice_size=@{Mechanic}}} {{Mechanic=[[1d@{Mechanic}]]}} {{TacticalResponse_dice_size=@{TacticalResponse}}} {{TacticalResponse=[[1d@{TacticalResponse}]]}} {{TechnicalAnalyst_dice_size=@{TechnicalAnalyst}}} {{TechnicalAnalyst=[[1d@{TechnicalAnalyst}]]}} {{UrbanRecovery_dice_size=@{UrbanRecovery}}} {{UrbanRecovery=[[1d@{UrbanRecovery}]]}} {{TrainingPackage=[[0d0 + ?{Which training package?|Crowd Control,1|Emergency Medical,2|Firefighting,3|Hammerhead Pilot,4|Hazmat,5|High Altitude Recovery,6|Legal Specialist,7|Logistics,8|Marine Recovery,9|Network Specialist,10|Mechanic,11|Tactical Response,12|Technical Analyst,13|Urban Recovery,14}]]}} {{Distinction_dice_size=8}} {{Distinction=[[1d8]]}} {{Hinder_dice_size=4}} {{Hinder=[[1d4]]}} {{Distinction_Name=?{Which Distinction?|@{Distinction1Name}|@{Distinction2Name}|@{Distinction3Name}}}} {{Distinction_Hinder=[[0d0 +?{Does your distinction help or hinder?|Help,1|Hinder,2}]]}} {{MyStress4=[[1d4]]}} {{Stress4=[[1d4]]}} {{Stress6=[[1d6]]}} {{Stress8=[[1d8]]}} {{Stress10=[[1d10]]}} {{Stress12=[[1d12]]}} {{MyStress=[[0d0 +?{Do you have relevant stress at D4?|No,0|Yes,4}]]}} {{TargetStress=[[0d0 +?{Does your target have any stress?|No,0|D6,6|D8,8|D10,10|D12,12}]]}} {{friend4=[[1d4]]}} {{friend6=[[1d6]]}} {{friend8=[[1d8]]}} {{friend10=[[1d10]]}} {{friend12=[[1d12]]}} {{friendship=[[0d0+?{Are you receiving help?|No,0|D6,6|D8,8|D10,10|D12,12}]]}}">Dice Pool Builder
@@ -1072,9 +1072,65 @@ d12 • Target Stress {{/rollTotal() TargetStress 12}} + + {{#rollTotal() friendship 6}} +
+ {{friend6}} +
+
+ A little help
+ d6 • Help +
+ {{/rollTotal() friendship 6}} + {{#rollTotal() friendship 8}} +
+ {{friend8}} +
+
+ Some help
+ d8 • Help +
+ {{/rollTotal() friendship 8}} + {{#rollTotal() friendship 10}} +
+ {{friend10}} +
+
+ Real help
+ d10 • Help +
+ {{/rollTotal() friendship 10}} + {{#rollTotal() friendship 12}} +
+ {{friend12}} +
+
+ Incredible help
+ d12 • Target Stress +
+ {{/rollTotal() friendship 12}} + -

  Results

+ {{#rollGreater() physical_stress physical}} +
{{name}} is shaken as their Physical stress is larger than their Physical Attribute.
They can only keep one die in their result.
+ {{/rollGreater() physical_stress physical}} + + + {{#^rollGreater() physical_stress physical}} + {{#rollGreater() mental_stress mental}} +
{{name}} is shaken as their Mental stress is larger than their Mental Attribute.
They can only keep one die in their result.
+ {{/rollGreater() mental_stress mental}} + {{/^rollGreater() physical_stress physical}} + + {{#^rollGreater() physical_stress physical}} + {{#^rollGreater() mental_stress mental}} + {{#rollGreater() social_stress social}} +
{{name}} is shaken as their Social stress is larger than their Social Attribute.
They can only keep one die in their result.
+ {{/rollGreater() social_stress social}} + {{/^rollGreater() mental_stress mental}} + {{/^rollGreater() physical_stress physical}} +
{{#rollTotal() trait_name 1}} @@ -1202,12 +1258,33 @@ {{Stress12}}
{{/rollTotal() TargetStress 12}} + + {{#rollTotal() friendship 6}} +
+ {{friend6}} +
+ {{/rollTotal() friendship 6}} + {{#rollTotal() friendship 8}} +
+ {{friend8}} +
+ {{/rollTotal() friendship 8}} + {{#rollTotal() friendship 10}} +
+ {{friend10}} +
+ {{/rollTotal() friendship 10}} + {{#rollTotal() friendship 12}} +
+ {{friend12}} +
+ {{/rollTotal() friendship 12}} \ No newline at end of file diff --git a/CortexPrime-Hammerheads/readme.md b/CortexPrime-Hammerheads/readme.md index 5867449dc5..a9ed687fbc 100644 --- a/CortexPrime-Hammerheads/readme.md +++ b/CortexPrime-Hammerheads/readme.md @@ -34,6 +34,11 @@ Character Portraits sourced from https://thispersondoesnotexist.com/ ##Changelog +### V1.2 2021-03-19 + +Added a Roll Template, to better display the roll results. +Added black dice icons and dark dice icons to use in roll template + ### V1.1 2021-03-17 Fixed broken images diff --git a/CortexPrime-Hammerheads/sheet.json b/CortexPrime-Hammerheads/sheet.json index 488c8b95cc..076f2bc423 100644 --- a/CortexPrime-Hammerheads/sheet.json +++ b/CortexPrime-Hammerheads/sheet.json @@ -5,5 +5,5 @@ "roll20userid": "73532", "preview": "CortexPrime-Hammerhead.png", "legacy": true, - "instructions": "Cortex Prime: Hammerhead Character Sheet\n\n##Set up\n\n- Open the Journal tab, and add a new Character.\n- Click on save changes.\n- Open the Character Sheet Tab\n- Tick the Edit Checkbox.\n- Select One of the Portraits, or select the dot next to the word Portrait to set no portrait.\n- Set the dice values for the Attributes, Training Packages, and Relationships using the drop downs.\n- Untick the Edit check box to hide the editor\n- Enter the remaining details - Name, Description, Value statements, Relationship names, Distinctions title and description in the editable text fields.\n\n##Dice Pool Builder\n\nThe inbuilt Dice Pool Builder pulls from the character's attributes, rolls and keeps highest two dice in the pool by default. I refer to this as the suggested best result.\n\n##Stress and Trauma\n\nI have been using API macro's to adjust Stress values. But these are simply Attributes (PhysicalStress, MentalStress, SocialStress and PhysicalTrauma, MentalTrauma, SocialTrauma ).\nYou can add these to the Attributes and Abilities tab manually, and assign values ranging from the 4,6,8,10 or 12 corresponding to the dice value.\n\nIf you have added a stress and it's not showing check the spelling, Capitalisation, and dice value to be sure you got those all correct.\n\nAny feedback, or requests - I'm happy to hear.\n\n---\n\nHammerheads is a part of the Cortex Prime Game Handbook published by Fandom Inc, and was written, designed, and developed by Cam Banks.\nHammerheads uses the Cortex system. The Cortex system and the Fandom logos are © 2020 Fandom Inc. All rights reserved. Reference to other copyrighted material in no way constitutes a challenge to the respective copyright holders of that material.\nArtwork and graphics © and ™ Fandom Inc, illustrated by Ten Ten Studios Malaysia. All rights reserved.\nCharacter Portraits sourced from https://thispersondoesnotexist.com/\n\n\n##Changelog\n\n\n### v.1.0 2021-03-13" + "instructions": "Cortex Prime: Hammerhead Character Sheet\n\n##Set up\n\n- Open the Journal tab, and add a new Character.\n- Click on save changes.\n- Open the Character Sheet Tab\n- Tick the Edit Checkbox.\n- Select One of the Portraits, or select the dot next to the word Portrait to set no portrait.\n- Set the dice values for the Attributes, Training Packages, and Relationships using the drop downs.\n- Untick the Edit check box to hide the editor\n- Enter the remaining details - Name, Description, Value statements, Relationship names, Distinctions title and description in the editable text fields.\n\n##Dice Pool Builder\n\nThe inbuilt Dice Pool Builder pulls from the character's attributes, rolls and keeps highest two dice in the pool by default. I refer to this as the suggested best result.\n\n##Stress and Trauma\n\nI have been using API macro's to adjust Stress values. But these are simply Attributes (PhysicalStress, MentalStress, SocialStress and PhysicalTrauma, MentalTrauma, SocialTrauma ).\nYou can add these to the Attributes and Abilities tab manually, and assign values ranging from the 4,6,8,10 or 12 corresponding to the dice value.\n\nIf you have added a stress and it's not showing check the spelling, Capitalisation, and dice value to be sure you got those all correct.\n\nAny feedback, or requests - I'm happy to hear.\n\n---\n\nHammerheads is a part of the Cortex Prime Game Handbook published by Fandom Inc, and was written, designed, and developed by Cam Banks.\nHammerheads uses the Cortex system. The Cortex system and the Fandom logos are © 2020 Fandom Inc. All rights reserved. Reference to other copyrighted material in no way constitutes a challenge to the respective copyright holders of that material.\nArtwork and graphics © and ™ Fandom Inc, illustrated by Ten Ten Studios Malaysia. All rights reserved.\nCharacter Portraits sourced from https://thispersondoesnotexist.com/\n" } \ No newline at end of file