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 Community] Noob Macro Question

I have been reading though all the examples on creating macro's, I am just trying to create a simple macro that displays an eldrich blast with everthing calculated out and damage &{template:5eDefault} {{attach_roll=1}} {{title=Eldritch Blast}} {{subheader=Range | 80ft -320ft | Single Target}} {{ Attack1 = [[ 1d20 + 6 ]] | [[ 1d20+6 ]] }} {{ Damage1 = [[ 1d10 + 4 ]] }} This just shows the header and nothing more, I tried playing around with spacing and nothing change Attack to Attack1 to make sure there different from the second line. I also tried this  &{template:5eDefault} {{attach_roll=1}} {{title=Eldritch Blast}} {{subheader=Range | 80ft -320ft | Single Target}} {{rollname=Attack}} {{roll=[[ 1d20+6]]}} {{rolladv=[[ 1d20+6 ]]}}{{Damage=[[ 1d10 + 4]]}} {{CritDamage=[[ 2d10 + 4 ]]}} It only shows the Attack roll and nothing more.  What am I missing??
1477848057

Edited 1477848072
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Based on your templates, you are using one of the 5e sheets. I'm not sure which one, other than that it isn't the OGL, though. Which sheet are you using?
5th Edition (Community Contributed), but this isn't something related to a character sheet.  I am a player just creating my own marco's for me to use.  Its a buttom macro at the bottom of the screen on the button bar.  does that make a difference?
1477849947
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
The sheet matters because the roll template you are using is baked into the sheet, so any formatting that it does is dependent on the sheet. This is what is important for your question about displaying the header and the roll at the same time. Unfortunately, I don't know anything about the community contributed roll templates. I'll see if I can find anything and let you know if I figure something out. In the meantime, a good way to figure out how the sheet does what it does with roll templates is to trigger a roll of an ability that you like the formatting of, then focus on the chat input panel and push the up arrow key, it will populate with the last thing you sent to chat (in this case the ability from the sheet. You can learn quite a lot about how the template works by investigating them this way when the details are not easily available like they are for the pathfinder sheet or the 5e OGL sheet.
I thought the 5eDefault was a generic template that can be used outside the character sheet.  Thanks for clarifying!.  I did try the uparrow trick and I I can see the last macro sent.  I will look into that. Is there a generic template formating for 5e that isnt tied to a sheet?
I have been trying to use this as a guide <a href="https://app.roll20.net/forum/post/2101003/5e-templ" rel="nofollow">https://app.roll20.net/forum/post/2101003/5e-templ</a>...
Here is some more documentation: <a href="https://www.reddit.com/r/Roll20/comments/2zx7a1/dd_5e_roll_template/" rel="nofollow">https://www.reddit.com/r/Roll20/comments/2zx7a1/dd_5e_roll_template/</a> <a href="https://app.roll20.net/forum/post/1744887/dnd-5e-sheet-uoh-user-feedback-mini-update" rel="nofollow">https://app.roll20.net/forum/post/1744887/dnd-5e-sheet-uoh-user-feedback-mini-update</a> The 'mini update' thread crucially documents the {{outputall}} property.
I think I have something, I looked up the spell and a 5th level it creates two beams, so I looked up mutli-attack as well. Below is a single spell attack: &{template:5eDefault} {{attach_roll=1}} {{title=Eldritch Blast}} {{subheader=Range 120 ft}} {{attack=[[ 1d20+7]]}} {{attackadv=[[ 1d20+7 ]]}} {{damage=[[1d10 + 4]]}} {{attackcancrit=1}} {{critdamage=[[2d10+4]]}} Below is a multi spell attack: &{template:5eDefault} {{multiattack=1}} {{attach_roll=1}} {{title=Eldritch Blast}} {{subheader=Range 120 ft}} {{mattack1=[[ 1d20+7]]}} {{mattack1adv=[[ 1d20+7 ]]}} {{mdamage1=[[1d10 + 4]]}} {{mattackcancrit1=1}} {{mcritdamage1=[[2d10+4]]}} {{mattack2=[[ 1d20+7]]}} {{mattack2adv=[[ 1d20+7 ]]}} {{mdamage2=[[1d10 + 4]]}} {{mattackcancrit2=1}} {{mcritdamage2=[[2d10+4]]}}
Thanks everyone for you help!! &nbsp;
1477878525

Edited 1477878540
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Craig G. said: Is there a generic template formating for 5e that isnt tied to a sheet? The only sheet independent template is the default template. More info in the wiki:&nbsp; <a href="https://wiki.roll20.net/Roll_Templates" rel="nofollow">https://wiki.roll20.net/Roll_Templates</a>
Try replacing&nbsp;{{attach_roll=1}} with {{spell=1}} and the output will have a nice purple header like other spells. Also there is a {{subheaderright=...}} and a {{subheader2=...}} along with the {{subheaderright2=...}} so you can cram more info into the header.&nbsp; Happy Gaming!