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

Chat Buttons - Output description (roll20 5e)

1585758780

Edited 1585759163
Hey all! This community is awesome!!  Now for my next problem. I have my ability command buttons working but for spells that do not require a roll it does not output the description. Is this something that I am going to need to insert myself into the macro via casting from sheet and using the up arrow to get the defined details?  /w @{selected|character_name} &{template:npcaction}{{rname=@{Selected|character_name}}}  {{name=Cantrip Select}} {{description= [@{selected|repeating_spell-cantrip_$0_spellname}](!~selected|repeating_spell-cantrip_$0_spell}) [@{selected|repeating_spell-cantrip_$1_spellname}](~selected|repeating_spell-cantrip_$1_spell})}} This is the current macro, for the first cantrip (0) the player would be casting "dancing lights" at the moment nothing happens when clicking it in the chat window. I assume because this is only searching for executable rolls?  Any clarification would be awesome. Thanks!!!! Edit: I would really like to add descriptions to output for pretty much all spells as I have a few new players starting with me on this campaign.
1585761135
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
First off, there are some syntax errors in your macro, try this: /w @{selected|character_name} &{template:npcaction}{{rname=@{Selected|character_name}}}  {{name=Cantrip Select}} {{description=[@{selected|repeating_spell-cantrip_$0_spellname}](~selected|repeating_spell-cantrip_$0_spell) [@{selected|repeating_spell-cantrip_$1_spellname}](~selected|repeating_spell-cantrip_$1_spell)}} You don't need "!" when using an Ability in a control button, nor does an ability call (when used like this) need curly braces. Secondly, the toggle to include the spell description when cast is an option on each spell. It needs to be done by editing the character sheet's spell list.