From GamingWiki
Line 2: | Line 2: | ||
--><onlyinclude><!-- | --><onlyinclude><!-- | ||
− | -->{{#vardefine:cols|{{{columns|6}}}}}<!-- | + | -->{{#vardefine:cols |{{{columns|6}}}}}<!-- |
+ | -->{{#vardefine:cols_l|{{#expr: ceil( {{#var: cols}} / 2 )}} }}<!-- | ||
+ | -->{{#vardefine:cols_r|{{#expr: ( {{#var: cols}} - {{#var: cols_l}} ) }} }}<!-- | ||
+ | |||
+ | -->{{#vardefine:contentcols |{{#expr: ( {{#var: cols }} - 1 ) }} }}<!-- | ||
+ | -->{{#vardefine:contentcols_l|{{#expr: ( {{#var: cols_l}} - 1 ) }} }}<!-- | ||
+ | -->{{#vardefine:contentcols_r|{{#expr: ( {{#var: cols_r}} - 1 ) }} }}<!-- | ||
-->{{#vardefine:name|{{{charactername| {{{character name| {{{name}}} }}} }}} }}<!-- | -->{{#vardefine:name|{{{charactername| {{{character name| {{{name}}} }}} }}} }}<!-- | ||
Line 133: | Line 139: | ||
{{!}}- | {{!}}- | ||
{{!}} class="shaded" {{!}} {{{label{{#var: sectnum}}|}}} | {{!}} class="shaded" {{!}} {{{label{{#var: sectnum}}|}}} | ||
− | {{!}} colspan=" | + | {{!}} colspan="{{#var:contentcols}}" {{!}} {{{data{{#var: sectnum}}|}}} |
--><!-- | --><!-- | ||
-->}}<!-- end if | -->}}<!-- end if | ||
Line 153: | Line 159: | ||
Stress tracks | Stress tracks | ||
Stress and consequences | Stress and consequences | ||
+ | |||
+ | -->{{#ifeq:{{{stress-beside-consequences|yes}}}|yes|<!-- | ||
We want to place stress and consequences side-by-side. | We want to place stress and consequences side-by-side. | ||
Line 158: | Line 166: | ||
--> | --> | ||
|- | |- | ||
− | | colspan=" | + | | colspan="cols_l" class="subhead" | Stress Tracks |
− | | colspan=" | + | | colspan="cols_r" class="subhead" | Consequences <!-- |
-->{{#vardefine: defaultstress | {{{defaultstress|5}}} }}<!-- | -->{{#vardefine: defaultstress | {{{defaultstress|5}}} }}<!-- | ||
Line 181: | Line 189: | ||
{{!}} class="shaded" {{!}} {{#var: trackname}} <!-- | {{!}} class="shaded" {{!}} {{#var: trackname}} <!-- | ||
--><!--({{#var:trackskil}} {{#var: skillValue{{#var:trackskil}}}} / {{#var:trackmod}}) --><!-- debug --> | --><!--({{#var:trackskil}} {{#var: skillValue{{#var:trackskil}}}} / {{#var:trackmod}}) --><!-- debug --> | ||
− | {{!}} colspan="2" {{!}} <!-- | + | {{!}} colspan="{{#var:contentcols_l}}" {{!}} <!-- |
+ | -->{{#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}} | ||
+ | {{!}} colspan="{{#var:contentcols_r}}" {{!}} <!-- | ||
+ | -->{{#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 | ||
+ | |||
+ | -->|<!-- else {{{stress-beside-consequences|yes}}} != yes | ||
+ | |||
+ | @todo: render stress above consequences | ||
+ | |||
+ | --> | ||
+ | |- | ||
+ | | colspan="{{#var:cols}}" class="subhead" | Stress Tracks <!-- | ||
+ | |||
+ | |||
+ | -->{{#vardefine: defaultstress | {{{defaultstress|5}}} }}<!-- | ||
+ | -->{{#vardefine: scidx | 0 }}<!-- | ||
+ | |||
+ | -->{{#arraydefine: stressary | {{{stresstracks|health//endurance::composure//resolve}}} | :: }}<!-- | ||
+ | -->{{#arrayprint: stressary || @@@@ | <!-- | ||
+ | -->{{Character sheet/FATE/Stress line | @@@@ | columns = {{#var:cols}} }}<!-- | ||
+ | |||
+ | -->{{#vardefineecho: thetrack | @@@@ }}<!-- | ||
+ | -->{{#vardefine:trackname | {{#explode:{{#var: thetrack}}|//|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:curstress | {{#explode:{{#var: thestress}}|//|1}} }}<!-- | ||
+ | --><nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}} class="shaded" {{!}} {{#var: trackname}} <!-- | ||
+ | --><!--({{#var:trackskil}} {{#var: skillValue{{#var:trackskil}}}} / {{#var:trackmod}}) --><!-- debug --> | ||
+ | {{!}} colspan="{{#var:contentcols}}" {{!}} <!-- | ||
+ | -->{{#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><!-- | ||
+ | -->}}<!-- | ||
+ | |||
+ | -->}}<!-- | ||
+ | -->{{#arrayreset: stressary }}<!-- | ||
+ | |||
+ | -->{{#while: | <!-- stress tracks | ||
+ | -->{{#vardefineecho: thetrack | {{#explode: {{{stresstracks|health//endurance::composure//resolve}}} |::| {{#var:scidx}} }} }}<!-- | ||
+ | -->|<!-- | ||
+ | -->{{#vardefine:trackname | {{#explode:{{#var: thetrack}}|//|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:curstress | {{#explode:{{#var: thestress}}|//|1}} }}<!-- | ||
+ | --><nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}} class="shaded" {{!}} {{#var: trackname}} <!-- | ||
+ | --><!--({{#var:trackskil}} {{#var: skillValue{{#var:trackskil}}}} / {{#var:trackmod}}) --><!-- debug --> | ||
+ | {{!}} colspan="{{#var:contentcols}}" {{!}} <!-- | ||
-->{{#if:{{#var: trackname}} |<!-- | -->{{#if:{{#var: trackname}} |<!-- | ||
--><table class="fate stressbox"><!-- | --><table class="fate stressbox"><!-- | ||
Line 189: | Line 285: | ||
--></table><!-- | --></table><!-- | ||
-->}}<!-- | -->}}<!-- | ||
+ | |||
+ | -->{{#vardefine: scidx | {{#expr: {{#var: scidx}} + 1}} }}<!-- | ||
+ | -->}}<!-- end while stress tracks and consequence types | ||
+ | |||
+ | --> | ||
+ | |- | ||
+ | | colspan="{{#var:cols}}" class="subhead" | Consequences <!-- | ||
+ | |||
+ | -->{{#vardefine: scidx | 0 }}<!-- | ||
+ | -->{{#while: | <!-- consequence types | ||
+ | -->{{#vardefineecho: severity | {{#explode: {{{consequencetypes|mild moderate severe}}} | | {{#var:scidx}} }} }}<!-- | ||
+ | -->|<!-- | ||
--><nowiki /> | --><nowiki /> | ||
{{!}} class="label" {{!}} {{#var: severity}} | {{!}} class="label" {{!}} {{#var: severity}} | ||
− | {{!}} colspan=" | + | {{!}} colspan="{{#var:contentcols_r}}" {{!}} <!-- |
-->{{#if:{{#var: severity}} |<!-- | -->{{#if:{{#var: severity}} |<!-- | ||
-->{{#vardefine: conidx | 0 }}<!-- | -->{{#vardefine: conidx | 0 }}<!-- | ||
Line 210: | Line 318: | ||
-->{{#vardefine: scidx | {{#expr: {{#var: scidx}} + 1}} }}<!-- | -->{{#vardefine: scidx | {{#expr: {{#var: scidx}} + 1}} }}<!-- | ||
-->}}<!-- end while stress tracks and consequence types | -->}}<!-- end while stress tracks and consequence types | ||
+ | |||
+ | -->}}<!-- end {{#ifeq:{{{stress-beside-consequences|yes}}}|yes | ||
--> | --> |
Revision as of 13:12, 9 April 2014
{{{name}}} [[{{{campaign}}}]]
| |||||
---|---|---|---|---|---|
Aspects | |||||
| |||||
Skills | |||||
Stunts | |||||
FP | 5 | Refresh | 5 | ||
{{#set: game system = FATE }}{{#set: parent template = Template:Character_Sheet }}
[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. |