From GamingWiki
Line 39: | Line 39: | ||
ASPECTS | ASPECTS | ||
− | --> | + | -->{{Character sheet/section |
− | {{Character sheet/section | ||
| subhead = Aspects | | subhead = Aspects | ||
| label1 = | | label1 = | ||
Line 51: | Line 50: | ||
SKILLS | SKILLS | ||
+ | |||
+ | Define the types of skills available. These each have their own class, too. | ||
+ | -->{{#vardefine: skillClass | {{{skillclass|skill}}} }}<!-- | ||
+ | -->{{#arraydefine: skilltypearray | {{{skilltypes|combat track}}} | /\s+/ }}<!-- | ||
+ | -->{{#arraytohash: classhash | skilltypearray | skilltypearray }}<!-- | ||
+ | |||
+ | We may have custom skill ranks. | ||
+ | -->{{#arraydefine: skilllevelarray | <!-- | ||
+ | -->{{{skillranks| Average (+1) :: Decent (+2) :: Good (+3) :: Great (+4) :: Superb (+5) }}} | :: }}<!-- | ||
+ | -->{{#arraymerge: skilllevelsreverse | skilllevelarray }}<!-- | ||
+ | -->{{#arraysort: skilllevelsreverse | reverse }}<!-- | ||
+ | -->{{#vardefine: numSkLvl | {{#arraysize: skilllevelarray}} }}<!-- | ||
+ | |||
+ | There are various skill markers that may be defined -- these go into a hash. | ||
+ | -->{{#hashdefine: skillmarkerhash | {{{skillmarkers|}}} | ;; | :: }}<!-- | ||
+ | |||
+ | Use a hash to store and then print the skills | ||
+ | -->{{#hashdefine: skillhash}}<!-- | ||
+ | |||
+ | We either have a long section of skills, or one entry per level. | ||
+ | -->{{#if: {{{skills|}}}|<!-- | ||
+ | One 'skills' section. | ||
+ | Lines are listed in descending order of skill. Each line is of the form: | ||
+ | ;; SkillName//OpType//OpModifier :: SkillName//OpType//OpModifier ... | ||
+ | where SkillName is just what it says, OpType is an optional type to the | ||
+ | skill (such as 'combat' or 'track' and OpModifier is an optional modifier | ||
+ | such as 'MG'. | ||
+ | Note: we assume that no skill lines are missing. | ||
+ | |||
+ | -->{{#arraydefine: skillsbylevel | {{{skills}}} | ;; }}<!-- | ||
+ | -->{{#arrayslice: skillsbylevel | skillsbylevel | 0 }}<!-- | ||
+ | -->{{#arraytohash: skillhash | skillsbylevel | skilllevelsreverse }}<!-- | ||
+ | -->|<!-- | ||
+ | Multiple sections: 'skills1', 'skills2', etc. | ||
+ | There are several parameters: skills1, skill2, and so on. Each corresponds | ||
+ | to a single skill rank, and each is of the form: | ||
+ | | skillN = SkillName//OpType//OpModifier :: SkillName//OpType//OpModifier ... | ||
+ | as in the previous form. We no longer assume that all skill lines are | ||
+ | present; gaps may be left if desired. | ||
+ | |||
+ | -->{{#forargs: skill | thelevel | theskilllist | <!-- | ||
+ | -->{{#rmatch: {{#var:thelevel}} | /^\d+$/ | <!-- | ||
+ | -->{{#hashinclude: skillhash | {{#arrayvalue: skilllevelarray | {{#var: thelevel}} }}={{#var:theskilllist}} }}<!-- | ||
+ | -->}}<!-- | ||
+ | -->}}<!-- | ||
+ | -->}}<!-- | ||
+ | |||
+ | --> | ||
+ | {{Character sheet/section | ||
+ | | subhead = Skills | ||
+ | | righthead = types: {{#hashprint: classhash | , | %%%% | @@@@ | <span class="{{#var:skillClass}} @@@@"> %%%%</span> }} | ||
+ | }}<!-- end section --><!-- | ||
+ | |||
+ | -->{{#arraydefine: skillhashkeys | name, type, marker}}<!-- | ||
+ | -->{{#hashprint: skillhash | , | %%%% | @@@@ | <nowiki /> | ||
+ | {{!}}- | ||
+ | {{!}} class="label" {{!}} %%%% | ||
+ | {{!}} colspan="3" class="{{#var: skillClass }}" {{!}} <!-- | ||
+ | -->{{#arraydefine: skilllineary | @@@@ | :: }}<!-- | ||
+ | -->{{#arrayprint: skilllineary | , | $theskill$ | <!-- | ||
+ | -->{{#arraydefine: theskillarray | $theskill$ | /\/\// }}<!-- | ||
+ | -->{{#arraytohash: theskillhash | theskillarray | skillhashkeys }}<!-- | ||
+ | --><span class="{{#var: skillClass}} {{#hashvalue: theskillhash | type }}"><!-- | ||
+ | -->{{#hashvalue: theskillhash | name | _____ }}<!-- | ||
+ | --></span> <!-- | ||
+ | -->{{#hashvalue: skillmarkerhash | {{#hashvalue: theskillhash | marker}} }}<!-- | ||
+ | -->}}<!-- | ||
+ | -->}}<!-- | ||
--> | --> |
Revision as of 19:29, 28 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 | |||||||
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 }}