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

I need help referencing a bless roll in a macro so it is just 1 roll with advantage, not a different d4 for each die.

I am playing in a heavily homebrewed D&D 5e game and ended up making some macro's for my attacks for two main reasons. One so that I dont have 10 different attacks in my attack section of the bar, I just have three token actions depending on which weapon I want to use. Secondly, my character switches between melee and range mid combat and has different bonus's depending on which attack style I am using. This makes keeping track of global modifiers annoying and a major hassle. Instead I use the reference for repeating resources to do a modified global modifier that only gets referenced in the macro's I need tit to be referenced in. The issue is when I have bless active it is rolling 1d4 for each die in a disadvantage or advantage roll. I want it to roll just one d4 and use the result in both. Or, calculate the modifier once and reference that modifier for the dice rolls. I will put the full macro below, then pare it down to just the relevant bits. @{wtype}&{template:atkdmg} {{mod=+[[[[?{Sharpeye?|No,0|Yes,1}*3]][Sharpeye]+@{repeating_resource_$11_resource_Left}d4cs5cf0[Bless]+[[2*@{repeating_resource_$11_resource_right}]][Ranging Potion]+2[Treasonous Ring]+1[Amulet of power]+@{strength_mod}[Strength]+@{pb}[PROF]+2[MAGIC]+1[rune arrow]+3[Armor]]] }} {{rname=Elderwood Longbow}} {{r1=[[1d20+[[?{Sharpeye?|No,0|Yes,1}*3]][Sharpeye]+@{repeating_resource_$11_resource_Left}d4cs5cf0[Bless]+[[2*@{repeating_resource_$11_resource_right}]][Ranging Potion]+2[Treasonous Ring]+1[Amulet of power]+@{strength_mod}[Strength]+@{pb}[PROF]+2[MAGIC]+1[rune arrow]+3[Armor]]]}} @{rtype}cs>20+[[?{Sharpeye?|No,0|Yes,1}*3]][Sharpeye]+@{repeating_resource_$11_resource_Left}d4cs5cf0[Bless]+[[2*@{repeating_resource_$11_resource_right}]][Ranging Potion]+2[Treasonous Ring]+1[Amulet of power]+@{strength_mod}[Strength]+@{pb}[PROF]+2[MAGIC]+1[rune arrow]+3[Armor]]]}} {{r2=[[1d20+[[?{Sharpeye?|No,0|Yes,1}*3]][Sharpeye]+@{repeating_resource_$11_resource_Left}d4cs5cf0[Bless]+[[2*@{repeating_resource_$11_resource_right}]][Ranging Potion]+2[Treasonous Ring]+1[Amulet of power]+@{strength_mod}[Strength]+@{pb}[PROF]+2[MAGIC]+1[rune arrow]+3[Armor]]]}} {{attack=1}} {{range=80/320 ft}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8+@{strength_mod}+1d8[Treasonous Ring]+3[Armor]+2[Ava's Attractor]+1[Amulet of power]+2[magic]+1[Rune arrow]+@{repeating_resource_$11_resource_Right}d6[Ranging Potion]+?{Sharpeye?|No,0|Yes,1}d4[Sharpeye]+[[@{wisdom_mod}*@{repeating_resource_$10_resource_right}]][Marked]]]}} {{dmg1type=Piercing}} {{dmg2flag=1}} {{dmg2=[[2d6[Elder Longbow]]]}} {{dmg2type=Force}} {{crit1=[[1d8+1d8[Treasonous Ring]+?{Sharpeye?|No,0|Yes,1}*1d4[Sharpeye]+1d6*@{repeating_resource_$11_resource_Right}[Ranging Potion]]]}} {{crit2=[[2d6]]}}  {{desc=non-Magical Recovery [[1d4cs3cs2cs1cf4]] (1-3 recovers) Magical Recovery [[1d10cf>5cs<4]] (1-4 recovers)}} {{charname=Asger}} Pared down macro @{wtype}&{template:atkdmg} {{mod=+[[@{repeating_resource_$11_resource_Left}d4cs5cf0[Bless]+@{strength_mod}[Strength]+@{pb}[PROF]+2[MAGIC]]] }} {{rname=Elderwood Longbow}} {{r1=[[1d20+[[@{repeating_resource_$11_resource_Left}d4cs5cf0[Bless]+@{strength_mod}[Strength]+@{pb}[PROF]+2[MAGIC]]]}} @{rtype}cs>20+@{repeating_resource_$11_resource_Left}d4cs5cf0[Bless]+@{strength_mod}[Strength]+@{pb}[PROF]+2[MAGIC]]]}} {{r2=[[1d20+@{repeating_resource_$11_resource_Left}d4cs5cf0[Bless]+@{strength_mod}[Strength]+@{pb}[PROF]+2[MAGIC]]]}} {{attack=1}} {{range=80/320 ft}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8+@{strength_mod}]]}} {{dmg1type=Piercing}} {{dmg2flag=1}} {{dmg2=[[2d6[Elder Longbow]]]}} {{dmg2type=Force}} {{crit1=[[1d8]]}} {{crit2=[[2d6]]}} {{charname=Asger}} Is there a way to reference the first bless roll in the other rolls? My friend that taught me most of what I know about roll20 Macro's said I could use $[[0]] to reference previous rolls however no matter where I try inserting that breaks the macro.
1662508748

Edited 1662509200
Gauss
Forum Champion
Short version, I don't believe you can have Bless roll once per attack just using the template macro. You may be able to do it with the API though, I'd check with the API folks. Personally, I just ignore it since the d20 is what is determining which roll you are using, not the bless.  Edit: You *could* move the advantage roll inside the first d20 roll, but then the macro would permanently roll advantage. It may be possible to put a query in there asking you for advantage or not. I'd have to play with it to try it.  As for the global modifiers, you can turn them into a yes/no query via (using bless as an example): ?{Use Bless?|No,0|Yes,1}*1d4 But that means for every global modifier you now have a query. Alternately, you can select query 'groups' via a single drop down query.  ?{select Global Modifier to attack bonus|Bless,1d4|Great Weapon Master,(-5)|Bless and GWM,(1d4-5)}