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

[Help][5e OGL] Initiative w/ Advantage Macros

Hey, I'm playing a revised ranger and looking for a way to consolidate rolling initiative w/ advantage. I found an  old thread with a macro, but I can't seem to make it work. I'm not that tech savvy. Every time I use it it just says the following: No attribute was found for @{selected|initiative_overall} No attribute was found for @{selected|classactioninitiative} SyntaxError: Expected "(", ".", "[", "abs(", "ceil(", "d", "floor(", "round(", "t", "{", [ |\t], [+|\-] or [0-9] but "s" found. If anyone knows of a macro that I could use, it would be super helpful. Thanks!
1476676580
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
First things first, which 5e character sheet are you using? Community contributed, OGL by Roll20, or the shaped?
The OGL I think
Welp, I figured it out on my own. The macro is as follows: /em rolls Initiative with Advantage /roll {2d20KH1} + @{selected|npcd_dex_mod} &{tracker} I put it as an abilities macro in the character sheet and made it a token action so the token has to be selected to use it. Having it ref the "npcd_dex_mod" means that it will automatically adjust your initiative if your DEX changes for whatever reason.
1479419571

Edited 1479419604
I'm also trying to figure this out, though I was hoping to change the formula in the sheet to have all ini rolls done with advantage. Also playing the UA_RevisedRanger.
Installing a Custom Sheet requires the Creator of your Game to possess an active Pro subscription. I recommend following's Ursa 's instruction and creating a custom Ability/Macro to handle initiative rolls for that character.
I was about to mention our game uses the Shaped character sheet. Ohh also it's converted from the OGL sheet if that makes a difference.  I tried altering the initiative_formula under 'Attributes and Abilities' but it either didn't work at all. Or and this is my favourite, it would roll ini as normal and then add that roll to a roll with advantage. In the end I gave up and made a macro using this code: /roll 2d20KH1 + 2[dex] &{tracker} this works but so far I've failed to make it use my own characters dex modifier. Do you know how I can fix this incase my dex goes up in the future?
Anders P. said: /roll 2d20KH1 + 2[dex] &{tracker} this works but so far I've failed to make it use my own characters dex modifier. Do you know how I can fix this incase my dex goes up in the future? Here's the Shaped sheet's documentation . The linked section lists the names of the Attributes relating to initiative.
1479430379

Edited 1479432456
Silvyre said: Anders P. said: /roll 2d20KH1 + 2[dex] &{tracker} this works but so far I've failed to make it use my own characters dex modifier. Do you know how I can fix this incase my dex goes up in the future? Here's the Shaped sheet's documentation . The linked section lists the names of the Attributes relating to initiative. *Edit* There is a far easier option for doing that in the Shaper character sheet. Go to settings (the cog) or the 'All' tab. Find the Initiative box. Change 'Roll Options' from *Normal' to *Advantage* Done. ---   I found the documentation very confusing and I suspect being imported from the OGL sheet has broken everything. Somehow I still managed to write a better macro: Rolls initiative /roll 2d20KH1 + @{Character Name|dexterity_mod} &{tracker} *Obviously use your own character name. If your character is called Benny hill type in Benny Hill The first line will let everyone in chat know what you're doing. You could use any message you'd want there as well as /me. The second line is where all the magic happens. It will roll 2d20 and keep the best result then add the dexterity modifier from your character with that name and add the resulting number to the initiative tracker/turn order. I simply named the macro ini and I checked the 'Show Token Action' box. Select token, press the ini button top left. Profit.
1482281095

Edited 1482284438
I've been looking for something similar for the 5e OGL sheet, but slightly more complicated: Querying for the roll type (normal, advantage, disadvantage), then automatically adding the proper result to the Turn Tracker. If I add &{tracker} to a fully functional queried roll, such as: @{wtype}&{template:npc} {{name=@{npc_name}}} {{rname=Initiative}} {{mod=@{npcd_dex_mod}}} {{r1=[[1d20+@{npcd_dex_mod} &{tracker}]]}} @{rtype}+@{npcd_dex_mod}]]}}, iIt only adds the 1st roll, as expected. If I put &{tracker} at the end, like: @{wtype}&{template:npc} {{name=@{npc_name}}} {{rname=Initiative}} {{mod=@{npcd_dex_mod}}} {{r1=[[1d20+@{npcd_dex_mod}]]}} @{rtype}+@{npcd_dex_mod} &{tracker}]]}}, it only adds the second roll. I can make 3 different macros (1 for normal, 1 for adv, 1 for disadv), but I feel like there's a solution out there to avoid macro bloating.  Maybe nesting macros? Edit: I actually got it to work in a relatively elegant fashion with stacking macros.  If anyone is interested I'll post them here.
1482295300

Edited 1482295396
Glad you came up with a solution, dmForLife . One common way to handle this is by using  Drop-Down Roll Queries , e.g. /r ?{Roll|Normal, 1d20|Advantage, 2d20kh1|Disadvantage, 2d20kl1} + @{npcd_dex_mod} &{tracker} or, if you always have advantage: /r ?{Disadvantaged|No, 2|Yes, 1}d20kh1 + @{npcd_dex_mod} &{tracker}