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

Broken Macro OGL 5e

1612123703

Edited 1612123957
I've been trying to get this to work, it's a macro to combine the extra 1d4 a mark of hospitality halfling gets, the extra +5 a Paladin of Redemption gets, and the Silver Tongue feature of a Bard of Eloquence which means a roll of 9 or lower is treated as a 10. So far I have: @{wtype}&{template:atkdmg} {{mod=+@{persuasion_bonus}}} {{rname=Persuasion}} {{r1[[@{{1d20,10}kh}cs>20+@{persuasion_bonus}[Skill Bonus]]]}} @{Garett Wiseacre|rtype}cs>20 +@{persuasion_bonus}[Skill Bonus]]]}} {{attack=1}} {{range=}} {{damage=1}} {{dmg1flag=1}} {{dmg1=+[[1d4+5[Silver Emissary]]] (Silver Emissary)}} {{damage=1}} {{desc=}} {{globalattack=@{global_skill_mod}}} But it's returning: No attribute was found for @{Garett Wiseacre|{1d20,10} SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-] or [0-9] but "G" found. I think the bit breaking it is: @{{1d20,10}kh}cs>20 but I'm not sure what is wrong.
A few things are wrong with this. 1- You're using the wrong template. 2- You're leaving out a few necessary symbols here and there. You also have extraneous bits you don't need (like CS>20 since that's the default). @{wtype} &{template:simple} {{rname=Persuasion}} {{mod=+[[@{persuasion_bonus}]]}} {{r1=[[{1d20,{10}}kh1+@{persuasion_bonus}]]}} @{rtype}+@{persuasion_bonus}]]}} {{global=[[1d4+5[Silver Emissary]+@{global_skill_mod}]]}}
Thanks, that works perfectly! I'm still fairly new to writing macros so I've been using other snippets of code, apparently I need more practice.
Keep at it. One day you'll be showing a newbie how to fix something they got wrong.
Will do, thanks. I think I'm going to go look at different templates for now!
Gareth said: Will do, thanks. I think I'm going to go look at different templates for now! Keep in mind that each Character Sheet has different built-in roll templates. Here's the Wiki for the D&amp;D 5E by Roll20 character sheet:&nbsp; <a href="https://wiki.roll20.net/D%26D_5e_by_Roll20_Roll_Templates" rel="nofollow">https://wiki.roll20.net/D%26D_5e_by_Roll20_Roll_Templates</a> . Good luck!
Jarren K. said: Gareth said: Will do, thanks. I think I'm going to go look at different templates for now! Keep in mind that each Character Sheet has different built-in roll templates. Here's the Wiki for the D&amp;D 5E by Roll20 character sheet:&nbsp; <a href="https://wiki.roll20.net/D%26D_5e_by_Roll20_Roll_Templates" rel="nofollow">https://wiki.roll20.net/D%26D_5e_by_Roll20_Roll_Templates</a> . Good luck! I just had a quick read and that's really helpful, thank you!