Character Sheet Templates

You can edit the templates used to create the character sheets in order to customize your character sheet. The template sheets are HTML and use Cascading Style Sheets to display properly. You need a browser that supports CSS properly (like IE 6.0) in order to display the character sheets correctly.

Tags

The templates use special tags that work like this pipe character, name of tag, then pipe character. DM Genie will replace the text of the tag with the appropriate data. They should contain no spaces, and be entirely in uppercase. For example:

|TAGNAME|

|TAG.SUBTAG|

|STAT2|

|STAT3.MOD|

Tags Available

There are many tags you can use in your own character sheet. We will not list them all here – refer to one of the templates that come with DM Genie to learn what tags you can use. The name of each tag is fairly self-explanatory. More complicated tags are displayed below:

Pictures

You can include a picture (choose the file in the Desc Frame ) of your PC on the character sheet. The format is |PICTURE#| where the number # means:

0: No resizing

1: Width fixed at 400 pixels.

2: Width fixed at 300 pixels.

3: Width fixed at 200 pixels.

4: Width fixed at 100 pixels.

5: Width fixed at 50 pixels.

6: Height fixed at 400 pixels.

7: Height fixed at 300 pixels.

8: Height fixed at 200 pixels.

9: Height fixed at 160 pixels. Default Value

10: Height fixed at 100 pixels.

11: Height fixed at 50 pixels.

12: 200% of original size

13: 150% of original size

14: 100% of original size

15: 75% of original size

16: 50% of original size

17: 25% of original size

FOR Loops

The FOR tag is a special tag with this format:

|FOR,%var,min,max,step|

<HTML CODE>

|ENDFOR%var|

%var can be any string following a % character. The loop will replace the string "%var" with the value of the index at that loop, starting with min and ending with max, stepping by step. Do not nest FOR variables.

Double FOR Loops

The FOR2 tag is a for loop for 2 columns:

|FOR2,%var,%secondvar,min,max,step|

<HTML CODE>

|ENDFOR%var|

%var will be replaced normally, but %secondvar will be replaced by %var + 1. Usually step = 2 for these loops.

Maximums in FOR Loops

Some special recognized values for the max parameter of FOR loops:

COUNT[SKILLS]: the number of skills. Unusable skills will be skipped.

COUNT[FEATS]: only those feats the PC has.

COUNT[ATTACKS]: each attack the PC has.

COUNT[ITEMS]: each item the PC has.

Special Tags for Spell Information

Each block of text is delimited by the tags below and another tag, |END.PREVIOUSTAG|.

-          SPELLCLASS.HEADER: Displayed for each spellcasting class. %t is the variable to mean the class number of the spell class.

