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.


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:





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:


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:




%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:




%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.


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:


<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>


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:


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


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 ---



--- General ---












--- Ability Scores ---


|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



|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 ---













--- Initiative/BAB ---

|INITIATIVE| Bonus to init rolls




|BAB| Base attack bonus string

--- Character Picture ---


--- Saving Throws ---













--- Attacks ---









--- ,s ---












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

--- Attacks ---













--- Armor ---













--- Ammo ---





--- Equipment ---











--- Carrying ---







--- Coins ---






--- Misc Notes ---








--- Feats ---





--- Other Stuff ---


--- Spells ---



































































New v.2.10:


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 ---




























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