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

Trying to make Token Ability for an attack dealing 4 different dice for 4 different damage types?

1657861210

Edited 1657861273
I've got a Monk/Cleric/Druid in my game that is currently using an AutoHotKey script to roll for his big attack: 1d8+3(Bludgeoning)(Shillelagh) +1d6 (Poison)(Spider Staff) +1d4 (Radiant)(Divine Favor) +1d6 (Necrotic)(Symbiotic Entity) He's got his own 3 macros in AHK for Shillelagh and Poison, Shillelagh+Poison+Necrotic, and Shellelagh+Poison+Necrotic+Radiant As DM, it's hard for me to parse when he's just rolling one big fat roll and I'd like to make it match the rest of the rolls coming out of Beyond20 if we could, using the DND5e roll template. I've got this so far, but I don't know if the rest is possible or if I'm going about this entirely the wrong way. Also if there's a way to edit this and autoconvert the HTML codes for the brackets to and from, that would be swell. &{template:atk} {{charname=Riss}} {{rname=[Shillelagh](! &{template:dmg} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8+3]]}} {{dmg1type=Bludgeoning}} {{dmg2flag=1}} {{dmg2=[[1d6]]}} {{dmg2type=Poison}} {{charname=Riss}} {{rname=Shillelagh}})}} {{mod=+5}} {{r1=[[1d20 +5]]}} {{attack=1}} {{range=Touch}} {{desc=Components: V, S, M(mistletoe, a shamrock leaf, and a club or quarterstaff)}} {{rnamec=[Shillelagh](! &{template:dmg} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8+3]]}} {{dmg1type=Bludgeoning}} {{dmg2flag=1}} {{dmg2=[[1d6]]}} {{dmg2type=Poison}} {{crit1=Crit: [[1d8]]}} {{charname=Riss}} {{rname=Shillelagh}} {{crit=1}})}} {{normal=1}} If there's a better way to do this, or if I'm being stupid hoping for something so edge case to work right, let me know.
Hiya, would this approach for Booming Blade and Green Flame Blade help?&nbsp; <a href="https://app.roll20.net/forum/post/8751112/how-to-write-a-booming-blade-macro" rel="nofollow">https://app.roll20.net/forum/post/8751112/how-to-write-a-booming-blade-macro</a>
1657899882

