Cypher System v1.4

New setting to choose the roll parameters type: via the Action section
or Roll Queries
New button to show Special Abilitie, Cyphers, or Artefacts details in
the chat
This commit is contained in:
NathaTerrien
2015-11-21 14:42:56 +01:00
parent 966aef4281
commit 160c8d366c
4 changed files with 322 additions and 50 deletions
+232 -25
View File
@@ -11,22 +11,22 @@ td,
th{
box-sizing: border-box;
}
span.sheet-smallspan{
font-size:11px;
color: #888888;
text-align:left;
}
input[type=radio].sheet-styleCypher,
input[type=radio].sheet-styleNumenera,
input[type=radio].sheet-styleTheStrange,
input[type=radio].sheet-styleNpc{
margin-left: 10px;
margin-right: 2px;
input[type=radio].sheet-styleNpc,
input[type=radio].sheet-actionRoll,
input[type=radio].sheet-macroRoll{
margin-left: 2px;
margin-right: 1px;
display: inline-block;
}
input[type=radio].sheet-styleCypher + span,
input[type=radio].sheet-styleNumenera + span,
input[type=radio].sheet-styleTheStrange + span,
input[type=radio].sheet-styleNpc + span{
input[type=radio].sheet-styleNpc + span,
input[type=radio].sheet-actionRoll + span,
input[type=radio].sheet-macroRoll + span{
font-size:11px;
color: #888888;
text-align:left;
@@ -55,7 +55,19 @@ input[type=radio].sheet-styleTheStrange:checked ~ .sheet-npc{
display: none;
}
input[type=radio].sheet-styleNpc:checked ~ .sheet-npc{
display: inherit;
display: inherit;
}
button[type=roll].sheet-btDesc{
font-family: inherit;
color: inherit;
font-size:inherit;
height:20px;
line-height: 11px;
vertical-align: middle;
padding:none;
}
button[type=roll].sheet-btDesc:before{
content:none;
}
button[type=roll].sheet-basicbt {
padding: 2px 0px 0px 1px;
@@ -80,6 +92,70 @@ button[type=roll].sheet-basicbt:hover{
border-color:#22428F;
font-weight: bold;
}
button[type=roll].sheet-actionbt {
padding: 2px 0px 0px 1px;
margin: 0px 0px 0px 0px;
text-shadow: none;
box-shadow: none;
text-align:center;
vertical-align: middle;
line-height: 0px;
height: 20px;
width: 20px;
font-size: 1.2em;
font-weight: normal;
color:#22428F;
border-width: 1px;
border-style: solid;
border-color: rgba(34,66,143,0.5);
border-radius: 10px;
}
button[type=roll].sheet-actionbt:hover{
border-width: 2px;
border-color:#22428F;
font-weight: bold;
}
button[type=roll].sheet-macrobt {
padding: 2px 0px 0px 1px;
margin: 0px 0px 0px 0px;
text-shadow: none;
box-shadow: none;
text-align:center;
vertical-align: middle;
line-height: 0px;
height: 20px;
width: 20px;
font-size: 1.2em;
font-weight: normal;
color:#22428F;
border-width: 1px;
border-style: solid;
border-color: rgba(34,66,143,0.5);
border-radius: 3px;
}
button[type=roll].sheet-macrobt:hover{
border-width: 2px;
border-color:#22428F;
font-weight: bold;
}
input[type=radio].sheet-macroRoll:checked ~ div.sheet-main button[type=roll].sheet-actionbt{
display: none;
}
input[type=radio].sheet-actionRoll:checked ~ div.sheet-main button[type=roll].sheet-actionbt{
display: inline-block;
}
input[type=radio].sheet-macroRoll:checked ~ div.sheet-main button[type=roll].sheet-macrobt{
display: inline-block;
}
input[type=radio].sheet-actionRoll:checked ~ div.sheet-main button[type=roll].sheet-macrobt{
display: none;
}
input[type=radio].sheet-actionRoll:checked ~ div.sheet-main div.sheet-divaction{
display: inline-block;
}
input[type=radio].sheet-macroRoll:checked ~ div.sheet-main div.sheet-divaction{
display: none;
}
input[type=radio].sheet-styleNumenera:checked ~ div.sheet-main button[type=roll].sheet-basicbt {
padding: 2px 0px 0px 1px;
margin: 0px 0px 0px 0px;
@@ -104,6 +180,54 @@ input[type=radio].sheet-styleNumenera:checked ~ div.sheet-main button[type=roll]
border-color:#53628A;
font-weight: bold;
}
input[type=radio].sheet-styleNumenera:checked ~ div.sheet-main button[type=roll].sheet-actionbt {
padding: 2px 0px 0px 1px;
margin: 0px 0px 0px 0px;
text-shadow: none;
box-shadow: none;
text-align:center;
vertical-align: middle;
line-height: 0px;
height: 20px;
width: 20px;
font-size: 1.2em;
font-weight: bold;
color: #A09C90;
border-width: 1px;
border-style: solid;
border-color: #A09C90;
border-radius: 10px;
}
input[type=radio].sheet-styleNumenera:checked ~ div.sheet-main button[type=roll].sheet-actionbt:hover{
border-width: 2px;
color: #53628A;
border-color:#53628A;
font-weight: bold;
}
input[type=radio].sheet-styleNumenera:checked ~ div.sheet-main button[type=roll].sheet-macrobt {
padding: 2px 0px 0px 1px;
margin: 0px 0px 0px 0px;
text-shadow: none;
box-shadow: none;
text-align:center;
vertical-align: middle;
line-height: 0px;
height: 20px;
width: 20px;
font-size: 1.2em;
font-weight: bold;
color: #A09C90;
border-width: 1px;
border-style: solid;
border-color: #A09C90;
border-radius: 3px;
}
input[type=radio].sheet-styleNumenera:checked ~ div.sheet-main button[type=roll].sheet-macrobt:hover{
border-width: 2px;
color: #53628A;
border-color:#53628A;
font-weight: bold;
}
input[type=radio].sheet-styleTheStrange:checked ~ div.sheet-main button[type=roll].sheet-basicbt {
padding: 2px 0px 0px 1px;
margin: 0px 0px 0px 0px;
@@ -128,6 +252,54 @@ input[type=radio].sheet-styleTheStrange:checked ~ div.sheet-main button[type=rol
border-color:#050E29;
font-weight: bold;
}
input[type=radio].sheet-styleTheStrange:checked ~ div.sheet-main button[type=roll].sheet-actionbt {
padding: 2px 0px 0px 1px;
margin: 0px 0px 0px 0px;
text-shadow: none;
box-shadow: none;
text-align:center;
vertical-align: middle;
line-height: 0px;
height: 20px;
width: 20px;
font-size: 1.2em;
font-weight: normal;
color: #050E29;
border-width: 1px;
border-style: solid;
border-color: rgba(5,14,41,0.5);
border-radius: 10px;
}
input[type=radio].sheet-styleTheStrange:checked ~ div.sheet-main button[type=roll].sheet-actionbt:hover{
border-width: 2px;
color: #050E29;
border-color:#050E29;
font-weight: bold;
}
input[type=radio].sheet-styleTheStrange:checked ~ div.sheet-main button[type=roll].sheet-macrobt {
padding: 2px 0px 0px 1px;
margin: 0px 0px 0px 0px;
text-shadow: none;
box-shadow: none;
text-align:center;
vertical-align: middle;
line-height: 0px;
height: 20px;
width: 20px;
font-size: 1.2em;
font-weight: normal;
color: #050E29;
border-width: 1px;
border-style: solid;
border-color: rgba(5,14,41,0.5);
border-radius: 3px;
}
input[type=radio].sheet-styleTheStrange:checked ~ div.sheet-main button[type=roll].sheet-macrobt:hover{
border-width: 2px;
color: #050E29;
border-color:#050E29;
font-weight: bold;
}
button[type=roll].sheet-apibt{
padding: 2px 0px 0px 0px;
margin: 0px 0px 0px 0px;
@@ -534,6 +706,38 @@ input[type=radio].sheet-styleTheStrange:checked ~ div.sheet-main img.sheet-game
border-bottom-left-radius:0px;
margin-bottom: 6px;
}
.sheet-rolltemplate-cyphDesc table {
width: 189px;
padding: 2px;
border-top-left-radius:6px;
border-top-right-radius:6px;
border-bottom-right-radius:0px;
border-bottom-left-radius:0px;
border: none;
background-color: #FAF4FA;
border-bottom: 1px solid #702082;
}
.sheet-rolltemplate-cyphDesc tr {
border-left: 1px solid #702082;
border-right: 1px solid #702082;
}
.sheet-rolltemplate-cyphDesc th {
background-color: #702082;
color : #FBFCFC;
line-height: 1.4em;
font-size: 1.2em;
text-align: center;
font-family: "Times New Roman", Times, serif;
font-variant: small-caps;
border-top-left-radius:6px;
border-top-right-radius:6px;
border-bottom-right-radius:0px;
border-bottom-left-radius:0px;
margin-bottom: 6px;
}
.sheet-rolltemplate-cyphDesc span {
font-weight: bold;
}
.sheet-rolltemplate-cyphBasicRoll table {
width: 189px;
padding: 2px;
@@ -548,7 +752,8 @@ input[type=radio].sheet-styleTheStrange:checked ~ div.sheet-main img.sheet-game
.sheet-rolltemplate-cyphBasicRoll tr:first-child
, .sheet-rolltemplate-cyphRecovery tr:first-child
, .sheet-rolltemplate-cyphInit tr:first-child
, .sheet-rolltemplate-cyphMsg tr:first-child {
, .sheet-rolltemplate-cyphMsg tr:first-child
, .sheet-rolltemplate-cyphDesc tr:first-child {
border:none;
}
.sheet-rolltemplate-cyphBasicRoll tr {
@@ -572,24 +777,14 @@ input[type=radio].sheet-styleTheStrange:checked ~ div.sheet-main img.sheet-game
.sheet-rolltemplate-cyphBasicRoll td
, .sheet-rolltemplate-cyphRecovery td
, .sheet-rolltemplate-cyphInit td
,.sheet-rolltemplate-cyphMsg td {
, .sheet-rolltemplate-cyphMsg td
, .sheet-rolltemplate-cyphDesc td{
padding-left: 5px;
font-family: "Verdana";
font-size: 0.9em;
}
.sheet-rolltemplate-cyphBasicRoll hr
, .sheet-rolltemplate-cyphRecovery hr
, .sheet-rolltemplate-cyphInit hr
,.sheet-rolltemplate-cyphMsg hr {
margin: 4px 0 4px 0;
border: 0;
height: 1px;
background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(5,109,161,1.75), rgba(0,0,0,0));
background-image: -moz-linear-gradient(left, rgba(0,0,0,0), rgba(5,109,161,1.75), rgba(0,0,0,0));
background-image: -ms-linear-gradient(left, rgba(0,0,0,0), rgba(5,109,161,1.75), rgba(0,0,0,0));
background-image: -o-linear-gradient(left, rgba(0,0,0,0), rgba(5,109,161,1.75), rgba(0,0,0,0));
}
.sheet-rolltemplate-cyphMsg .inlinerollresult {
.sheet-rolltemplate-cyphMsg .inlinerollresult
,.sheet-rolltemplate-cyphDesc .inlinerollresult{
font-weight:normal;
background-color: transparent;
border: none;
@@ -605,3 +800,15 @@ input[type=radio].sheet-styleTheStrange:checked ~ div.sheet-main img.sheet-game
font-size: 1em;
border: 1px solid LightGray;
}
.sheet-rolltemplate-cyphBasicRoll hr
, .sheet-rolltemplate-cyphRecovery hr
, .sheet-rolltemplate-cyphInit hr
,.sheet-rolltemplate-cyphMsg hr {
margin: 4px 0 4px 0;
border: 0;
height: 1px;
background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(5,109,161,1.75), rgba(0,0,0,0));
background-image: -moz-linear-gradient(left, rgba(0,0,0,0), rgba(5,109,161,1.75), rgba(0,0,0,0));
background-image: -ms-linear-gradient(left, rgba(0,0,0,0), rgba(5,109,161,1.75), rgba(0,0,0,0));
background-image: -o-linear-gradient(left, rgba(0,0,0,0), rgba(5,109,161,1.75), rgba(0,0,0,0));
}
+80 -21
View File
@@ -1,11 +1,16 @@
<!-- ******* PC **************** -->
<span class="sheet-smallspan">Version 1.3 (2015-10-25)&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;&nbsp;&nbsp;&nbsp;Style: </span>
<div style="display:inline-block;font-size:11px;color: #888888;text-align:left;font-weight: bold;">Style:</div>
<input type="radio" name="attr_sheetStyle" value="0" class="sheet-styleCypher" checked="checked" title="Cypher System" /><span>Cypher System</span>
<input type="radio" name="attr_sheetStyle" value="1" class="sheet-styleNumenera" title="Numen&eacute;ra" /><span>Numen&eacute;ra</span>
<input type="radio" name="attr_sheetStyle" value="2" class="sheet-styleTheStrange" title="The Strange"/><span>The Strange</span>
<input type="radio" name="attr_sheetStyle" value="99" class="sheet-styleNpc" title="NPC"/><span>NPC</span>
<div style="display:inline-block;font-size:11px;color: #888888;text-align:left;font-weight: bold;margin-left:10px;">- Rolls type:</div>
<input type="radio" name="attr_sheetRolls" value="0" class="sheet-actionRoll" checked="checked" title="Roll using the Action section parameters" /><span>Action Section</span>
<input type="radio" name="attr_sheetRolls" value="1" class="sheet-macroRoll" title="Roll using roll queries for parameters" /><span>Roll Queries</span>
<div style="display:inline-block;font-size:11px;color: #888888;text-align:left;margin-left:10px;">- Version 1.4 (2015-11-21)</div>
<div class="sheet-main">
<div style="display: none;"> <!-- HIDDEN Rolls and Calculations -->
<!-- Using the Action Section -->
<input type="hidden" name="attr_targNum" value="@{rollVarDiff}*3" />
<input type="hidden" name="attr_effortCost" value="ceil((@{rollVarRollEff}+@{rollVarRollDmg})/6)+(@{rollVarRollEff}+@{rollVarRollDmg})*2" />
<input type="hidden" name="attr_effortSpeedCost" value="ceil((@{rollVarRollEff}+@{rollVarRollDmg})/6)+(@{rollVarRollEff}+@{rollVarRollDmg})*(2+@{armorspeedcost})" />
@@ -14,6 +19,21 @@
<input type="hidden" name="attr_MightCost" value="@{totalCost}-@{mightedge}" />
<input type="hidden" name="attr_SpeedCost" value="@{totalSpeedCost}-@{speededge}" />
<input type="hidden" name="attr_IntelCost" value="@{totalCost}-@{intellectedge}" />
<!-- Using questions -->
<input type="hidden" name="attr_rollQstDiff" value="?{Difficulty|0 - Routine,0|1 - Simple,1|2 - Standard,2|3 - Demanding,3|4 - Difficult,4|5 - Challenging,5|6 - Intimidating,6|7 - Formidable,7|8 - Heroic,8|9 - Immortal,9|10 - Impossible,10}" />
<input type="hidden" name="attr_rollQstCost" value="?{Cost|0}" />
<input type="hidden" name="attr_rollQstBonus" value="?{Bonus|0|1|2|-1|-2}" />
<input type="hidden" name="attr_rollQstRollEff" value="?{Effort to Roll|0|1|2|3|4|5|6}" />
<input type="hidden" name="attr_rollQstRollDmg" value="?{Effort to Damage|0|1|2|3|4|5|6}" />
<input type="hidden" name="attr_rollQstAsset" value="?{Asset|0|1|2}" />
<input type="hidden" name="attr_targNumQst" value="@{rollQstDiff}*3" />
<input type="hidden" name="attr_effortCostQst" value="ceil((@{rollQstRollEff}+@{rollQstRollDmg})/6)+(@{rollQstRollEff}+@{rollQstRollDmg})*2" />
<input type="hidden" name="attr_effortSpeedCostQst" value="ceil((@{rollQstRollEff}+@{rollQstRollDmg})/6)+(@{rollQstRollEff}+@{rollQstRollDmg})*(2+@{armorspeedcost})" />
<input type="hidden" name="attr_totalCostQst" value="@{effortCostQst}+@{rollQstCost}" />
<input type="hidden" name="attr_totalSpeedCostQst" value="@{effortSpeedCostQst}+@{rollQstCost}" />
<input type="hidden" name="attr_MightCostQst" value="@{totalCostQst}-@{mightedge}" />
<input type="hidden" name="attr_SpeedCostQst" value="@{totalSpeedCostQst}-@{speededge}" />
<input type="hidden" name="attr_IntelCostQst" value="@{totalCostQst}-@{intellectedge}" />
</div> <!-- END HIDDEN Rolls and Calculations -->
<table>
<!-- ******* COL 1 **************** -->
@@ -89,27 +109,36 @@
<div class="sheet-text1">MIGHT</div>
<div>
<input type="number" style="height: 120%;font-weight:bold; font-size:120%; color:#6D0100;" name="attr_might" title="Current value" min="0" value="11" />
<button type="roll" class="sheet-basicbt" title="Might Roll"
<button type="roll" class="sheet-actionbt" title="Might Roll, using the Action section parameters"
value="&{template:cyphBasicRoll} {{charid=@{character_id}}} {{stat=might}} {{diceRoll=[[1d20cs>17cf1]]}} {{attribute=Might}} {{attrEdge=@{mightedge}}} {{bonusToRoll=[[@{rollVarBonus}]]}} {{difficulty=[[@{rollVarDiff}]]}} {{targNum=[[@{targNum}]]}} {{finalDiff=[[@{rollVarDiff}-@{rollVarAsset}-@{rollVarRollEff}]]}} {{targNumRoll=[[(@{rollVarDiff}-@{rollVarAsset}-@{rollVarRollEff})*3-(1*@{rollVarBonus})]]}} {{totalCost=[[@{MightCost}]]}} {{effortCost=[[@{effortCost}]]}} {{effortRoll=[[@{rollVarRollEff}]]}} {{effortDmg=[[@{rollVarRollDmg}]]}} {{statExpense=[[@{rollVarCost}]]}} {{assets=[[@{rollVarAsset}]]}} {{bonusDmg=[[@{rollVarRollDmg}*3]]}}"
name="roll_basicMightCheck"></button>
name="roll_actionMightCheck"></button>
<button type="roll" class="sheet-macrobt" title="Might Roll, roll queries for parameters"
value="&{template:cyphBasicRoll} {{charid=@{character_id}}} {{stat=might}} {{diceRoll=[[1d20cs>17cf1]]}} {{attribute=Might}} {{attrEdge=@{mightedge}}} {{difficulty=[[@{rollQstDiff}]]}} {{effortRoll=[[@{rollQstRollEff}]]}} {{assets=[[@{rollQstAsset}]]}} {{bonusToRoll=[[@{rollQstBonus}]]}} {{statExpense=[[@{rollQstCost}]]}} {{effortDmg=[[@{rollQstRollDmg}]]}} {{targNum=[[@{targNumQst}]]}} {{finalDiff=[[@{rollQstDiff}-@{rollQstAsset}-@{rollQstRollEff}]]}} {{targNumRoll=[[(@{rollQstDiff}-@{rollQstAsset}-@{rollQstRollEff})*3-(1*@{rollQstBonus})]]}} {{totalCost=[[@{MightCostQst}]]}} {{effortCost=[[@{effortCostQst}]]}} {{bonusDmg=[[@{rollQstRollDmg}*3]]}}"
name="roll_macroMightCheck"></button>
</div>
</td>
<td COLSPAN="2" VALIGN="top" style="width: 105px;border-right: 1px solid #22428F;">
<div class="sheet-text1">SPEED</div>
<div>
<input type="number" style="height: 120%;font-weight:bold; font-size:120%; color:#6D0100;" name="attr_speed" title="Current value" min="0" value="10" />
<button type="roll" class="sheet-basicbt" class="sheet-basicbt" title="Speed Roll"
<button type="roll" class="sheet-actionbt" title="Speed Roll, using the Action section parameters"
value="&{template:cyphBasicRoll} {{charid=@{character_id}}} {{stat=speed}} {{diceRoll=[[1d20cs>17cf1]]}} {{attribute=Speed}} {{attrEdge=@{speededge}}} {{bonusToRoll=[[@{rollVarBonus}]]}} {{difficulty=[[@{rollVarDiff}]]}} {{targNum=[[@{targNum}]]}} {{finalDiff=[[@{rollVarDiff}-@{rollVarAsset}-@{rollVarRollEff}]]}} {{targNumRoll=[[(@{rollVarDiff}-@{rollVarAsset}-@{rollVarRollEff})*3-(1*@{rollVarBonus})]]}} {{totalCost=[[@{SpeedCost}]]}} {{effortCost=[[@{effortSpeedCost}]]}} {{effortRoll=[[@{rollVarRollEff}]]}} {{effortDmg=[[@{rollVarRollDmg}]]}} {{statExpense=[[@{rollVarCost}]]}} {{assets=[[@{rollVarAsset}]]}} {{bonusDmg=[[@{rollVarRollDmg}*3]]}}"
name="roll_basicSpeedCheck"></button>
name="roll_actionSpeedCheck"></button>
<button type="roll" class="sheet-macrobt" title="Speed Roll, roll queries for parameters"
value="&{template:cyphBasicRoll} {{charid=@{character_id}}} {{stat=speed}} {{diceRoll=[[1d20cs>17cf1]]}} {{attribute=Speed}} {{attrEdge=@{speededge}}} {{difficulty=[[@{rollQstDiff}]]}} {{effortRoll=[[@{rollQstRollEff}]]}} {{assets=[[@{rollQstAsset}]]}} {{bonusToRoll=[[@{rollQstBonus}]]}} {{statExpense=[[@{rollQstCost}]]}} {{effortDmg=[[@{rollQstRollDmg}]]}} {{targNum=[[@{targNumQst}]]}} {{finalDiff=[[@{rollQstDiff}-@{rollQstAsset}-@{rollQstRollEff}]]}} {{targNumRoll=[[(@{rollQstDiff}-@{rollQstAsset}-@{rollQstRollEff})*3-(1*@{rollQstBonus})]]}} {{totalCost=[[@{SpeedCostQst}]]}} {{effortCost=[[@{effortCostQst}]]}} {{bonusDmg=[[@{rollQstRollDmg}*3]]}}"
name="roll_macroSpeedCheck"></button>
</div>
</td>
<td COLSPAN="2" VALIGN="top">
<div class="sheet-text1">INTELLECT</div>
<div>
<input type="number" style="height: 120%;font-weight:bold; font-size:120%; color:#6D0100;" name="attr_intellect" title="Current value" min="0" value="7" />
<button type="roll" class="sheet-basicbt" title="Intellect Roll"
<button type="roll" class="sheet-actionbt" title="Intellect Roll, using the Action section parameters"
value="&{template:cyphBasicRoll} {{charid=@{character_id}}} {{stat=intellect}} {{diceRoll=[[1d20cs>17cf1]]}} {{attribute=Intellect}} {{attrEdge=@{intellectedge}}} {{bonusToRoll=[[@{rollVarBonus}]]}} {{difficulty=[[@{rollVarDiff}]]}} {{targNum=[[@{targNum}]]}} {{finalDiff=[[@{rollVarDiff}-@{rollVarAsset}-@{rollVarRollEff}]]}} {{targNumRoll=[[(@{rollVarDiff}-@{rollVarAsset}-@{rollVarRollEff})*3-(1*@{rollVarBonus})]]}} {{totalCost=[[@{IntelCost}]]}} {{effortCost=[[@{effortCost}]]}} {{effortRoll=[[@{rollVarRollEff}]]}} {{effortDmg=[[@{rollVarRollDmg}]]}} {{statExpense=[[@{rollVarCost}]]}} {{assets=[[@{rollVarAsset}]]}} {{bonusDmg=[[@{rollVarRollDmg}*3]]}}"
name="roll_basicIntellectCheck"></button>
name="roll_actionIntellectCheck"></button>
<button type="roll" class="sheet-macrobt" title="Intellect Roll, roll queries for parameters"
value="&{template:cyphBasicRoll} {{charid=@{character_id}}} {{stat=intellect}} {{diceRoll=[[1d20cs>17cf1]]}} {{attribute=Intellect}} {{attrEdge=@{intellectedge}}} {{difficulty=[[@{rollQstDiff}]]}} {{effortRoll=[[@{rollQstRollEff}]]}} {{assets=[[@{rollQstAsset}]]}} {{bonusToRoll=[[@{rollQstBonus}]]}} {{statExpense=[[@{rollQstCost}]]}} {{effortDmg=[[@{rollQstRollDmg}]]}} {{targNum=[[@{targNumQst}]]}} {{finalDiff=[[@{rollQstDiff}-@{rollQstAsset}-@{rollQstRollEff}]]}} {{targNumRoll=[[(@{rollQstDiff}-@{rollQstAsset}-@{rollQstRollEff})*3-(1*@{rollQstBonus})]]}} {{totalCost=[[@{IntelCostQst}]]}} {{effortCost=[[@{effortCostQst}]]}} {{bonusDmg=[[@{rollQstRollDmg}*3]]}}"
name="roll_macroIntellectCheck"></button>
</div>
</td>
</tr>
@@ -143,7 +172,8 @@
</div>
</div>
</div> <!-- END STATS -->
<div class="sheet-supblock"> <!-- ACTION -->
<div class="sheet-divaction"> <!-- ACTION -->
<div class="sheet-supblock">
<div class="sheet-blublock">
<div class="sheet-inpblock2">
<table> <!-- BEGIN stat roll -->
@@ -258,7 +288,8 @@
</table>
</div>
</div>
</div> <!-- END ACTION -->
</div>
</div><!-- END ACTION -->
<div class="sheet-supblock"> <!-- DAMAGE -->
<div class="sheet-blublock">
<div class="sheet-inpblock2">
@@ -336,7 +367,7 @@
<div class="sheet-text1" style="text-align: left;">SPECIAL ABILITIES</div>
<fieldset class="repeating_abilities">
<div class="sheet-text2">
Name&nbsp;
<button type="roll" class="sheet-btDesc" title="Show in chat" value="&{template:cyphDesc} {{name=@{abilityname}}} {{type=Special Ability}} {{use=@{abilityuse}}} {{description=@{abilitydesc}}}">Name</button>
<input type="text" style="width: 190px;font-weight: bold;" name="attr_abilityname" title="Ability name"s placeholder="Name" />
<select name="attr_abilityuse" style="width: 90px;" title="Eventual conditions of use of this ability: enabler, action, once a day etc.">
<option selected="selected">Action</option>
@@ -373,9 +404,12 @@
<option value="1">T&nbsp;&nbsp;&nbsp;&nbsp;Trained</option>
<option value="2">S&nbsp;&nbsp;&nbsp;&nbsp;Specialized</option>
</select>
<button type="roll" class="sheet-basicbt" title="Might Skill Roll"
<button type="roll" class="sheet-actionbt" title="Might Skill Roll, using the Action section parameters"
value="&{template:cyphBasicRoll} {{charid=@{character_id}}} {{stat=might}} {{diceRoll=[[1d20cs>17cf1]]}} {{attribute=@{skillmightname}}} {{attrEdge=@{mightedge}}} {{bonusToRoll=[[@{rollVarBonus}]]}} {{difficulty=[[@{rollVarDiff}]]}} {{targNum=[[@{targNum}]]}} {{finalDiff=[[@{rollVarDiff}-(1*@{rollVarAsset})-(1*@{rollVarRollEff})-(1*@{skillmightlvl})]]}} {{targNumRoll=[[(3*@{rollVarDiff})-(3*@{rollVarAsset})-(3*@{rollVarRollEff})-(3*@{skillmightlvl})-(1*@{rollVarBonus})]]}} {{totalCost=[[@{MightCost}]]}} {{effortCost=[[@{effortCost}]]}} {{effortRoll=[[@{rollVarRollEff}]]}} {{effortDmg=[[@{rollVarRollDmg}]]}} {{statExpense=[[@{rollVarCost}]]}} {{assets=[[@{rollVarAsset}]]}} {{bonusDmg=[[@{rollVarRollDmg}*3]]}} {{skilled=[[@{skillmightlvl}]]}}"
name="roll_basicMightCheck"></button>
name="roll_actionMightSkillCheck"></button>
<button type="roll" class="sheet-macrobt" title="Might Skill Roll, roll queries for parameters"
value="&{template:cyphBasicRoll} {{charid=@{character_id}}} {{stat=might}} {{diceRoll=[[1d20cs>17cf1]]}} {{attribute=@{skillmightname}}} {{attrEdge=@{mightedge}}} {{difficulty=[[@{rollQstDiff}]]}} {{effortRoll=[[@{rollQstRollEff}]]}} {{assets=[[@{rollQstAsset}]]}} {{bonusToRoll=[[@{rollQstBonus}]]}} {{statExpense=[[@{rollQstCost}]]}} {{effortDmg=[[@{rollQstRollDmg}]]}} {{targNum=[[@{targNumQst}]]}} {{finalDiff=[[@{rollQstDiff}-(1*@{rollQstAsset})-(1*@{rollQstRollEff})-(1*@{skillmightlvl})]]}} {{targNumRoll=[[(3*@{rollQstDiff})-(3*@{rollQstAsset})-(3*@{rollQstRollEff})-(3*@{skillmightlvl})-(1*@{rollQstBonus})]]}} {{totalCost=[[@{MightCostQst}]]}} {{effortCost=[[@{effortCostQst}]]}} {{bonusDmg=[[@{rollQstRollDmg}*3]]}} {{skilled=[[@{skillmightlvl}]]}}"
name="roll_macroMightSkillCheck"></button>
</div>
</fieldset>
</div>
@@ -393,9 +427,12 @@
<option value="1">T&nbsp;&nbsp;&nbsp;&nbsp;Trained</option>
<option value="2">S&nbsp;&nbsp;&nbsp;&nbsp;Specialized</option>
</select>
<button type="roll" class="sheet-basicbt" title="Initiative Roll"
<button type="roll" class="sheet-actionbt" title="Initiative Roll, using the Action section parameters"
value="&{template:cyphInit} {{charid=@{character_id}}} {{stat=speed}} {{skilled=[[@{InitVarSkill}*3]]}} {{finalRoll=[[1d20+(@{rollVarRollEff}*3)+(@{InitVarSkill}*3)+(@{rollVarAsset}*3)+(1*@{rollVarBonus}) &{tracker}]]}} {{bonusToRoll=[[@{rollVarBonus}]]}} {{speedEdge=[[@{speededge}]]}} {{effortsUsed=[[@{rollVarRollEff}]]}} {{assets=[[@{rollVarAsset}]]}} {{effortCost=[[ceil(@{rollVarRollEff}/6)+@{rollVarRollEff}*(2+@{armorspeedcost})]]}} {{statExpense=[[@{rollVarCost}]]}} {{totalCost=[[ceil(@{rollVarRollEff}/6)+@{rollVarRollEff}*(2+@{armorspeedcost})+@{rollVarCost}-@{speededge}]]}}"
name="roll_basicInitCheck"></button>
name="roll_actionInitCheck"></button>
<button type="roll" class="sheet-macrobt" title="Initiative Roll, roll queries for parameters"
value="&{template:cyphInit} {{charid=@{character_id}}} {{stat=speed}} {{skilled=[[@{InitVarSkill}*3]]}} {{finalRoll=[[1d20+(@{rollQstRollEff}*3)+(@{InitVarSkill}*3)+(@{rollQstAsset}*3)+(1*@{rollQstBonus}) &{tracker}]]}} {{bonusToRoll=[[@{rollQstBonus}]]}} {{speedEdge=[[@{speededge}]]}} {{effortsUsed=[[@{rollQstRollEff}]]}} {{assets=[[@{rollQstAsset}]]}} {{effortCost=[[ceil(@{rollQstRollEff}/6)+@{rollQstRollEff}*(2+@{armorspeedcost})]]}} {{statExpense=[[@{rollQstCost}]]}} {{totalCost=[[ceil(@{rollQstRollEff}/6)+@{rollQstRollEff}*(2+@{armorspeedcost})+@{rollQstCost}-@{speededge}]]}}"
name="roll_macroInitCheck"></button>
</div> <!-- END INITIATIVE -->
<fieldset class="repeating_skillspeed">
<div>
@@ -406,9 +443,12 @@
<option value="1">T&nbsp;&nbsp;&nbsp;&nbsp;Trained</option>
<option value="2">S&nbsp;&nbsp;&nbsp;&nbsp;Specialized</option>
</select>
<button type="roll" class="sheet-basicbt" title="Speed Skill Roll"
<button type="roll" class="sheet-actionbt" title="Speed Skill Roll, using the Action section parameters"
value="&{template:cyphBasicRoll} {{charid=@{character_id}}} {{stat=speed}} {{diceRoll=[[1d20cs>17cf1]]}} {{attribute=@{skillspeedname}}} {{attrEdge=@{speededge}}} {{bonusToRoll=[[@{rollVarBonus}]]}} {{difficulty=[[@{rollVarDiff}]]}} {{targNum=[[@{targNum}]]}} {{finalDiff=[[@{rollVarDiff}-(1*@{rollVarAsset})-(1*@{rollVarRollEff})-(1*@{skillspeedlvl})]]}} {{targNumRoll=[[(3*@{rollVarDiff})-(3*@{rollVarAsset})-(3*@{rollVarRollEff})-(3*@{skillspeedlvl})-(1*@{rollVarBonus})]]}} {{totalCost=[[@{SpeedCost}]]}} {{effortCost=[[@{effortSpeedCost}]]}} {{effortRoll=[[@{rollVarRollEff}]]}} {{effortDmg=[[@{rollVarRollDmg}]]}} {{statExpense=[[@{rollVarCost}]]}} {{assets=[[@{rollVarAsset}]]}} {{bonusDmg=[[@{rollVarRollDmg}*3]]}} {{skilled=[[@{skillspeedlvl}]]}}"
name="roll_basicSpeedCheck"></button>
name="roll_actionSpeedSkillCheck"></button>
<button type="roll" class="sheet-macrobt" title="Speed Skill Roll, roll queries for parameters"
value="&{template:cyphBasicRoll} {{charid=@{character_id}}} {{stat=speed}} {{diceRoll=[[1d20cs>17cf1]]}} {{attribute=@{skillspeedname}}} {{attrEdge=@{speededge}}} {{difficulty=[[@{rollQstDiff}]]}} {{effortRoll=[[@{rollQstRollEff}]]}} {{assets=[[@{rollQstAsset}]]}} {{bonusToRoll=[[@{rollQstBonus}]]}} {{statExpense=[[@{rollQstCost}]]}} {{effortDmg=[[@{rollQstRollDmg}]]}} {{targNum=[[@{targNumQst}]]}} {{finalDiff=[[@{rollQstDiff}-(1*@{rollQstAsset})-(1*@{rollQstRollEff})-(1*@{skillspeedlvl})]]}} {{targNumRoll=[[(3*@{rollQstDiff})-(3*@{rollQstAsset})-(3*@{rollQstRollEff})-(3*@{skillspeedlvl})-(1*@{rollQstBonus})]]}} {{totalCost=[[@{SpeedCostQst}]]}} {{effortCost=[[@{effortSpeedCostQst}]]}} {{bonusDmg=[[@{rollQstRollDmg}*3]]}} {{skilled=[[@{skillspeedlvl}]]}}"
name="roll_macroSpeedSkillCheck"></button>
</div>
</fieldset>
</div>
@@ -427,9 +467,12 @@
<option value="1">T&nbsp;&nbsp;&nbsp;&nbsp;Trained</option>
<option value="2">S&nbsp;&nbsp;&nbsp;&nbsp;Specialized</option>
</select>
<button type="roll" class="sheet-basicbt" title="Intellect Skill Roll"
<button type="roll" class="sheet-actionbt" title="Intellect Skill Roll, using the Action section parameters"
value="&{template:cyphBasicRoll} {{charid=@{character_id}}} {{stat=intellect}} {{diceRoll=[[1d20cs>17cf1]]}} {{attribute=@{skillintelname}}} {{attrEdge=@{intellectedge}}} {{bonusToRoll=[[@{rollVarBonus}]]}} {{difficulty=[[@{rollVarDiff}]]}} {{targNum=[[@{targNum}]]}} {{finalDiff=[[@{rollVarDiff}-(1*@{rollVarAsset})-(1*@{rollVarRollEff})-(1*@{skillintellvl})]]}} {{targNumRoll=[[(3*@{rollVarDiff})-(3*@{rollVarAsset})-(3*@{rollVarRollEff})-(3*@{skillintellvl})-(1*@{rollVarBonus})]]}} {{totalCost=[[@{IntelCost}]]}} {{effortCost=[[@{effortCost}]]}} {{effortRoll=[[@{rollVarRollEff}]]}} {{effortDmg=[[@{rollVarRollDmg}]]}} {{statExpense=[[@{rollVarCost}]]}} {{assets=[[@{rollVarAsset}]]}} {{bonusDmg=[[@{rollVarRollDmg}*3]]}} {{skilled=[[@{skillintellvl}]]}}"
name="roll_basicIntellectCheck"></button>
name="roll_actionIntellectCheck"></button>
<button type="roll" class="sheet-macrobt" title="Intellect Skill Roll, roll queries for parameters"
value="&{template:cyphBasicRoll} {{charid=@{character_id}}} {{stat=intellect}} {{diceRoll=[[1d20cs>17cf1]]}} {{attribute=@{skillintelname}}} {{attrEdge=@{intellectedge}}} {{difficulty=[[@{rollQstDiff}]]}} {{effortRoll=[[@{rollQstRollEff}]]}} {{assets=[[@{rollQstAsset}]]}} {{bonusToRoll=[[@{rollQstBonus}]]}} {{statExpense=[[@{rollQstCost}]]}} {{effortDmg=[[@{rollQstRollDmg}]]}} {{targNum=[[@{targNumQst}]]}} {{finalDiff=[[@{rollQstDiff}-(1*@{rollQstAsset})-(1*@{rollQstRollEff})-(1*@{skillintellvl})]]}} {{targNumRoll=[[(3*@{rollQstDiff})-(3*@{rollQstAsset})-(3*@{rollQstRollEff})-(3*@{skillintellvl})-(1*@{rollQstBonus})]]}} {{totalCost=[[@{IntelCostQst}]]}} {{effortCost=[[@{effortCostQst}]]}} {{bonusDmg=[[@{rollQstRollDmg}*3]]}} {{skilled=[[@{skillintellvl}]]}}"
name="roll_macroIntellectSkillCheck"></button>
</div>
</fieldset>
</div>
@@ -556,7 +599,7 @@
</table>
<fieldset class="repeating_cypher-list">
<div class="sheet-text2">
Name&nbsp;
<button type="roll" class="sheet-btDesc" title="Show in chat" value="&{template:cyphDesc} {{name=@{cypher-name}}} {{type=Cypher}} {{level=@{cypher-level}}} {{description=@{cypher-description}}}">Name</button>
<input type="text" style="width: 210px;font-weight: bold;" name="attr_cypher-name" title="Name of the cypher" placeholder="Cypher" />
Lvl&nbsp;
<input type="number" style="width: 40px;" name="attr_cypher-level" title="Level of the Cypher" min="0" value="1" />
@@ -574,9 +617,9 @@
<div class="sheet-text1" style="text-align: left;">ARTIFACTS</div>
<fieldset class="repeating_artifact-list">
<div class="sheet-text2" style="text-align: left;">
Name
<button type="roll" class="sheet-btDesc" title="Show in chat" value="&{template:cyphDesc} {{name=@{artifact-name}}} {{type=Artefact}} {{level=@{artifact-level}}} {{depletion=@{artdepthreshold} in @{artdepdice}}} {{description=@{artifact-description}}}">Name</button>
<input type="text" style="width: 210px;font-weight: bold;" name="attr_artifact-name" title="Name" placeholder="Artifact" />
&nbsp; Level
Lvl&nbsp;
<input type="number" style="width: 40px;" name="attr_artifact-level" title="Level" min="0" max="99" value="1" />
</div>
<div class="sheet-text2" style="text-align: left;">
@@ -1055,3 +1098,19 @@
{{/nextAction}}
</table>
</rolltemplate> <!-- End template cyphRecovery !-->
<rolltemplate class="sheet-rolltemplate-cyphDesc">
<table>
<tr><th COLSPAN="2">{{name}}</th></tr>
<tr><td><span>Type</span></td><td>{{type}}</td></tr>
{{#level}}
<tr><td><span>Level</span></td><td>{{level}}</td></tr>
{{/level}}
{{#depletion}}
<tr><td><span>Depletion</span></td><td>{{depletion}}</td></tr>
{{/depletion}}
{{#use}}
<tr><td><span>Use</span></td><td>{{use}}</td></tr>
{{/use}}
<tr><td COLSPAN="2">{{description}}</th></tr>
</table>
</rolltemplate><!-- End template cyphDesc -->
+9 -3
View File
@@ -3,7 +3,7 @@ Character sheet, with integrated rolls and optional API script, for the Cypher S
It can look like and be used as a sheet for _Numen&eacute;ra_ (except the armor stat cost, as per the CSR rule) or _The Strange_ (except the armor stat cost thing also, and the recursion management which requires several characters/sheets, one per recursion).
# Current version:
Version 1.3 (October 25th, 2015).
Version 1.4 (November 21st, 2015).
* Screenshot [Generic Cypher System style](CypherSystem.png)
* Screenshot [Numenera style](CypherSystem_style_Numenera.png)
@@ -42,6 +42,12 @@ Set up the API script:
# Release Notes
##Release 1.4 (November 21st, 2015)
[See detailed post on the Roll20 forum](https://app.roll20.net/forum/post/2357046/cypher-system-core-rule-book-sheet/?pageforid=2645489#post-2645489)
* New setting to choose the roll parameters type: via the Action section or Roll Queries
* New button to show Special Abilitie, Cyphers, or Artefacts details in the chat
##Release 1.3 (October 25th, 2015)
* Corrected roll with difficulty and inability: now compute the total difficulty
@@ -50,7 +56,7 @@ Set up the API script:
* Removed the word "target" from the HTML and template roll code to avoid confusion with the Roll20 keyword "Target", allowing to create custom macros
##Release 1.2 (October 4th, 2015)
The API script must be updated in version 1.2.
The optional [API script](https://github.com/Roll20/roll20-api-scripts/blob/master/CypherSystemSheet/cyphersystemsheet.js) must be updated in version 1.2.
* It's now possible to change the style/look of the PC sheet (to the ones of the generic Cypher System, Numen&eacute;ra or The Strange), or turn it into an NPC sheet.
* By popular demand, the stat/skill roll template has been unified and only rolls one d20 dice (for the 3D dice users out there), whatever is the "Difficulty" roll parameter from the "Action" section. If the difficulty parameter has been set to 0, the beaten difficulty is no longer calculated (due to Roll20 limitations), but the raw d20 dice is shown, as the special natural rolls (1 or 17+), and the steps modifiying the difficulty are displayed (and summed).
@@ -61,7 +67,7 @@ The API script must be updated in version 1.2.
Layout changes: larger stat pools and slightly smaller buttons.
Addition of 2 API buttons: reset Action parameters, and reset/complete rest of the character.
The [API script](https://github.com/Roll20/roll20-api-scripts/blob/master/CypherSystemSheet/cyphersystemsheet.js) must be updated.
The optional [API script](https://github.com/Roll20/roll20-api-scripts/blob/master/CypherSystemSheet/cyphersystemsheet.js) must be updated.
##Release 1.0 (September 2015)
Creation of the sheet.
+1 -1
View File
@@ -4,5 +4,5 @@
"authors": "Natha",
"roll20userid": "75857",
"preview": "CypherSystem.png",
"instructions": "v1.3 (2015-10-25) To set up a token that's linked to the character sheet, and optionally for API scripts to enhance rolls, check the README.md file at https://github.com/Roll20/roll20-character-sheets/blob/master/CypherSystem/ReadMe.md."
"instructions": "v1.4 (2015-11-21) To set up a token that's linked to the character sheet, and optionally for API scripts to enhance rolls, check the README.md file at https://github.com/Roll20/roll20-character-sheets/blob/master/CypherSystem/ReadMe.md."
}