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

Macros in "Attacks &Spellcasting" section?

1599921330

Edited 1599921441
It seems like this should be an easy fix, but I cannot for the life of me find an answer. I'm trying to add queries for my paladin's Divine Smite and I've found an appropriate macro that works and achieves what I want it to do, but ONLY as a macro button. I'm trying to replace the default "Divine Smite (2d8)" and "Divine Smite (3d8)" with a Divine Smite that will post queries for spell level, undead/fiend, and crit.  As I said, I have the correct macro for the divine smite, but I don't know WHERE to put the macro so that it is triggered by clicking on the text on the character sheet.  It feels like I could find the answer with some more searching but I think my vocabulary isn't meshing with the search engines and I've spent too much time on this minor thing already. Please help me before I lose any more hair over this. 5e OGL character sheet.  Here's the macro in case it's the problem: @{selected|character_name}&{template:dmg} {{rname=Divine Smite}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[[[(?{Spellslot|Level 1,2|Level 2,3|Level 3,4|Level 4,5|Level 5,6} + ?{Undead/Fiend|No,0|Yes,1})*?{Crit|No,1|Yes,2}]]d8]]}} {{dmg1type=Radiant}}&{template:dmg} {{rname=Divine Smite}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[[[(?{Spellslot|Level 1,2|Level 2,3|Level 3,4|Level 4,5|Level 5,6} + ?{Undead/Fiend|No,0|Yes,1})*?{Crit|No,1|Yes,2}]]d8]]}} {{dmg1type=Radiant}}
Here's a good solution: Go to the Attributes and Abilities tab on the sheet (at the top of the sheet, not a page of the 5E sheet). Create a new Ability on the right name it Divine-Smite. Paste in your macro, change "selected" to your character's name (full name as it appears on the sheet), save it (the check mark button). Test it to make sure it works. Then open up a melee weapon attack on your sheet. In the description box add the following: [Divine Smite](~<character name>|Divine-Smite) Then, make an attack with that weapon. You should then be able to click on the words Divine Smite in the chat window to make it run your macro. Then just copy and paste the above to the description sections of all of your other melee weapon attacks on your sheet.
Thank you so much. It works! Slightly related, if you create a macro for an attack or a spell, is it possible to add that macro to the attack list? Or is the workaround you provided the best option? Aside from making the macro a token action or something similar.
A token action button or chat menu is how I handle accessing macros. Sometimes instead of a whole macro what you want can be executed by putting queries into your damage calculations directly in the "Attacks and Spellcasting" section.
1599927673
Oosh
Sheet Author
API Scripter
The second part of this post goes into a bit of what you're asking. You can use some hacky/clunky workarounds in the Attacks & Spellcasting repeating section to recreate most of a custom macro in one of those fields - it does require a bit of knowledge of the base template, and how the sheet assembles the macros, to get what you need out of it. Dakota's solution is generally the better option - putting a button link somewhere on the standard output will allow you to link a full custom macro and build it however you want. But the option for extensive modifying of the sheet buttons is there if you like getting your hands dirty, or have a full macro bar, or prefer just clicking on the sheet.
That is a wonderful resource. Thank you Oosh.