Edited 1657899986
Simon G. said: Hiya, would this approach for Booming Blade and Green Flame Blade help?&nbsp; <a href="https://app.roll20.net/forum/post/8751112/how-to-write-a-booming-blade-macro" rel="nofollow">https://app.roll20.net/forum/post/8751112/how-to-write-a-booming-blade-macro</a> I don't think so, but I could be reading it wrong. My problem is that there's so many attack dice and damage types. I love the idea of a query to check what's active, but because the end result could be four dice of different damage types, I don't think that method works, though if it was just two types I think it'd be fine. Looking at the template, I've just tried to get the damage roll (below) to pop up twice with different data, but it doesn't seem like the template will allow it. This is my current try, posting both encoded for readability and decoded for my actual script, but as you can see below it's result is somewhat gibberish. &amp;{template:atk} {{charname=Riss}} {{rname=[Shillelagh](! &amp;{template:dmg} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8+3]]}} {{dmg1type=Bludgeoning}} {{dmg2flag=1}} {{dmg2=[[1d6]]}} {{dmg2type=Poison}} {{charname=Riss}} {{rname=Shillelagh}})(! &amp;{template:dmg} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d6]]}} {{dmg1type=Necrotic}} {{dmg2flag=1}} {{dmg2=[[1d4]]}} {{dmg2type=Radiant}} {{charname=Riss}} {{rname=Shillelagh}})}} {{mod=+5}} {{r1=[[1d20 +5]]}} {{attack=1}} {{range=Touch}} {{desc=Components: V, S, M(mistletoe, a shamrock leaf, and a club or quarterstaff)}} {{rnamec=[Shillelagh](! &amp;{template:dmg} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8+3]]}} {{dmg1type=Bludgeoning}} {{dmg2flag=1}} {{dmg2=[[1d6]]}} {{dmg2type=Poison}} {{crit1=Crit: [[1d8]]}} {{charname=Riss}} {{rname=Shillelagh}} {{crit=1}})(! &amp;{template:dmg} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d86]]}} {{dmg1type=Necrotic}} {{dmg2flag=1}} {{dmg2=[[1d4]]}} {{dmg2type=Radiant}} {{charname=Riss}} {{rname=Shillelagh}})}} {{normal=1}} &amp;{template:atk} {{charname=Riss}} {{rname=[Shillelagh](! &amp;#38;&amp;#123;template:dmg&amp;#125; &amp;#123;&amp;#123;damage=1&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg1flag=1&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg1=&amp;#91;&amp;#91;1d8+3&amp;#93;&amp;#93;&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg1type=Bludgeoning&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg2flag=1&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg2=&amp;#91;&amp;#91;1d6&amp;#93;&amp;#93;&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg2type=Poison&amp;#125;&amp;#125; &amp;#123;&amp;#123;charname=Riss&amp;#125;&amp;#125; &amp;#123;&amp;#123;rname=Shillelagh&amp;#125;&amp;#125;)(! &amp;#38;&amp;#123;template:dmg&amp;#125; &amp;#123;&amp;#123;damage=1&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg1flag=1&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg1=&amp;#91;&amp;#91;1d6&amp;#93;&amp;#93;&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg1type=Necrotic&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg2flag=1&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg2=&amp;#91;&amp;#91;1d4&amp;#93;&amp;#93;&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg2type=Radiant&amp;#125;&amp;#125; &amp;#123;&amp;#123;charname=Riss&amp;#125;&amp;#125; &amp;#123;&amp;#123;rname=Shillelagh&amp;#125;&amp;#125;)}} {{mod=+5}} {{r1=[[1d20 +5]]}} {{attack=1}} {{range=Touch}} {{desc=Components: V, S, M(mistletoe, a shamrock leaf, and a club or quarterstaff)}} {{rnamec=[Shillelagh](! &amp;#38;&amp;#123;template:dmg&amp;#125; &amp;#123;&amp;#123;damage=1&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg1flag=1&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg1=&amp;#91;&amp;#91;1d8+3&amp;#93;&amp;#93;&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg1type=Bludgeoning&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg2flag=1&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg2=&amp;#91;&amp;#91;1d6&amp;#93;&amp;#93;&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg2type=Poison&amp;#125;&amp;#125; &amp;#123;&amp;#123;crit1=Crit: &amp;#91;&amp;#91;1d8&amp;#93;&amp;#93;&amp;#125;&amp;#125; &amp;#123;&amp;#123;charname=Riss&amp;#125;&amp;#125; &amp;#123;&amp;#123;rname=Shillelagh&amp;#125;&amp;#125; &amp;#123;&amp;#123;crit=1&amp;#125;&amp;#125;)(! &amp;#38;&amp;#123;template:dmg&amp;#125; &amp;#123;&amp;#123;damage=1&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg1flag=1&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg1=&amp;#91;&amp;#91;1d86&amp;#93;&amp;#93;&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg1type=Necrotic&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg2flag=1&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg2=&amp;#91;&amp;#91;1d4&amp;#93;&amp;#93;&amp;#125;&amp;#125; &amp;#123;&amp;#123;dmg2type=Radiant&amp;#125;&amp;#125; &amp;#123;&amp;#123;charname=Riss&amp;#125;&amp;#125; &amp;#123;&amp;#123;rname=Shillelagh&amp;#125;&amp;#125;)}} {{normal=1}}
Personally I'm not using Beyond, so I can't help you with how to do it thru that. But, there's a rather easy way to handle those in Roll20: Start by making an attack named something like "Spider Staff {Shillelagh}". Set the attack/damage bonus to Wisdom for it. Primary DMG 1D8 Bludgeoning. Secondary DMG as 1D6 Poison. Then I would add two "Global Damage Modifier" entry. One "Divine Favor" for 1D4 Radiant and another "Symbiotic Entity" for 1D6 Necrotic. That way the bonus DMG from spells/features can be toggled on and off as needed, while the poison DMG from the staff always getting rolled for that particular attack. I'd also make an attack without Shillellagh for the staff, for when the spell wears off.
1657931917

Edited 1657932070
That works I suppose, and I appreciate the response. After doing a bit of digging, I found that Beyond20 sends a roll with multiple rolls in the d2 field, and tweaking that a bit I came up with this: I'm also going to add another roll to the d1 field to give it a non-shillelagh roll as well, but I think this is what I'll have him use going forward. But to improve on it, I'm thinking I'd like to be able to use a query to toggle on the different extra rolls. I have no idea if that's doable.
1658004141

Edited 1658054377
Hi Kyle, just for giggles I had a play with a spider staff on a character and the roll looks like this With a crit it does the doubles for main damage and poison, which you can hover over to check what was rolled, but the description bit requires you to make additional rolls, so not ideal for you as all 4 types benefit from a crit. It'd be more useful for additional stuff that doesn't get crit dice, though you can also hover over the numbers to see how they were generated. Alternatively just paste some "additional crit damage would be" text so it looks like this Damn I rolled a lot of 1's there!
1658067945

