From GamingWiki
Line 51: | Line 51: | ||
| colspan="3" class="shaded" | <!-- | | colspan="3" class="shaded" | <!-- | ||
− | Define the types of skills available. These each have their own class, too. | + | Skill listing setup |
+ | |||
+ | Define the types of skills available, and add a list of them to | ||
+ | the character sheet. These each have their own class, too. | ||
-->{{#vardefine: skillClass | {{{skillclass|skill}}} }}<!-- | -->{{#vardefine: skillClass | {{{skillclass|skill}}} }}<!-- | ||
Line 57: | Line 60: | ||
-->{{#vardefine: stidx | 0 }}<!-- | -->{{#vardefine: stidx | 0 }}<!-- | ||
-->{{#while: <!-- | -->{{#while: <!-- | ||
− | -->| {{#vardefineecho: skilltype | {{#explode: {{{skilltypes|combat track}}} | | {{#var: stidx}} }} }}<!-- end vardefineecho | + | -->| {{#vardefineecho: skilltype | <!-- |
+ | -->{{#explode: {{{skilltypes|combat track}}} | | {{#var: stidx}} }} <!-- | ||
+ | -->}}<!-- end vardefineecho | ||
-->| {{#vardefine: {{#var:skilltype}}Class | {{#var:skilltype}} }}<!-- | -->| {{#vardefine: {{#var:skilltype}}Class | {{#var:skilltype}} }}<!-- | ||
-->{{#ifeq:{{#var:stidx}}|0|types: |, }} <!-- | -->{{#ifeq:{{#var:stidx}}|0|types: |, }} <!-- | ||
− | --><span class="{{#var: skillClass}} | + | --><span class="{{#var: skillClass}} {{#var:skilltype}}">{{#var:skilltype}}</span><!-- |
-->{{#vardefine: stidx | {{#expr: {{#var: stidx}} + 1}} }}<!-- | -->{{#vardefine: stidx | {{#expr: {{#var: stidx}} + 1}} }}<!-- | ||
-->}}<!-- end while --> | -->}}<!-- end while --> | ||
|- | |- | ||
<!-- | <!-- | ||
+ | |||
+ | |||
+ | Now define the skill modifiers available. Each of these will have | ||
+ | as associated HTML fragment that is appended to the skill name. | ||
+ | |||
+ | -->{{#vardefine: smidx | 0 }}<!-- | ||
+ | -->{{#while: | <!-- while skill marker | ||
+ | -->{{#vardefineecho: marker | {{#explode: {{{skillmarkers|}}} | ;; | {{#var: smidx}} }} }}<!-- | ||
+ | -->|<!-- | ||
+ | -->{{#vardefine: mKey | {{#replace: {{lc:{{#explode: {{#var: marker}} | // | 0 }}}} ||}} }}<!-- | ||
+ | -->{{#vardefine: {{#var:mKey}}HTML | {{#explode: {{#var: marker}} | // | 1 }} }}<!-- | ||
+ | -->}}<!-- end while marker | ||
+ | |||
We may have custom skill ranks. | We may have custom skill ranks. | ||
Line 85: | Line 103: | ||
-->|<!-- One 'skills' section. | -->|<!-- One 'skills' section. | ||
Lines are listed in descending order of skill. Each line is of the form: | Lines are listed in descending order of skill. Each line is of the form: | ||
− | ;; SkillName// | + | ;; SkillName//OpModifier[//OpModifier ...] :: SkillName//OpModifier ... |
− | where SkillName is just what it says, | + | where SkillName is just what it says, and OpModifier is an optional |
− | + | modifier such as 'MG'. | |
− | such as 'MG'. | ||
Note: we assume that no skill lines are missing. | Note: we assume that no skill lines are missing. | ||
Line 97: | Line 114: | ||
There are several parameters: skills1, skill2, and so on. Each corresponds | There are several parameters: skills1, skill2, and so on. Each corresponds | ||
to a single skill rank, and each is of the form: | to a single skill rank, and each is of the form: | ||
− | skillN = SkillName// | + | skillN = SkillName//OpModifier[//OpModifier ...] :: SkillName//OpType//OpModifier ... |
as in the previous form. We no longer assume that all skill lines are | as in the previous form. We no longer assume that all skill lines are | ||
present; gaps may be left if desired. | present; gaps may be left if desired. | ||
Line 132: | Line 149: | ||
Look for skill markers: | Look for skill markers: | ||
− | -->{{#vardefine: smidx | | + | -->{{#vardefine: smidx | 1 }}<!-- |
-->{{#while: | <!-- while skill marker | -->{{#while: | <!-- while skill marker | ||
− | -->{{#vardefineecho: | + | -->{{#vardefineecho: mKey | {{#replace: {{lc:{{#explode: {{#var: theskill}} |//| {{#var:smidx}} }} }} }} }}<!-- |
− | + | -->|<!-- | |
− | + | -->{{#var: {{#var:mKey}}HTML }}<!-- | |
− | |||
− | --> | ||
-->{{#vardefine: smidx | {{#expr: {{#var: smidx}} + 1}} }}<!-- | -->{{#vardefine: smidx | {{#expr: {{#var: smidx}} + 1}} }}<!-- | ||
-->}}<!-- end while marker | -->}}<!-- end while marker |
Revision as of 22:09, 8 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 | |||||||||||||||||||||||
mild | |||||||||||||||||||||||
moderate | |||||||||||||||||||||||
severe |
{{#set: game system = FATE }}{{#set: parent template = Template:Character_Sheet }}