-          SPELLCLASS.USED.HEADER: Displayed for each spellcasting class that does not need to memorize spells (includes a line of "spell slots used".

-          SPELL.PRELEVEL: Displayed before each group of spells of one level. The %l variable is the spell level

-          SPELL.LINE: Each line in the list of spells. Should have three columns with the variables %a, %b and %c for each column.

-          SPELL.POSTLEVEL: Displayed after each group of spells of one level.

Filters

Anything between a |FILTER:NAME| and |ENDFILTER:NAME| will be ignored if that particular filter is turned on (from the options when generating the sheet). Filters can be nested (that is, put inside one another).

You can create customized filters using custom variables for creatures (see Scripting – Creature Functions ). You can filter HTML in the character sheet using the following format:

|FILTER:CUSTOMVAR:TheNameOfMyVariable|

<b>This html code will only be displayed if the variable is not empty ("" or an empty string). Any value returned (even "0") will cause the filtered text to be included.</b>

|ENDFILTER:CUSTOMVAR:TheNameOfMyVariable|

Custom Variables

Custom variables that are accessed by some feats (see Scripting – Creature Functions ) can be displayed in the character sheet using the tag |CUSTOMVAR:TheNameOfMyVariable|. So, in conjunction with the custom filter you can make optional output like this one, which will only show up for bards, and indicate how many uses per day of Bardic Music are left:

|FILTER:CUSTOMVAR:BardicMusicQty|

Bardic Music uses left today: <b>|CUSTOMVAR:BardicMusicQty|</b>.

|ENDFILTER:CUSTOMVAR:BardicMusicQty|

The default character sheet only includes examples related to feats/abilities like Bardic Music, but using Class Scripting to set variables for example it would be possible to greatly customize the character sheet to fit the needs of each PC.

There are also numbered custom variables (those displayed in the Custom tab). The tag for it is for example |CUSTOMVARNUM2|, where you replace 2 with the number of your variable. The first custom variable is # 0.

Full List of Tags

Here follows the full list of tags in the default character sheet. Their name is usually directly indicative of its function. Some tags may be unused in the actual default sheet but can be used in your custom sheet.

--- Title Area ---

|NAME|

|LEVELSTR|

--- General ---

|PLAYER|

|CAMPAIGN|

|ALIGNMENT|

|GENDER|

|APPTITLE|

|LEVELSTR|

|RACE|

|HEIGHT|

|WEIGHT|

|AGE|

|SIZE|

--- Ability Scores ---

|FOR,%g,0,5,1,1|

|STAT%g.NAME| Abbreviation

|STAT%g.LONGNAME| Full name (strength)

|STAT%g| Current value

|STAT%g.MOD| Current Modifier

|STAT%g.BASE| Base value

|STAT%g.BASEMOD| Base modifier

|STAT%g.TEMP| Current ability, but blank if the same as the base

|STAT%g.TEMPMOD|

|ENDFOR%g|

|HP| Total hit points

|HPCURRENT| Current hit points.

|DR| Damage resistance string

|CR| Challenge Rating.

|ECL| Effective character level.

|LEVELADJUST| Race's level adjustment

|TOTALHD| Total # of hit dice.

|RESISTANCE| Descriptive string of resistances.

|CURRENTADVENTURE| Current adventure name.

--- Armor Class ---

|AC|

|AC.FLATFOOTED|

|AC.TOUCH|

|AC.TOUCHMELEE|

|AC.TOUCHRANGED|

|AC.BASE|

|AC.EQUIP|

|AC.ABILITY|

|AC.NATURAL|

|AC.MISC|

|AC.TEMP.ARMOR|

|AC.TEMP.NONARMOR|

--- Initiative/BAB ---

|INITIATIVE| Bonus to init rolls

|STAT1.MOD|

|INITIATIVEBONUS|

|SPEED|

|BAB| Base attack bonus string

--- Character Picture ---

|PICTURE9|

--- Saving Throws ---

|CHECK.FORTITUDE.TOTAL|

|CHECK.FORTITUDE.BASE|

|STAT2.MOD|

|CHECK.FORTITUDE.MAGIC|

|CHECK.REFLEX.TOTAL|

|CHECK.REFLEX.BASE|

|STAT1.MOD|

|CHECK.REFLEX.MAGIC|

|CHECK.WILLPOWER.TOTAL|

|CHECK.WILLPOWER.BASE|

|STAT4.MOD|

|CHECK.WILLPOWER.MAGIC|

--- Attacks ---

|MELEE.TOTAL|

|BABONE|

|STAT0.MOD|

|SIZEMOD|

|RANGED.TOTAL|

|BABONE|

|STAT1.MOD|

|SIZEMOD|

--- ,s ---

|MAXRANKSCLASS|

|MAXRANKSCROSS|

|FOR,%s,0,COUNT[SKILLS],1,1,1|

|SKILL%s|

|SKILL%s.ABILITY|

|SKILL%s.TOTAL|

|SKILL%s.ABMOD|

|SKILL%s.RANK|

|SKILL%s.MISC|

|SKILL%s.ARMORCHECK|

|ENDFOR%s|

|SKILLINFO| : the misc. notes about skills box.

--- Attacks ---

|FOR,%w,0,COUNT[ATTACKS],1,1,1|

|WEAPON%w.NAME|

|WEAPON%w.TOTALHIT|

|WEAPON%w.DAMAGE|

|WEAPON%w.CRIT|

|WEAPON%w.HAND|

|WEAPON%w.RANGE|

|WEAPON%w.WEIGHT|

|WEAPON%w.SIZE|

|WEAPON%w.TYPE|

|WEAPON%w.SPECIAL|

|ENDFOR%w|

--- Armor ---

|FOR,%a,1,COUNT[ARMOR],1|

|ARMOR%a.NAME|

|ARMOR%a.TYPE|

|ARMOR%a.TOTALAC|

|ARMOR%a.CHECKPEN|

|ARMOR%a.MAXDEX|

|ARMOR%a.SPELLFAIL|

|ARMOR%a.SPEED|

|ARMOR%a.WEIGHT|

|ARMOR%a.MAGIC|

|ARMOR%a.SPECIAL|

|ENDFOR%a|

--- Ammo ---

|AMMO0.NAME|

|AMMO1.NAME|

|AMMO2.NAME|

|AMMO3.NAME|

--- Equipment ---

|FOR2,%e,%f,1,COUNT[ITEMS],2|

|EQ%e.NAME|

|EQ%e.EQUIPPED|

|EQ%e.QTY|

|EQ%e.WT|

|EQ%e.COST|

|ENDFOR%e|

|EQUIPPEDWEIGHT|

|TOTALWEIGHT|

|TOTALVALUE|

--- Carrying ---

|LOAD.LIGHT|

|LOAD.MEDIUM|

|LOAD.HEAVY|

|LOAD.OVERHEAD|

|LOAD.OFFGROUND|

|LOAD.PUSH|

--- Coins ---

|CASHPP|

|CASHGP|

|CASHSP|

|CASHCP|

|VALUABLES|

--- Misc Notes ---

|XP|

|XPNEXTLEVEL|

|EYECOLOR|

|HAIRCOLOR|

|DEITY|

|BACKSTORY|

|NOTES|

--- Feats ---

|FOR,%f,1,COUNT[FEATS],1,1|

|FEAT%f|

|ENDFOR%f|

|FEATINFO|

--- Other Stuff ---

|LANGUAGES|

--- Spells ---

|FILTER:SPELLS|

|FILTER:SPELLSPAGE|

|ENDFILTER:SPELLSPAGE|

|SPELLNOTES|

|STARTSPELL|

|SPELLCLASS.HEADER|

|CLASS%t.FULLNAME|

|SLOT%t.0|

|SLOT%t.1|

|SLOT%t.2|

|SLOT%t.3|

|SLOT%t.4|

|SLOT%t.5|

|SLOT%t.6|

|SLOT%t.7|

|SLOT%t.8|

|SLOT%t.9|

|SPELLDC%t.0|

|SPELLDC%t.1|

|SPELLDC%t.2|

|SPELLDC%t.3|

|SPELLDC%t.4|

|SPELLDC%t.5|

|SPELLDC%t.6|

|SPELLDC%t.7|

|SPELLDC%t.8|

|SPELLDC%t.9|

|END.SPELLCLASS.HEADER|

|SPELLCLASS.USED.HEADER|

|CLASS%t.FULLNAME|

|CLASS%t.FULLNAME|

|SLOT%t.0|

|SLOT%t.1|

|SLOT%t.2|

|SLOT%t.3|

|SLOT%t.4|

|SLOT%t.5|

|SLOT%t.6|

|SLOT%t.7|

|SLOT%t.8|

|SLOT%t.9|

|SPELLDC%t.0|

|SPELLDC%t.1|

|SPELLDC%t.2|

|SPELLDC%t.3|

|SPELLDC%t.4|

|SPELLDC%t.5|

|SPELLDC%t.6|

|SPELLDC%t.7|

|SPELLDC%t.8|

|SPELLDC%t.9|

|END.SPELLCLASS.USED.HEADER|

|SPELL.PRELEVEL|

|END.SPELL.PRELEVEL|

|SPELL.LINE|

|SPELL%a|

|SPELLBOXES%a|

|SPELL%b|

|SPELLBOXES%b|

|SPELL%c|

|SPELLBOXES%c|

|END.SPELL.LINE|

|SPELL.POSTLEVEL|

|END.SPELL.POSTLEVEL|

|ENDSPELL|

|ENDFILTER:SPELLS|

New v.2.10:

|SPELLMEMORIZEDLIST_NAME#| and |SPELLMEMORIZEDLIST_LIST#|

These allow you to display the list of pre-set memorized spells (see the Spells Pop-up Menu ) in the character sheet. The # in the tag is to be replaced with 1, 2, etc. for the list of that #. The first list's number is 1.

--- Psionics ---

|FILTER:PSIONIC|

|FILTER:PSIONICPAGE|

|ENDFILTER:PSIONICPAGE|

|TOTALPP|

|FREETALENTS|

|PSIMODE1|

|PSIMODE2|

|PSIMODE3|

|PSIMODE4|

|PSIMODE5|

|PSIMODE6|

|PSIMODE7|

|PSIMODE8|

|PSIMODE9|

|PSIMODE10|

|STARTPSIONIC|

|PSIONIC.PRELEVEL|

|END.PSIONIC.PRELEVEL|

|PSIONIC.LINE|

|PSIONIC%a|

|PSIONIC%b|

|PSIONIC%c|

|END.PSIONIC.LINE|

|PSIONIC.POSTLEVEL|

|END.PSIONIC.POSTLEVEL|

|ENDPSIONIC|

|ENDFILTER:PSIONIC|





Documentation for DM Genie and Player Genie, page CharSheet_Template. Copyright © Mad Scientist Studios, 2006.
Help Contents   |   DM Genie home page
Click here if you cannot see the table of contents on the left