Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[5e OGL] What variables contain spell name and other spell info?

June 12 (7 years ago)
I'm working on a spellbook macro for D&D 5e with the OGL character sheet and I want to pull info about spells to display with the macro but I can't seem to find any variables that reference spells directly.
June 12 (7 years ago)

Edited June 13 (7 years ago)
Here is a list of all of the suffixes for spells in the character sheet. Each one of these is an individual attribute of the spell and can be accessed with either the spell index ($X) or row id. (For example, repeating_spell-1-$0_spellname).

_spellathigherlevels
_spellattackid
_spellattackinfoflag
_spellattack
_spellcastingtime
_spellcomp
_spellcomp_v
_spellcomp_s
_spellcomp_m
_spellcomp_materials
_spellconcentrationflag
_spellconcentration
_spellcontent
_spell_damage_progression
_spelldamage
_spelldamagetype
_spelldescription
_spellduration
_spelllevel
_spellname_base
_spellname
_options-flag
_spelloutput
_prep
_spellrange
_rollcontent
_spellschool
June 13 (7 years ago)

Kyle G. said:

Here is a list of all of the suffixes for spells in the character sheet. Each one of these is an individual attribute of the spell and can be accessed with either the spell index ($X) or row id. (For example, repeating_spell-1-$0_spellname).

_spellathigherlevels
_spellattackid
_spellattackinfoflag
_spellattack
_spellcastingtime
_spellcomp
_spellcomp_v
_spellcomp_s
_spellcomp_m
_spellcomp_materials
_spellconcentrationflag
_spellconcentration
_spellcontent
_spell_damage_progression
_spelldamage
_spelldamagetype
_spelldescription
_spellduration
_spelllevel
_spellname_base
_spellname
_options-flag
_spelloutput
_prep
_spellrange
_rollcontent
_spellschool
spell index ($X) how do you use this?

June 13 (7 years ago)
Check out: Referencing Repeating Attributes
June 13 (7 years ago)
@{selected|repeating_spell-1-$0_spellname} or @{charactername|repeating_spell-2-$3_spelldescription}