QuteHazard
Pf2eTools Hazard attributes (hazard2md.txt)
Hazards are rendered both standalone and inline (as an admonition block). The default template can render both. It uses special syntax to handle the inline case.
Use %%-- to mark the end of the preamble (frontmatter and
other leading content only appropriate to the standalone case).
Extension of Pf2eQuteBase
Attributes
Permalinkabilities, actions, attacks, books, complexity, defenses, disable, getAliases, hasSections, labeledSource, level, name, perception, reprintOf, reset, routine, routineAdmonition, source, sourceAndPage, sourcesWithFootnote, stealth, tags, text, traits, vaultPath
abilities
PermalinkThe hazard's abilities, as a list of QuteAbility
actions
PermalinkThe hazard's actions, as a list of QuteAbilityOrAffliction.
Using the elements directly will give a default rendering, but if you want more
control you can use isAffliction and isAbility to check whether it's an affliction or an
ability. Example:
{#each resource.actions}
{#if it.isAffliction}
**Affliction** {it}
{#else if it.isAbility}
**Ability** {it}
{/if}
{/each}
attacks
PermalinkThe attacks available to the hazard, as a list of QuteInlineAttack
books
PermalinkList of source books using abbreviated name. Fantasy statblocks uses this list format, as an example.
complexity
Permalinkdefenses
Permalinkdisable
PermalinkgetAliases
PermalinkAliases for this note, including the note name, as quoted/escaped strings.
Example values:
- "+1 All-Purpose Tool"
- "Carl "The Elder" Frost"
In templates:
aliases:
{#each resource.aliases}
- {it}
{/each}
hasSections
PermalinkTrue if the content (text) contains sections
labeledSource
PermalinkFormatted string describing the content's source(s): _Source: <sources>_
level
Permalinkname
PermalinkNote name
perception
PermalinkThe hazard's perception, as a QuteDataGenericStat
reprintOf
PermalinkList of content superceded by this note (as Reprinted)
reset
Permalinkroutine
PermalinkroutineAdmonition
Permalinksource
PermalinkString describing the content's source(s)
sourceAndPage
PermalinkBook sources as list of SourceAndPage
sourcesWithFootnote
PermalinkGet 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.
stealth
PermalinkThe hazard's stealth, as a QuteHazardAttributes
tags
PermalinkCollected tags for inclusion in frontmatter
text
PermalinkFormatted text. For most templates, this is the bulk of the content.
traits
PermalinkCollection of traits (decorated links)
vaultPath
PermalinkPath to this note in the vault