# Spell Related Output Sheet Tokens

*** NEW 5.10.1

Token Name: BASEPPCOST

What it does:

Returns the PPCOST from a spell .

*** new 5.7.12

Token Name: MAXSPELLLEVEL.x

Variables Used (x): Number (The class number).

What it does:

The value returned is an integer containing the highest spell level that the class can cast (for most RSRD classes this will either be 9 (for Wizards) or 4 (for Rangers etc)).

*** new 5.10.1

Token Name: SPELLBOOK.x.y

Variables Used (x): Number (The Spell book Number of the spell book you wish to display).

* The known spell book is spell book number 0.

* The racial innate spell book is spell book number 1.

* Other innate spell books are spell book number 2 or up.

* The innate spell books will not exist if the character does not have innate spells.

Variables Used (y): Text (The property of the spell book you wish to display).

* NAME - Display the name of the indicated spell book or list.

* NUMPAGES - Display the total number of pages in the spell book (or 0 if there are no pages, such as in a prepared spell list).

* NUMPAGESUSED - Display the number of pages currently in use for the spell book (or 0 if there are no pages, such as in a prepared spell list).

* NUMSPELLS - Display the number of spells in the spell book or list.

* PAGEFORMULA - Display the page formula for the spell book (or an empty string if there are no pages, such as in a prepared spell list).

* TYPE - Display the type (e.g. Known Spells, Prepared List) of the spell book or list.

What it does:

Displays information about the character's spell book or spell list.

Example:

`SPELLBOOK.0.NAME`

Displays the name of the 1st spell book for the character.

Token Name: SPELLBOOKNAME.x

Variables Used (x): Number (The book number of the spellbook title you wish to display).

What it does:

- Displays the title of spellbook x in the character spellbook list.
- The Known Spellbook is any class but 0, spellbook number 0.
- The Racial Innate Spellbook is class 0, spellbook number 1.
- Other Innate Spellbooks are class 0, spellbook number 2 or up.
- The Innate spellbooks will not exist if the character does not have innate spells.
- The -1 Spellbook should not be used any more.

Example:

`SPELLBOOKNAME.0`

Display Spell Book 0 (the default spellbook).

*** updated 5.7.9

Token Name: SPELLLISTx.y.z

Variables Used (x): Text (Spellbook Option. See below)

Variables Used (y): Number (Class Number - 0 index array).

Variables Used (z): Number (Spellcasting Level - 0-9).

Variables Used (w): Number (Book Number. Optional).

What it does:

- Displays information about spellcasting ability, and spells themselves.
- Spellbook options include the following sub-tokens:
  - `BOOK` - Displays a comma delimited list of spells known to spellcaster class number y for level z of book w.
  - `CAST` - Displays the number of spells you can cast for spellcaster class number y for level z.
  - `CLASS` - Displays the spellcaster class information.
    - `CLASS.y` - Displays the spellcaster classname for class number y.
    - `CLASS.y.LEVEL` - Displays the spellcasters effective casting level, including bonus levels from other classes.
  - `DC` - Displays the casting DC for a z level spell for spellcaster class y.
  - `DCSTAT` - Displays the STAT used to figure out the DC of a z level spell cast by spallcaster class y.
  - `MEMORIZE` - Returns a boolean "true" if the spellcaster class y needs to memorize spells, "false" if otherwise.
  - `TYPE` - Displays the spell type (e.g. Arcane or Divine) of spellcaster class y.
  - `KNOWN` - Displays how many spells spellcaster class y can know for level z. For Clerics with domains, this does not include domain spells.

Example:

`SPELLLISTCAST.0.1`

Displays how many spells the character can cast for the 1st level of the 1st spellcaster class the character has.

`SPELLLISTTYPE.0.1`

Displays the spell list type of the 1st spellcaster class the character has.

Token Name: SPELLMEM.v.w.x.y.z

Variables Used (v): Number (Spell class).

Variables Used (w): Number (Spellbook).

Variables Used (x): Number (Spell level).

Variables Used (y): Number (Number of the spell in known spells list).

Variables Used (z): Text (Spell property).

What it does:

- Displays information about the spells in the character spellbooks.
- Standard Class/Spellbook combinations are as follows:
  - The Known Spellbook is any class but 0, spellbook number 0.
  - The Racial Innate Spellbook is class 0, spellbook number 1.
  - Other Innate Spellbooks are class 0, spellbook number 2 or up.
  - The Innate spellbooks will not exist if the character does not have innate spells.
  - A spellbook number of "-1" should no longer be used.
- Spell properties are identified as follows:
  - `BONUSSPELL` - Display an * is the spell is a domain/specialty spell, display ** if it is ONLY a domain/specialty spell.
  - `COMPONENTS` - Display the necessary components of the indicated spell.
  - `CASTERLEVEL` - Display the caster level (including bonuses) of the indicated spell.
  - `CASTINGTIME` - Display the casting time of the indicated spell.
  - `CLASS` - Indicates spellcaster classname.
  - `CT` - Display the Casting Threshold of the indicated spell.
  - `DC` - Display the DC of the indicated spell.
  - `DCSTAT` - Display the STAT used to figure out DC of spell
  - `DESC` - Display the description of the indicated spell.
  - `DESCRIPTION` - Display the description of the indicated spell.
  - `DESCRIPTOR` - Display the discriptor of the indicated spell.
  - `DURATION` - Display the duration of the indicated spell.
  - `EFFECT` - Display the effect of the indicated spell.
  - `EFFECTTYPE` - Display the type of effect of the indicated spell.
  - `FULLSCHOOL` - Display the school, if any, of the indicated spell in long form.
  - `NAME` - Display the name of the indicated spell.
  - `RANGE` - Display the range of the indicated spell.
  - `SAVEINFO` - Display the save info of the indicated spell.
  - `SCHOOL` - Display the school, if any, of the indicated spell in short form.
  - `SOURCE` - Display the source of the indicated spell in long form.
  - `SOURCELEVEL` - Display all the sources and levels of the indicated spell (Wiz3,Sor3).
  - `SOURCEPAGE` - Display the source page of the indicated spell.
  - `SOURCESHORT` - Display the source of the indicated spell in short form.
  - `SUBSCHOOL` - Display the subschool, if any, of the indicated spell.
  - `SR` - Display the spell resistance properties of the indicated spell.
  - `SRSHORT` - Returns an "N" if spell the spell ignores resistance, "Y" if it does not.
  - `TARGET` - Display the target of the indicated spell (contents of the TARGETAREA lst tag).
  - `TIMES` - Display the number of times the indicated spell is in the spellbook.
  - `TIMEUNIT` - Display the unit of time (i.e. Encounter, Week, Month, etc.).
  - `TYPE` - Display the type (i.e. Arcane or Divine) of spell class.

Example:

`SPELLMEM.0.0.0.0.NAME`

Displays the Name of the 1st 0th level spell in the 1st spellbook for the 1st character class.

Token Name: SPELLPOINTS

What it does:

Use only for Deadlands. Gives the number of Spellpoints the character has.

Example:

`SPELLPOINTS`

Gives the number of Spellpoints the character has.