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 .
×

Show spell description when using the default 5e dmg rolltemplate

How can I get this "Spell Description" or something like this to appear when using the default (I think its also called OGL) 5e roll template for damage rolls? I couldn't find any source code for that roll template and the wiki also doesn't say anything about the template field for this, but the Compendium Spell "Healing Word" uses the same template and shows this button. How can I make that button appear when using '&{template:dmg}'? Another question: Is there any public access on what literally all the fields for the default 5e roll templates are?
1638458826

Edited 1638458922
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I don't think that part of the template is user-accessible, but I could be wrong. You can find official Roll Template documentation for the D&D 5th Edition by Roll20 Sheet here . Or here , on the wiki. The wiki is not official, but is updated more often and frequently has more thorough information.
1638470688

Edited 1638470754
Okay, I couldn't find anything on those pages. So its probably not user-accessible, what a bummer! But I could use an chat button inside the description field of the roll template instead. I already tried a bunch of things but how can I call an entry in the repeating section for features and traits using a button inside a roll template? Do I have to use the character name or 'selected' before the ~ or is there an alternative?
1638474678
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Can you describe exactly what you are trying to accomplish? It might help give clues for a more useful answer. Also, noting whether or not your game has access to the API might help as well.
Basically I am currently playing a fighter (as user in a non-pro session) and I want to have a button inside a roll template that shows the description of second wind when clicked.
FurtherV said: Basically I am currently playing a fighter (as user in a non-pro session) and I want to have a button inside a roll template that shows the description of second wind when clicked. If I'm understanding you correctly, you should be able to just use a macro with this: %{selected|repeating_traits_$0_output} You may need to change the '0' to a '1', '2', '3', etc. if Second Wind is not the first trait listed on your character sheet.
1638480554
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
To put a button into a roll template, the format is: [Second Wind](~selected|repeating_traits_$0_output) This can be placed into the description field of any attack. You will likely need to change the $0 as Jarren describes above. Here is an example:
keithcurtis said: To put a button into a roll template, the format is: [Second Wind](~selected|repeating_traits_$0_output) This can be placed into the description field of any attack. You will likely need to change the $0 as Jarren describes above. Ah yes I missed the part about it being a button inside an attack description. If you want to make it 'pretty', you can use this code: [Second Wind](~selected|repeating_traits_$0_output" style="background-color: transparent; padding: 0; color: #A0A0A0; border: 0; display: block; font-weight: bold; padding-left: 50px;) That will make it look fairly similar to how the normal links look; however you won't be able to make it turn red when highlighted.
1638493345
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
I had forgotten your clever formatting trick, since I use Stylus for my own game. The thing that we must remember is that every time you use the ability, someone at the table must sing, "Doooon't forget your second wind".
you could also do the same thing with the name of the ability, linking either to the character ability or the compendium entry.  wiki entry here  
Thanks a lot guys! With the formatting tip I got it working, almost like a replica :)