So I have this pretty awesome spellbook macro for my bard player credit to Scott C. and Michael M. in this thread near the bottom. It pops up a chat window that links to the casting of his spells. This works perfectly for the bard, and would work fine for a sorcerer, or warlock. The problematic part is for the characters who prepare spells.
I want to replicate this for the druid and paladin players in my group but add some functionality so that they can see what spells are prepared through @{repeating_spell-1_$0_spellprepared} and in the case of the druid, if it is a ritual he can cast through the attribute @{repeating_spell-1_$0_spellritual}
So the first problem I have run into is that spellprepared returns a 1 or a 0. Is there a way I can take that input in the macro and output something based on it? I know you can do a roll query for a prompt but as far as I've found there isn't any other kind of conditionals with macros. Is there another way I can "tag" the spells based on the output of this attribute?
I have less of a problem with the ritual variable because it outputs Yes or No. At the worst, I can try and format the output of the spellbook like a table and just let it spit out yes or no for the ritual. Ideally, though, like the spellprepared I would like to output something specific as a result of the value in spellritual.
Here is a snippet of my macro code:
@{wtype}&{template:atk} {{desc=**Cantrips**
[@{repeating_spell-cantrip_$0_spellname}](~charname|repeating_spell-cantrip_$0_spell)
**First Level**
[@{repeating_spell-1_$0_spellname}](~charname|repeating_spell-1_$0_spell)
**2nd Level**
[@{repeating_spell-2_$0_spellname}](~charname|repeating_spell-2_$0_spell)
}}
I want to replicate this for the druid and paladin players in my group but add some functionality so that they can see what spells are prepared through @{repeating_spell-1_$0_spellprepared} and in the case of the druid, if it is a ritual he can cast through the attribute @{repeating_spell-1_$0_spellritual}
So the first problem I have run into is that spellprepared returns a 1 or a 0. Is there a way I can take that input in the macro and output something based on it? I know you can do a roll query for a prompt but as far as I've found there isn't any other kind of conditionals with macros. Is there another way I can "tag" the spells based on the output of this attribute?
I have less of a problem with the ritual variable because it outputs Yes or No. At the worst, I can try and format the output of the spellbook like a table and just let it spit out yes or no for the ritual. Ideally, though, like the spellprepared I would like to output something specific as a result of the value in spellritual.
Here is a snippet of my macro code:
@{wtype}&{template:atk} {{desc=**Cantrips**
[@{repeating_spell-cantrip_$0_spellname}](~charname|repeating_spell-cantrip_$0_spell)
**First Level**
[@{repeating_spell-1_$0_spellname}](~charname|repeating_spell-1_$0_spell)
**2nd Level**
[@{repeating_spell-2_$0_spellname}](~charname|repeating_spell-2_$0_spell)
}}
