From GamingWiki
m (Rearranged stress and consequences) |
|||
Line 236: | Line 236: | ||
<!-- | <!-- | ||
− | Stress | + | Stress and consequences |
+ | |||
+ | We want to place stress and consequences side-by-side. | ||
--> | --> | ||
|- | |- | ||
− | | colspan=" | + | | colspan="2" class="subhead" | Stress Tracks |
+ | | colspan="2" class="subhead" | Consequences <!-- | ||
-->{{#vardefine: defaultstress | {{{defaultstress|5}}} }}<!-- | -->{{#vardefine: defaultstress | {{{defaultstress|5}}} }}<!-- | ||
− | + | -->{{#vardefine: scidx | 0 }}<!-- | |
− | + | -->{{#while: | <!-- stress tracks and consequence types | |
− | + | -->{{#vardefineecho: trackname | {{#explode: {{{stresstracks|health composure}}} | | {{#var:scidx}} }} }}<!-- | |
− | -->{{#vardefine: | + | --><!-- consequence types |
− | -->{{#while: | <!-- stress tracks | + | -->{{#vardefineecho: severity | {{#explode: {{{consequencetypes|mild moderate severe}}} | | {{#var:scidx}} }} }}<!-- |
− | -->{{#vardefineecho: | ||
-->|<!-- | -->|<!-- | ||
− | + | -->{{#vardefine:thestress | {{{{{#var: trackname}}|{{#var:defaultstress}}//0}}} }}<!-- | |
− | |||
− | |||
− | |||
− | -->{{#vardefine:thestress | | ||
− | |||
− | |||
-->{{#vardefine:totstress | {{#explode:{{#var: thestress}}|//|0}} }}<!-- | -->{{#vardefine:totstress | {{#explode:{{#var: thestress}}|//|0}} }}<!-- | ||
-->{{#vardefine:curstress | {{#explode:{{#var: thestress}}|//|1}} }}<!-- | -->{{#vardefine:curstress | {{#explode:{{#var: thestress}}|//|1}} }}<!-- | ||
+ | --><nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}} class="shaded" {{!}} {{#var: trackname}} | ||
+ | {{!}} <!-- | ||
− | --> | + | -->{{#if:{{#var: trackname}} |<!-- |
− | + | --><table class="fate stressbox"><!-- | |
− | + | --><tr>{{#loop: stressloop | 1 | {{#var:totstress}} | <!-- | |
− | + | --><td class="{{#ifexpr: {{#var: stressloop}} <= {{#var:curstress|0}} | full }}"><div> </div></td><!-- | |
− | + | -->}}</tr><!-- | |
+ | --></table><!-- | ||
+ | -->}}<!-- | ||
− | + | --><nowiki /> | |
− | + | {{!}} class="label" {{!}} {{#var: severity}} | |
+ | {{!}} <!-- | ||
− | + | -->{{#if:{{#var: severity}} |<!-- | |
+ | -->{{#vardefine: conidx | 0 }}<!-- | ||
+ | -->{{#vardefine: cons | 0 }}<!-- | ||
+ | -->{{#while: | <!-- consequences | ||
+ | -->{{#vardefineecho: consequence | {{#explode: {{{consequences|}}} | :: | {{#var:conidx}} }} }}<!-- | ||
+ | -->|<!-- | ||
+ | -->{{#ifeq: {{#explode: {{#var:consequence}} |//| 1}}| {{#var: severity}} |<!-- | ||
+ | -->{{#ifeq: {{ #var: cons }} | 1 |, }}<!-- | ||
+ | -->{{aspect |{{#explode: {{#var:consequence}} |//| 0}}}}<!-- | ||
+ | -->{{#vardefine: cons | 1 }}<!-- | ||
+ | -->}}<!-- end ifeq | ||
+ | -->{{#vardefine: conidx | {{#expr: {{#var: conidx}} + 1}} }}<!-- | ||
+ | -->}}<!-- end while consequences | ||
+ | -->}}<!-- | ||
− | + | -->{{#vardefine: scidx | {{#expr: {{#var: scidx}} + 1}} }}<!-- | |
− | + | -->}}<!-- end while stress tracks and consequence types | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | -->{{#vardefine: | ||
− | -->}}<!-- end while consequence types | ||
--> | --> |
Revision as of 21:50, 11 February 2011
[create]
Error creating thumbnail: File missing
Template documentation Editors can experiment in this template's sandbox (edit) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |
{{{charactername}}} {{{campaign}}} ({{{player}}})
| ||||||||
---|---|---|---|---|---|---|---|---|
Aspects | ||||||||
| ||||||||
Skills | types: combat, track | |||||||
Stunts | ||||||||
FP | 5 | Refresh | 5 | |||||
Stress Tracks | Consequences | |||||||
health | mild | |||||||
composure | moderate | |||||||
severe |
{{#set: game system = FATE }}{{#set: parent template = Template:Character_Sheet }}