When GCS exports a character sheet to text, it uses a modifiable template to create the resulting file. This template is itself is plain text and can be customized in any way desired. The default text template produces an HTML file and can be found in Library/Output Templates/html_template.html. To change the template used when exporting, check the Text Export Template box in the Output tab of the Preferences window, and select the desired template file. If you've selected an image for your character and the template you're using displays it, a copy of the image will be saved with the character sheet.
Creating New Templates
Templates are text files. The extension of the template file is used when creating a newly exported sheet from a template. Instructions on inserting character information and other functions are given to GCS with keys, which are of the form, @KEY. (Note that this turns @ into a reserved character, and so you must use @ if you wish the final HTML character sheet to include one.) Keys are case-sensitive and must be in all-caps. Incorrectly entered keys will be replaced with Unidentified key! in the character sheet.
The following examples show the creation of a template that will output a plain text list of the sort generally used to post characters on Internet forums. The most basic keys are simply markers for a find-and-replace operation. The template...
Lists of traits are generated with loop keys. When GCS encounters a loop, it applies the template within the loop once for each item on the list. If one adds...
...GCS will output...
There are several different forms of the @DESCRIPTION keys. _PRIMARY outputs the name only, _MODIFIER_NOTES outputs those notes due to modifers, and _NOTES outputs the text in the Notes field of the advantage, skill, or equipment. The latter two can also have _PAREN appended to them to surround the output, if any, in parenthesis. @DESCRIPTION_NOTES is omitted here because notes on advantages are rules summaries, which, while useful on character sheets meant for use in play, are not desirable in this template. Notes are, however, meaningful on skills, equipment, and spells, and so are included in those loops:
Adding @NOTES to the end finishes this template.
(Outputs the file name of the character's portrait, which is saved in the same directory as the character sheet)
HP and FP
(Maximum FP. For current FP, use FP)
(Maximum HP. For current HP, use HP)
(Current FP. For maximum FP, use BASIC_FP)
(Current HP. For maximum HP, use BASIC_HP)
(Level of encumbrance; None (0), Light (1), etc.)
Hit Location Loop
(The penalty to attack this location deliberately)
(Roll required to hit this location using random hit locations)
(Name of the hit location)
Lifting & Moving Things
Advantages, Skills, and Spells Loops
(Produces output of the form below, excluding those sections not present)
@DESCRIPTION_PRIMARY<div class="note">@DESCRIPTION_MODIFIER_NOTES</div><div class="note">@DESCRIPTION_NOTES</div>
(Outputs the notes generated by active modifiers. Can be appended with _PAREN to surround the output in parenthesis)
(Outputs the text in the Notes field of the item. Can be appended with _PAREN to surround the output in parenthesis)
(Outputs the name of the item)
(Relative skill level)
Melee Attacks Loop
Ranged Attacks Loop
(Includes preceding $)
(Does not include preceding $)
(Cost multiplied by qty)
(Whether the item is carried, equipped, or not carried)
(Weight multiplied by qty)
Notes all combined into one text block
If present, all text field encoding from that point on will be disabled. Normally, text field output is encoded so that it will display properly as HTML.
(Outputs the current indention depth multiplied by the number appended to the key. For example, @DEPTHx12 would output 0 for depth 0, 12 for depth 1, 24 for depth 2, etc.)
(Produces output of the form below if the current indentation depth is greater than 0, otherwise nothing)
style="padding-left: @DEPTHx12px;"orstyle="padding-left: @DEPTHx12px; color: red;"if the item has unsatisfied requirements.