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 .
×
May your rolls be chill this holiday season!
Create a free account

[5e Shaped] Token action to roll initiative with Advantage

Hey all!  This may already have been answered elsewhere, but I haven't been able to find it yet.  Is there a way to make the token action for rolling initiative roll two dice all of the time?  I have used roll templates for perception checks on the token action bar, but can't seem to make initiative react in the same way.  Below is the macro I have for rolling initiative... %{Scruffy|shaped_initiative} And here is the macro for rolling Perception with the standard roll template and two rolls... @{Scruffy|output_option} &{template:5e-shaped} {{ability=1}} {{character_name=@{Scruffy|character_name}}} @{Scruffy|show_character_name} {{title=Perception (^{WIS})}} @{Scruffy|roll_info} {{roll1=[[@{Scruffy|shaped_d20} + 4[proficient] + 1[wis]]]}} @{Scruffy|roll_setting} + 4[proficient] + 1[wis]]]}} @{Scruffy|hide_gm_info} @{Scruffy|attacher_skill} I'm still learning about macros/token actions, so I'm hoping someone can help me understand this a bit better. Thanks!
Here's an initiative macro that assumes advantage but still queries for disadvantage: @{initiative_output_option} &{template:5e-shaped} {{ability=1}} {{character_name=@{character_name}}} @{show_character_name} {{title=^{INITIATIVE}}} {{roll1=[[ ?{Disadvantaged|No, 2|Yes, 1}d20kh1 + @{initiative_to_tracker} + @{initiative_tie_breaker}]]}} @{roll_info} @{attacher_initiative}
Thanks for the macro, Silvyre!  This gets me a step closer and works at least for now.  Ideally, I would like it to report both die results (as all of my PCs sheets are set to always roll 2), so I may play with it a bit.  Thanks again for the help!
If you are adding the initiative the tracker, I don't believe that it will work with standard roll2 output.  The reason, how would the tracker know which of the rolls to take?  This is why the kh1 (keep highest one) and kl1 (keep lowest one) were used in the first place for initiative (if I remember correctly)
I played with it a bit last night, Kevin, and what you say rings true.  Thankfully, after talking with my players (especially the one affected by this), the macro that Silvyre gave me works like a charm for what we need.   Thanks all for your help!  I think I'm getting the hang of this macro stuff and it's really helped the flow of our games.  Man I love the Roll20 community!
1482422906

Edited 1482422928
Kryx
Pro
Sheet Author
API Scripter
Initiative has a setting to query for advantage each roll I believe. If not let me know and I'll add it. The sheet is designed to handle the vast majority of cases. For the most part you shouldn't need a custom macro.
1482425161

Edited 1482425770
Kryx said: Initiative has a setting to query for advantage each roll I believe. If not let me know and I'll add it. Can't see one (7.12.2). The settings do have a "roll options" dropdown (Normal|Advantage|Disadvantage), however. It would be nice if a "Roll Query" checkbox could be added (separate from the roll options) such that it could combine with the roll options to provide one of three unique Roll Queries. e.g. Normal + Query: ?{Roll|Normal, 1d20|Advantage, 2d20kh1|Disadvantage, 2d20kl1} Advantage + Query: ?{Disadvantaged|No, 2d20kh1|Yes, 1d20} Disadvantage + Query: ?{Advantaged|No, 2d20kl1|Yes, 1d20}
1482645802
Kryx
Pro
Sheet Author
API Scripter
7.12.2 has the "choose when rolling option" for initiative.
1482649224

Edited 1482649271
Looking at the HTML , there's a CHOOSE_WHEN_ROLLING option for the Output, but not for the Roll options. <select name="attr_initiative_output_option"><option value="@{output_option}" data-i18n="SHEET_OUTPUT" selected="selected"></option><option value="" data-i18n="PUBLIC_FOR_ALL"></option><option value="/w GM" data-i18n="WHISPERED_TO_GM"></option><option value="?{Output|Public,|Whisper,/w GM }" data-i18n="CHOOSE_WHEN_ROLLING"></option></select> <select name="attr_initiative_roll"><option value="@{shaped_d20}" data-i18n="NORMAL"></option><option value="2d20@{d20_mod}kh1" data-i18n="ADVANTAGE"></option><option value="2d20@{d20_mod}kl1" data-i18n="DISADVANTAGE"></option></select>
1482649608
Kryx
Pro
Sheet Author
API Scripter
Oh, right, sorry. Rolling with advantage cannot be done with a query in most cases as the sheet needs to process that change to properly show the adv/disadvantage bubble have have things like skills adjust appropriately. It could possibly be done for initiative, but I'd have to investigate. I just finished coding for the night, but if that's desired opening an issue on my  issue tracker is the best way for me to look at implementing it. It may be possible in this one case.
Kryx said: opening an issue on my  issue tracker is the best way for me to look at implementing it. Issue opened!