Skip to content

Instantly share code, notes, and snippets.

@SteveKoontz
Created January 20, 2015 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SteveKoontz/13673da6f934c6235ad5 to your computer and use it in GitHub Desktop.
Save SteveKoontz/13673da6f934c6235ad5 to your computer and use it in GitHub Desktop.
WoD Roll Template
.sheet-rolltemplate-wod table {
width: 189px;
height: 189px;
padding: 2px;
background: url(http://i.imgur.com/xBk4U1p.jpg) top left;
background-size: 189px 189px;
background-repeat: no-repeat;
font-family: "Courier New", Courier, monospace;
font-weight: bold;
border-spacing: 0;
}
.sheet-rolltemplate-wod th {
color: rgb(112, 0, 0);
padding: 15px 2px 2px 20px;
line-height: 1.2em;
font-size: 1.2em;
text-align: left;
}
.sheet-rolltemplate-wod td {
padding-left: 20px;
font-size: 1.0em;
vertical-align: top;
}
.sheet-rolltemplate-wod .sheet-result {
font-size: 1.2em;
text-align: center;
color: rgb(112, 0, 0);
padding-bottom: 20px;
}
.sheet-rolltemplate-wod .inlinerollresult {
background-color: transparent;
color: #000000;
border: none;
}
.sheet-rolltemplate-wod .inlinerollresult.fullcrit {
color: #3FB315;
border: none;
}
.sheet-rolltemplate-wod .inlinerollresult.fullfail {
color: #000000;
border: none;
}
.sheet-rolltemplate-wod .inlinerollresult.importantroll {
color: #3FB315;
border: none;
}
<rolltemplate class="sheet-rolltemplate-wod">
<table>
<tr><th>{{name}} rolls{{#roll_name}} {{roll_name}}{{/roll_name}}</th></tr>
<tr><td class="attr">
{{#attr}}
{{attr}}({{attr_num}})
{{/attr}}
{{#skill}}
+ {{skill}}({{skill_num}})
{{/skill}}
{{#pwr}}
+ {{pwr}}({{pwr_num}})
{{/pwr}}
{{#mod_num}}
+ Modifiers({{mod_num}})
{{/mod_num}}
</td></tr>
<tr>
<td class="result">{{result}} Successes</td>
</tr>
</table>
</rolltemplate>
&{template:wod} {{name=@{character_name}}} {{roll_name=Command}} {{attr=Intelligence}} {{attr_num=@{intelligence}}} {{skill=Intimidation}} {{skill_num=@{intimidation}}} {{pwr=Dominate}} {{pwr_num=@{dominate}}} {{mod_num=?{Modifiers|0}}} {{result=[[{(@{intelligence}+@{intimidation}+@{dominate}+?{Modifiers|0})d10!}>8]]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment