QuteSpell

Pf2eTools Spell attributes (spell2md.txt)

Extension of Pf2eQuteBase

Attributes

altNames, amp, books, castDuration, components, cost, domains, duration, formattedComponents, getAliases, hasSections, heightened, labeledSource, level, name, reprintOf, requirements, save, source, sourceAndPage, sourcesWithFootnote, spellLists, spellType, subclass, tags, targeting, text, traditions, traits, trigger, vaultPath

altNames

amp

Psi amp behavior as QuteSpellAmp

books

List of source books using abbreviated name. Fantasy statblocks uses this list format, as an example.

castDuration

The time it takes to cast the spell, as a QuteDataDuration which is either a QuteDataActivity or a QuteDataTimedDuration.

components

The required spell components as a list of formatted strings (maybe empty). Use QuteSpell#formattedComponents to get a pre-formatted representation.

cost

The material cost of the spell as a formatted string (optional)

domains

List of spell domains (links)

duration

Spell duration, as QuteDataTimedDuration

formattedComponents

The components required for the spell, as a formatted string. Example:

[somatic](#), [verbal](#)

getAliases

Aliases for this note, including the note name, as quoted/escaped strings.

Example values:

In templates:

aliases:
{#each resource.aliases}
- {it}
{/each}

hasSections

True if the content (text) contains sections

heightened

Heightened spell effects as a list of NamedText

labeledSource

Formatted string describing the content's source(s): _Source: <sources>_

level

A spell’s overall power, from 1 to 10.

name

Note name

reprintOf

List of content superceded by this note (as Reprinted)

requirements

The requirements to cast the spell (optional)

save

Spell save, as QuteSpellSave

source

String describing the content's source(s)

sourceAndPage

Book sources as list of SourceAndPage

sourcesWithFootnote

Get Sources as a footnote.

Calling this method will return an italicised string with the primary source followed by a footnote listing all other sources. Useful for types that tend to have many sources.

spellLists

Spell lists containing this spell

spellType

Type: spell, cantrip, or focus

subclass

List of category (Bloodline or Mystery) to Subclass (Sorcerer or Oracle). Link to class (if present) as a list of NamedText.

tags

Collected tags for inclusion in frontmatter

targeting

Spell target attributes as QuteSpellTarget

text

Formatted text. For most templates, this is the bulk of the content.

traditions

List of spell traditions (trait links)

traits

Collection of traits (decorated links)

trigger

The activation trigger for the spell as a formatted string (optional)

vaultPath

Path to this note in the vault