Edited 1658068145
Simon G. said: Hi Kyle, just for giggles I had a play with a spider staff on a character and the roll looks like this With a crit it does the doubles for main damage and poison, which you can hover over to check what was rolled, but the description bit requires you to make additional rolls, so not ideal for you as all 4 types benefit from a crit. It'd be more useful for additional stuff that doesn't get crit dice, though you can also hover over the numbers to see how they were generated. Alternatively just paste some "additional crit damage would be" text so it looks like this Damn I rolled a lot of 1's there! Oh that's really interesting. I never thought about rolling in the description. Is there any chance you can post the macro for one of these? I'd like to add it to my macros as an example.
1658069930

Edited 1658072786
Hi Kyle All I did was drop a Spider Staff on to a test character, opened up the weapon in the attacks section front and centre of the character sheet and popped those bits of waffle in as descriptive text with the inline rolls dropped in at points in the text as [[1d6]] or [[1d4]] as appropriate.&nbsp; The macro to pop that on the attributes tab would be: @{selected|wtype}&amp;{template:atkdmg} {{mod=+[[@{selected|wisdom_mod}[WIS] + @{selected|PB}[PROF]]]}} {{rname=Spider Staff w/Shillelagh}} {{r1=[[@{selected|d20}cs&gt;20 + @{selected|wisdom_mod}[WIS] + @{selected|PB}[PROF]]]}} @{selected|rtype}cs&gt;20 + @{selected|wisdom_mod}[WIS] + @{selected|PB}[PROF]]]}} {{attack=1}} {{range=5ft}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8 + @{selected|wisdom_mod}[WIS]]]}} {{dmg1type=Bludgeoning}} {{dmg2flag=1}} {{dmg2=[[1d6]]}} {{dmg2type=Poison}} {{crit1=[[1d8[CRIT]]]}} {{crit2=[[1d6[CRIT]]]}}&nbsp; {{desc=Your staff weakens your enemy as they take an additional [[1d6]] necrotic damage and [[1d4]] damage from Divine Favour.&nbsp; On a critical hit those increase by [[1d6]] necrotic and [[1d4]] Divine Favour}}{{@{selected|charname_output}}} I am a long way from competent with macros, I just take bits that work and Frankenstein them together, but I love how squiggles on a page make beautiful things happen, so I keep on trying. Someone else might tidy that up a bit.&nbsp; Here's how it looks, though now it'll stick the character name in under the weapon name too
I just tried and you can put a formula and text in the type field. So for example in dmg2 put 1d6 poison, and in type2 you can put [[1d6]] nec [[1d4]] whatever [[1d8]] another, and it still shows the results of the roll on hover
If I interpreted that right, the inline rolls and text are going in the dmg2type= field?&nbsp; I got it to work, but it still didn't auto roll for crits, but I then amended the macro, putting the various inline rolls in the dmg2 field and also the crit2 field and got this (rolled a crit first time too!) Hovering over the 9 gives that breakdown, so you can check every roll and see where it came from, I amended the middle blurb for flavour, or you can stick a rollable table in there for random weapon blow descriptions (I do for when my DM brain can't think what body parts even exist). The macro is now @{selected|wtype}&amp;{template:atkdmg} {{mod=+[[@{selected|wisdom_mod}[WIS] + @{selected|PB}[PROF]]]}} {{rname=Spider Staff w/Shillelagh}} {{r1=[[@{selected|d20}cs&gt;20 + @{selected|wisdom_mod}[WIS] + @{selected|PB}[PROF]]]}} @{selected|rtype}cs&gt;20 + @{selected|wisdom_mod}[WIS] + @{selected|PB}[PROF]]]}} {{attack=1}} {{range=5ft}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8 + @{selected|wisdom_mod}[WIS]]]}} {{dmg1type=Bludgeoning}} {{dmg2flag=1}} {{dmg2=[[1d6]] + [[1d4]] + [[1d6]] }} {{dmg2type=Poison, Radiant and Necrotic}} {{crit1=[[1d8[CRIT]]]}} {{crit2=[[1d6[CRIT] +1d4[CRIT] + 1d6[CRIT]]]}}&nbsp; {{desc=Your staff weakens your enemy as they take&nbsp; additional poison, radiant and necrotic damage}}{{@{selected|charname_output}}} Hope that helps in some way :)