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

Shield-Master Macro with flavour text

1712340245

Edited 1712342861
I use the 5e by roll20 sheet. It would actually be sufficient to enter the bonus for the "Shield Master" feature in the global save modifiers. Then everything will be calculated correctly. But a little descriptive text and a picture would also be nice. So I wrote a macro and cheekily helped myself to other forum entries.. But somehow there's an error in it and I can't solve it. The result is always "2". I would be pleased to receive any hints. Here is what i tried: &amp;{template:npcaction} {{rname=Shieldmaster-Covering}} {{description=[image]( <a href="https://image.jpg" rel="nofollow">https://image.jpg</a> ) NameofCharacter desperately tries to evade the spell. He raises his shield. Will a [[2+@{selected|dexterity_save_roll}]] be enough to avoid the effects of the spell?}}
The problem is that @{selected|dexterity_save_roll} displays the results in a template, so you are trying to display a template inside another template.&nbsp; You need to break down the roll.&nbsp; Here is an example with the addition of a normal/advantage/disadvantage query: &nbsp;[[?{DEX Save:|Normal,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1}+@{dexterity_save_bonus}[Dex Save Bonus]+2[Shield AC Bonus]]]
1712345113

Edited 1712346636
Thanks Ryan. It is working as it should now. And to make it even more complicated, I w ould now have to add the global AC modifiers (e.g. bless and aura of protection). I think I'll just leave the shield master feat in the sheet with the global AC modifier and do without the flavour text.
‘dexterity_save_roll’ is the wrong attribute. That is the roll command for making the save. Replace it with ‘dexterity_save_bonus’ or ‘ dexterity_save_mod’ or ‘dexterity_save_prof’. I can’t remember which one is the correct one offhand.&nbsp;
Nordlicht said: Thanks Ryan. It is working as it should now. And to make it even more complicated, I w ould now have to add the global AC modifiers (e.g. bless and aura of protection). I think I'll just leave the shield master feat in the sheet with the global AC modifier and do without the flavour text. Sorry I forgot to add the global save mods.&nbsp; That's an easy addition: [[?{DEX Save:|Normal,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1}+@{dexterity_save_bonus}[Dex Save Bonus]+2[Shield AC Bonus]+@{global_save_mod}]]
I could have sworn I added "+@{global_save_mod}" to your macro yesterday, but it didn't work. So I tried other ways which didnt work either.&nbsp; Maybe I made a spelling mistake... Anyway, thank you very much!