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

Macro to choose multiple kinds of dice to roll together.

I am trying to come up with a macro for a slightly tweaked Greyhawk Initiative, the idea being that Initiative is rolled in different sets of dice depending on the actions taken. I want a macro that will allow me to roll multiple different kinds of dice to add up to a single number. For example: i want to move (1d6) and cast a spell(1d10); so I'd like a macro that goes "roll 1d?+1d?", it seems simple enough but i have had no luck, I've tried reverse engineering other macros to suit my needs but i am by no means a coder. Ultimately the goal is to have a token action that rolls the dice and then feeds it into the turn order (with dexterity of that character breaking ties). I would be eternally grateful for any assistance
Not sure if this is useful but this is what i've been trying so far.
1587111321

Edited 1587112268
Hi Connor, I'm not super familiar with that 5e variant, but I googled and think this should work from what I understand. Try this: &{template:default} {{name= Greyhawk}} {{Result= [[1d?{First action|Ranged attack,4|Move,6||Melee attack,8|Cast spell,10|Other,6} + 1d?{Second action|None,0|Ranged attack,4|Move,6|Melee attack,8|Cast spell,10|Other,6} + 0.@{selected|dexterity}]] }} &{tracker} It'll ask for your first action, and you select from the drop-down. That should apply the appropriate die. Then it will ask for your second action. If none, it won't roll a second die; otherwise, it should roll the appropriate die for the type of action. Dex score will be shown as a decimal after the main roll (like 9.13 or 3.16).
Persephone that is Amazing! I made a quick tweak that changes it to individual dice rolls rather than the dice rolls allocated to each action. (we use an optional rule where the damage die of a weapon attack or cantrip is the initiative die) &{template:default} {{name= Greyhawk}} {{Result= [[1d?{First action|D4,4|D6,6||D8,8|D10,10|D12,12} + 1d?{Second action|D4,4|D6,6||D8,8|D10,10|D12,12}  + 0.@{selected|dexterity}]] }} &{tracker:} I was wondering how i could add other rolls like 2d6 to the roll options?
I couldn't get it to load into the turn tracker but i did some fiddling and i've got it now. &{template:default} {{name=@{selected|token_name} ❖ Initiative}} {{Initiative=[[1d?{First action|D4,4|D6,6|D8,8|D10,10|D12,12}  + 1d?{Second action|D4,4|D6,6|D8,8|D10,10|D12,12}   + 0.@{selected|dexterity}&{tracker}]]}}
1587137604

Edited 1587137949
Oh right, my bad I put &{tracker} in the wrong spot. I added an option for no dice in the second part in case someone only does one action, but you can remove it if you're confident that won't happen. Since you only want the dice expressions, you can change it to this: &{template:default} {{name=@{selected|token_name} ❖ Initiative}} {{Initiative= [[?{First action|1D4|2D4|1D6|2D6|1D8|2D8|1D10|2D10|1D12|2D12} + ?{Second action|0[none]|1D4|2D4|1D6|2D6|1D8|2D8|1D10|2D10|1D12|2D12} + 0.@{selected|dexterity} &{tracker}]] }} Or to keep even more flexible, have it so you fill in the exact dice instead of picking from a drop-down: &{template:default} {{name=@{selected|token_name} ❖ Initiative}} {{Initiative= [[?{Dice for first action} + ?{Dice for second action (enter 0 for none)} + 0.@{selected|dexterity} &{tracker}]] }}