Cypher System Sheet v1.1: reset action parameters

Cypher System Sheet v1.1:  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 must be updated.
This commit is contained in:
NathaTerrien
2015-09-27 00:02:54 +02:00
parent 60a6c3c53d
commit d0c7a41ddb
4 changed files with 95 additions and 45 deletions
+41 -12
View File
@@ -187,20 +187,49 @@ td,
th{
box-sizing: border-box;
}
button[type="roll"] {
box-sizing: border-box;
padding: 0px;
margin: 0px;
height: 24px;
width: 24px;
text-align: left;
button[type=roll].sheet-basicbt {
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: 2px solid rgba(255,255,255,0.5);
border-radius: 12px;
transition: border 2s;
border-width: 2px;
border-style: solid;
border-color: rgba(255,255,255,0.5);
border-radius: 10px;
transition: border 1s;
}
button[type="roll"]:hover{
border: 2px #22428F inset;
button[type=roll].sheet-basicbt:hover{
border-color:#22428F;
font-weight: bold;
}
button[type=roll].sheet-apibt{
padding: 2px 0px 0px 0px;
margin: 0px 0px 0px 0px;
text-shadow: none;
box-shadow: none;
text-align:center;
vertical-align: middle;
line-height: 0px;
font-size: 1em;
font-weight: normal;
width:15px;
height: 15px;
color: #6D0100;
border: 1px solid rgba(255,255,255,0.5);
border-radius: 0px 3px 0px 3px;
transition: border 1s;
}
button[type=roll].sheet-apibt:hover{
border-color: #6D0100;
font-weight: bold;
}
table{
border-collapse: collapse;
+39 -21
View File
@@ -1,5 +1,5 @@
<div class="sheet-main">
<!-- ******* PC **************** -->
<div class="sheet-main">
<table>
<!-- ******* COL 1 **************** -->
<tr>
@@ -73,8 +73,8 @@
<td COLSPAN="2" VALIGN="top" style="width: 105px;border-right: 1px solid #22428F;">
<div class="sheet-text1">MIGHT</div>
<div>
<input type="number" name="attr_might" title="Current value" min="0" value="11" />
<button type="roll" title="Might Roll"
<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"
value="&{template:cyphBasicRoll} {{charid=@{character_id}}} {{stat=might}} {{diceRoll=[[1d20cs>17cf1]]}} {{diceRollNoDiff=[[1d20cs>17cf1+(@{rollVarAsset}+@{rollVarRollEff})*3+@{rollVarBonus}]]}} {{attribute=Might}} {{attrEdge=@{mightedge}}} {{bonusToRoll=[[@{rollVarBonus}]]}} {{difficulty=[[@{rollVarDiff}]]}} {{target=[[@{target}]]}} {{finalDiff=[[@{rollVarDiff}-@{rollVarAsset}-@{rollVarRollEff}]]}} {{targetRoll=[[(@{rollVarDiff}-@{rollVarAsset}-@{rollVarRollEff})*3-@{rollVarBonus}]]}} {{totalCost=[[@{MightCost}]]}} {{effortCost=[[@{effortCost}]]}} {{effortRoll=[[@{rollVarRollEff}]]}} {{effortDmg=[[@{rollVarRollDmg}]]}} {{statExpense=[[@{rollVarCost}]]}} {{assets=[[@{rollVarAsset}]]}} {{bonusDmg=[[@{rollVarRollDmg}*3]]}}"
name="roll_basicMightCheck"></button>
</div>
@@ -82,8 +82,8 @@
<td COLSPAN="2" VALIGN="top" style="width: 105px;border-right: 1px solid #22428F;">
<div class="sheet-text1">SPEED</div>
<div>
<input type="number" name="attr_speed" title="Current value" min="0" value="10" />
<button type="roll" title="Speed Roll"
<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"
value="&{template:cyphBasicRoll} {{charid=@{character_id}}} {{stat=speed}} {{diceRoll=[[1d20cs>17cf1]]}} {{diceRollNoDiff=[[1d20cs>17cf1+(@{rollVarAsset}+@{rollVarRollEff})*3+@{rollVarBonus}]]}} {{attribute=Speed}} {{attrEdge=@{speededge}}} {{bonusToRoll=[[@{rollVarBonus}]]}} {{difficulty=[[@{rollVarDiff}]]}} {{target=[[@{target}]]}} {{finalDiff=[[@{rollVarDiff}-@{rollVarAsset}-@{rollVarRollEff}]]}} {{targetRoll=[[(@{rollVarDiff}-@{rollVarAsset}-@{rollVarRollEff})*3-@{rollVarBonus}]]}} {{totalCost=[[@{SpeedCost}]]}} {{effortCost=[[@{effortSpeedCost}]]}} {{effortRoll=[[@{rollVarRollEff}]]}} {{effortDmg=[[@{rollVarRollDmg}]]}} {{statExpense=[[@{rollVarCost}]]}} {{assets=[[@{rollVarAsset}]]}} {{bonusDmg=[[@{rollVarRollDmg}*3]]}}"
name="roll_basicSpeedCheck"></button>
</div>
@@ -91,8 +91,8 @@
<td COLSPAN="2" VALIGN="top">
<div class="sheet-text1">INTELLECT</div>
<div>
<input type="number" name="attr_intellect" title="Current value" min="0" value="7" />
<button type="roll" title="Intellect Roll"
<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"
value="&{template:cyphBasicRoll} {{charid=@{character_id}}} {{stat=intellect}} {{diceRoll=[[1d20cs>17cf1]]}} {{diceRollNoDiff=[[1d20cs>17cf1+(@{rollVarAsset}+@{rollVarRollEff})*3+@{rollVarBonus}]]}} {{attribute=Intellect}} {{attrEdge=@{intellectedge}}} {{bonusToRoll=[[@{rollVarBonus}]]}} {{difficulty=[[@{rollVarDiff}]]}} {{target=[[@{target}]]}} {{finalDiff=[[@{rollVarDiff}-@{rollVarAsset}-@{rollVarRollEff}]]}} {{targetRoll=[[(@{rollVarDiff}-@{rollVarAsset}-@{rollVarRollEff})*3-@{rollVarBonus}]]}} {{totalCost=[[@{IntelCost}]]}} {{effortCost=[[@{effortCost}]]}} {{effortRoll=[[@{rollVarRollEff}]]}} {{effortDmg=[[@{rollVarRollDmg}]]}} {{statExpense=[[@{rollVarCost}]]}} {{assets=[[@{rollVarAsset}]]}} {{bonusDmg=[[@{rollVarRollDmg}*3]]}}"
name="roll_basicIntellectCheck"></button>
</div>
@@ -133,8 +133,20 @@
<div class="sheet-inpblock2">
<table> <!-- BEGIN stat roll -->
<tr>
<td class="sheet-text1" style="text-align: left;">ACTION</td>
<td COLSPAN="5" class="sheet-text2" style="width: 100%;">Roll with Stat or Skill button</td>
<td class="sheet-text1" style="text-align: left;">
ACTION
&nbsp;
<button type="roll"
class="sheet-apibt"
title="Reset Action Parameters (API)"
value="!cypher-resetaction @{character_id}"
name="roll_resetaction">
</button>
</td>
<td COLSPAN="5" class="sheet-text2" style="width: 100%;">
Roll with Stat or Skill button
<span style="font-family: dicefontd20; font-weight:bold;">t</span>
</td>
</tr>
<tr>
<td class="sheet-text2" style="text-align: right;">
@@ -204,13 +216,19 @@
<td COLSPAN="2" VALIGN="top" style="border-right: 1px solid #22428F;">
<span class="sheet-text2">1D6 + </span>
<input type="number" name="attr_recoverybonus" style="width:30px;height:18px;padding:0px;" title="Recovery roll bonus" min="1" value="1" />
<button type="roll" name="roll_FreeRecovery" title="Recovery Roll"
<button type="roll" class="sheet-basicbt" name="roll_FreeRecovery" title="Recovery Roll"
value="&{template:cyphRecovery} {{recoverPoints=1d6+@{recoverybonus} ([[1d6+@{recoverybonus}]])}} {{recovaction=[[@{recovery-rolls}]]}}">
</button>
</td>
<td COLSPAN="2" VALIGN="top">
<span class="sheet-text2">Special&nbsp;</span>
<input style="width:30px;height:18px;padding:0px;" type="number" min="0" max="3" name="attr_SpecialDamage" title="Special damage that moved the PC down the damage track" value="0" />
<button type="roll"
class="sheet-apibt"
title="Reset Character/Complete rest (API)"
value="!cypher-restchar @{character_id}|?{Complete rest/reset, really ?|Yes}"
name="roll_resetaction">
</button>
</td>
</tr>
<tr>
@@ -283,7 +301,7 @@
</td> <!-- END COL 1 -->
<!-- ******* COL 2 **************** -->
<td width="352px" valign="top"> <!-- COL 2 -->
<div style="font-size:0.8em;color:grey;text-align:center;">Version 1.0 (2015-09-16)</div>
<div style="font-size:0.8em;color:grey;text-align:center;">Version 1.1 (2015-09-26)</div>
<div class="sheet-supblock"> <!-- MIGHT SKILLS -->
<div class="sheet-blublock">
<div class="sheet-inpblock2">
@@ -297,7 +315,7 @@
<option value="1">T&nbsp;&nbsp;&nbsp;&nbsp;Trained</option>
<option value="2">S&nbsp;&nbsp;&nbsp;&nbsp;Specialized</option>
</select>
<button type="roll" title="Might Skill Roll"
<button type="roll" class="sheet-basicbt" title="Might Skill Roll"
value="&{template:cyphBasicRoll} {{charid=@{character_id}}} {{stat=might}} {{diceRoll=[[1d20cs>17cf1]]}} {{diceRollNoDiff=[[1d20cs>17cf1+(@{rollVarAsset}+@{rollVarRollEff}+[[@{skillmightlvl}]])*3+@{rollVarBonus}]]}} {{attribute=@{skillmightname}}} {{attrEdge=@{mightedge}}} {{bonusToRoll=[[@{rollVarBonus}]]}} {{difficulty=[[@{rollVarDiff}]]}} {{target=[[@{target}]]}} {{finalDiff=[[@{rollVarDiff}-(@{rollVarAsset}+@{rollVarRollEff}+@{skillmightlvl})]]}} {{targetRoll=[[3*@{rollVarDiff}-3*(@{rollVarAsset}+@{rollVarRollEff}+@{skillmightlvl})-@{rollVarBonus}]]}} {{totalCost=[[@{MightCost}]]}} {{effortCost=[[@{effortCost}]]}} {{effortRoll=[[@{rollVarRollEff}]]}} {{effortDmg=[[@{rollVarRollDmg}]]}} {{statExpense=[[@{rollVarCost}]]}} {{assets=[[@{rollVarAsset}]]}} {{bonusDmg=[[@{rollVarRollDmg}*3]]}} {{skilled=[[@{skillmightlvl}]]}}"
name="roll_basicMightCheck"></button>
</div>
@@ -317,7 +335,7 @@
<option value="1">T&nbsp;&nbsp;&nbsp;&nbsp;Trained</option>
<option value="2">S&nbsp;&nbsp;&nbsp;&nbsp;Specialized</option>
</select>
<button type="roll" title="Initiative Roll"
<button type="roll" class="sheet-basicbt" title="Initiative Roll"
value="&{template:cyphInit} {{charid=@{character_id}}} {{stat=speed}} {{skilled=[[@{InitVarSkill}*3]]}} {{finalRoll=[[1d20+(@{rollVarRollEff}*3)+(@{InitVarSkill}*3)+(@{rollVarAsset}*3)+@{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>
</div> <!-- END INITIATIVE -->
@@ -330,7 +348,7 @@
<option value="1">T&nbsp;&nbsp;&nbsp;&nbsp;Trained</option>
<option value="2">S&nbsp;&nbsp;&nbsp;&nbsp;Specialized</option>
</select>
<button type="roll" title="Speed Skill Roll"
<button type="roll" class="sheet-basicbt" title="Speed Skill Roll"
value="&{template:cyphBasicRoll} {{charid=@{character_id}}} {{stat=speed}} {{diceRoll=[[1d20cs>17cf1]]}} {{diceRollNoDiff=[[1d20cs>17cf1+(@{rollVarAsset}+@{rollVarRollEff}+[[@{skillspeedlvl}]])*3+@{rollVarBonus}]]}} {{attribute=@{skillspeedname}}} {{attrEdge=@{speededge}}} {{bonusToRoll=[[@{rollVarBonus}]]}} {{difficulty=[[@{rollVarDiff}]]}} {{target=[[@{target}]]}} {{finalDiff=[[@{rollVarDiff}-(@{rollVarAsset}+@{rollVarRollEff}+@{skillspeedlvl})]]}} {{targetRoll=[[3*@{rollVarDiff}-3*(@{rollVarAsset}+@{rollVarRollEff}+@{skillspeedlvl})-@{rollVarBonus}]]}} {{totalCost=[[@{SpeedCost}]]}} {{effortCost=[[@{effortSpeedCost}]]}} {{effortRoll=[[@{rollVarRollEff}]]}} {{effortDmg=[[@{rollVarRollDmg}]]}} {{statExpense=[[@{rollVarCost}]]}} {{assets=[[@{rollVarAsset}]]}} {{bonusDmg=[[@{rollVarRollDmg}*3]]}} {{skilled=[[@{skillspeedlvl}]]}}"
name="roll_basicSpeedCheck"></button>
</div>
@@ -351,7 +369,7 @@
<option value="1">T&nbsp;&nbsp;&nbsp;&nbsp;Trained</option>
<option value="2">S&nbsp;&nbsp;&nbsp;&nbsp;Specialized</option>
</select>
<button type="roll" title="Intellect Skill Roll"
<button type="roll" class="sheet-basicbt" title="Intellect Skill Roll"
value="&{template:cyphBasicRoll} {{charid=@{character_id}}} {{stat=intellect}} {{diceRoll=[[1d20cs>17cf1]]}} {{diceRollNoDiff=[[1d20cs>17cf1+(@{rollVarAsset}+@{rollVarRollEff}+[[@{skillintellvl}]])*3+@{rollVarBonus}]]}} {{attribute=@{skillintelname}}} {{attrEdge=@{intellectedge}}} {{bonusToRoll=[[@{rollVarBonus}]]}} {{difficulty=[[@{rollVarDiff}]]}} {{target=[[@{target}]]}} {{finalDiff=[[@{rollVarDiff}-(@{rollVarAsset}+@{rollVarRollEff}+@{skillintellvl})]]}} {{targetRoll=[[3*@{rollVarDiff}-3*(@{rollVarAsset}+@{rollVarRollEff}+@{skillintellvl})-@{rollVarBonus}]]}} {{totalCost=[[@{IntelCost}]]}} {{effortCost=[[@{effortCost}]]}} {{effortRoll=[[@{rollVarRollEff}]]}} {{effortDmg=[[@{rollVarRollDmg}]]}} {{statExpense=[[@{rollVarCost}]]}} {{assets=[[@{rollVarAsset}]]}} {{bonusDmg=[[@{rollVarRollDmg}*3]]}} {{skilled=[[@{skillintellvl}]]}}"
name="roll_basicIntellectCheck"></button>
</div>
@@ -609,7 +627,7 @@
<table>
<tr><th COLSPAN="2">Initiative Roll</th></tr>
<tr>
<td COLSPAN="2" style="text-align:center;font-size:105%;font-weight:bold;">{{finalRoll}}</td>
<td COLSPAN="2" style="text-align:center;font-size:102%;font-weight:bold;">{{finalRoll}}</td>
</tr>
<tr><td COLSPAN="2"><hr/></td></tr>
{{#rollGreater() bonusToRoll 0}}
@@ -661,7 +679,7 @@
<tr><th COLSPAN="2">{{attribute}} Roll</th></tr>
{{#rollGreater() difficulty 0}}
{{#rollGreater() diceRoll targetRoll}}
<tr><td COLSPAN="2" style="font-size:105%;font-weight:bold;color:green;text-align:center;">Success: {{diceRoll}}</td></tr>
<tr><td COLSPAN="2" style="font-size:102%;font-weight:bold;color:green;text-align:center;">Success: {{diceRoll}}</td></tr>
{{#rollWasCrit() diceRoll}}
<tr>
<td style="color:green;text-align:center;font-weight:bold;">Special:</td>
@@ -675,7 +693,7 @@
{{/rollWasCrit() diceRoll}}
{{/rollGreater() diceRoll targetRoll}}
{{#rollTotal() diceRoll targetRoll}}
<tr><td COLSPAN="2" style="font-size:105%;font-weight:bold;color:green;text-align:center;">Success: {{diceRoll}}</td></tr>
<tr><td COLSPAN="2" style="font-size:102%;font-weight:bold;color:green;text-align:center;">Success: {{diceRoll}}</td></tr>
{{#rollWasCrit() diceRoll}}
<tr>
<td style="color:green;text-align:center;font-weight:bold;">Special:</td>
@@ -689,10 +707,10 @@
{{/rollWasCrit() diceRoll}}
{{/rollTotal() diceRoll targetRoll}}
{{#rollLess() diceRoll targetRoll}}
<tr><td COLSPAN="2" style="font-size:105%;font-weight:bold;color:red;text-align:center;">Failure: {{diceRoll}}</td></tr>
<tr><td COLSPAN="2" style="font-size:102%;font-weight:bold;color:red;text-align:center;">Failure: {{diceRoll}}</td></tr>
{{/rollLess() diceRoll targetRoll}}
{{#rollWasFumble() diceRoll}}
<tr><td COLSPAN="2" style="font-size:105%;color:red;text-align:center;font-weight:bold;">GM Intrusion</td></tr>
<tr><td COLSPAN="2" style="font-size:102%;color:red;text-align:center;font-weight:bold;">GM Intrusion</td></tr>
{{/rollWasFumble() diceRoll}}
<tr><td><span>Difficulty</span></td><td>{{difficulty}} ({{target}})</td></tr>
{{#skilled}}
@@ -778,7 +796,7 @@
</td>
</tr>
{{#rollWasFumble() diceRollNoDiff}}
<tr><td COLSPAN="2" style="font-size:105%;color:red;text-align:center;font-weight:bold;">GM Intrusion</td></tr>
<tr><td COLSPAN="2" style="font-size:102%;color:red;text-align:center;font-weight:bold;">GM Intrusion</td></tr>
{{/rollWasFumble() diceRollNoDiff}}
{{#rollWasCrit() diceRollNoDiff}}
<tr><td COLSPAN="2" style="color:green;text-align:center;font-weight:bold;">Special Roll! (17+)</td></tr>
+14 -11
View File
@@ -1,7 +1,7 @@
Character sheet, with integrated rolls and optional API script, for the Cypher System, from [Monte Cook Games](http://www.montecookgames.com/games/).
# Current version:
Version 1.0 (September 2015) : [Screenshot](CypherSystem.png).
Version 1.1 (September 2015) : [Screenshot](CypherSystem.png).
# Basic use:
@@ -14,22 +14,19 @@ Version 1.0 (September 2015) : [Screenshot](CypherSystem.png).
## How to set up a character and its token
1. Create a new _"Character"_ in the _"Journal"_
2. Fill at least (even if it's zero):
1. Might, Speed and Intellect (current, max and edge) and Effort.
2. Before using the Roll buttons: Difficulty, Cost, Effort (both) and Bonus.
3. Before using the Recovery button: Recovery bonus.
3. (Optionally) Create/use a token for the character as in this [screenshot](CypherSystem_setup_the_character_token.jpg):
2. Create/use a token for the character as in this [screenshot](CypherSystem_setup_the_character_token.jpg):
1. Make sure it representents the character you've created
2. Assign _"bar1"_ to the _"might"_ attribute
3. Assign _"bar2"_ to the _"speed"_ attribute
4. Assign _"bar3"_ to the _"intellect"_ attribute
4. Select the token
5. Edit the character and click _"Use Selected token"_ as _"Default Token"_
6. Click _"Save Changes"_
7. Repeat steps 2 to 7 for every other characters and you're set.
3. Select the token
4. Edit the character and click _"Use Selected token"_ as _"Default Token"_
5. Click _"Save Changes"_
6. Repeat steps 1 to 7 for every other characters and you're set.
# Advanced use (API scripts and macros):
Set up the API scripts:
Set up the API script:
1. In the _"details"_ page of the campaign, click on _"API Scripts"_
2. If you've already added scripts to this campaign, click on _"New Script"_
3. Name the new script (ex : _"CypherSystem"_)
@@ -39,6 +36,12 @@ Set up the API scripts:
# Release Notes
##Release 1.1 (September 2015)
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.
##Release 1.0 (September 2015)
Creation of the sheet.
Big thanks to the beta testers: llothos, Darcy R., Clay and The Ghost DM!
+1 -1
View File
@@ -4,5 +4,5 @@
"authors": "Natha",
"roll20userid": "75857",
"preview": "CypherSystem.png",
"instructions": "v1.0 (2015-09-14) 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.1 (2015-09-26) 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."
}