From GamingWiki
Jump to: navigation, search
m (Rearranged stress and consequences)
Line 236: Line 236:
 
<!--
 
<!--
  
Stress tracks
+
Stress and consequences
 +
 
 +
We want to place stress and consequences side-by-side.
  
 
-->
 
-->
 
|-
 
|-
| colspan="4" class="subhead" | Stress Tracks <!--
+
| 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
| colspan="4" align="center" | <!--
+
   -->{{#vardefineecho: trackname | {{#explode: {{{stresstracks|health composure}}} | | {{#var:scidx}} }} }}<!--
-->{{#vardefine: stidx | 0 }}<!--
+
  --><!-- consequence types
-->{{#while: | <!-- stress tracks
+
  -->{{#vardefineecho: severity | {{#explode: {{{consequencetypes|mild moderate severe}}} | | {{#var:scidx}} }} }}<!--
   -->{{#vardefineecho: thetrack | {{#explode: {{{stresstracks|health//endurance::composure//resolve}}} |::| {{#var:stidx}} }} }}<!--
 
 
-->|<!--
 
-->|<!--
  -->{{#vardefine:trackname | {{#explode:{{#var: thetrack}}|//|0}} }}<!--
+
   -->{{#vardefine:thestress | {{{{{#var: trackname}}|{{#var:defaultstress}}//0}}} }}<!--
  -->{{#vardefine:trackskil | {{#explode:{{#var: thetrack}}|//|1}} }}<!--
 
  -->{{#vardefine:trackmod  | {{#expr: ceil({{#var: skillValue{{#var:trackskil}}}}+0 / 2)}} }}<!--
 
  -->{{#vardefine:defstress | {{#expr: {{#var:defaultstress}} + {{#var:trackmod}} }}}}<!--
 
   -->{{#vardefine:thestress | <!--
 
    -->{{#if:{{{ {{#var: trackname}}|}}}|{{{ {{#var: trackname}} }}}|{{#var:defstress}}//0}}<!--
 
  -->}}<!--
 
 
   -->{{#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}}
 +
{{!}} <!--
  
   --><table class="fate stressbox"><tr><th colspan="{{#var:totstress}}">{{#var: trackname}}</th></tr><!--
+
   -->{{#if:{{#var: trackname}} |<!--
  --><tr>{{#loop: stressloop | 1 | {{#var:totstress}} | <!--
+
    --><table class="fate stressbox"><!--
    --><td class="{{#ifexpr: {{#var: stressloop}} <= {{#var:curstress|0}} | full }}"><div>&nbsp;</div></td><!--
+
    --><tr>{{#loop: stressloop | 1 | {{#var:totstress}} | <!--
  -->}}</tr><!--
+
      --><td class="{{#ifexpr: {{#var: stressloop}} <= {{#var:curstress|0}} | full }}"><div>&nbsp;</div></td><!--
  --></table><!--
+
    -->}}</tr><!--
 +
    --></table><!--
 +
  -->}}<!--
  
  -->{{#vardefine: stidx | {{#expr: {{#var: stidx}} + 1}} }}<!--
+
--><nowiki />
-->}}<!-- end while stress tracks
+
{{!}} class="label" {{!}} {{#var: severity}}  
 +
{{!}} <!--
  
List of current consequences
+
  -->{{#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 |,&nbsp; }}<!--
 +
        -->{{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
| colspan="4" class="subhead" | Consequences <!--
 
-->{{#vardefine: ctidx | 0 }}<!--
 
-->{{#while: | <!-- consequence types
 
  -->{{#vardefineecho: severity | {{#explode: {{{consequencetypes|mild moderate severe}}} | | {{#var:ctidx}} }} }}<!--
 
-->|<nowiki />
 
{{!}}-
 
{{!}} class="label" {{!}} {{#var: severity}}
 
{{!}} colspan="3"  {{!}} <!--
 
  -->{{#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 |,&nbsp; }}<!--
 
      -->{{aspect |{{#explode: {{#var:consequence}} |//| 0}}}}<!--
 
      -->{{#vardefine: cons | 1 }}<!--
 
    -->}}<!-- end ifeq
 
    -->{{#vardefine: conidx | {{#expr: {{#var: conidx}} + 1}} }}<!--
 
  -->}}<!-- end while consequences
 
   -->{{#vardefine: ctidx | {{#expr: {{#var: ctidx}} + 1}} }}<!--
 
-->}}<!-- end while consequence types
 
  
 
-->
 
-->

Revision as of 21:50, 11 February 2011

[create]
Error creating thumbnail: File missing
Template documentation
{{{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 }}