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

Need help making a macro!

I'm looking to see if there is a way to make a macro that performs the following: Open a box where the player has to select an item from a drop down menu Once an option is selected I want it to roll a d20 Then I want it to pull an attribute from a character sheet Then add that to the roll Then I want it to multiply the sum of those two values by 1.5 and output the number in chat. I also want it to perform a second d20 roll and if it crits I want it to roll a d100 and output that number in chat.
1448615369

Edited 1448615424
vÍnce
Pro
Sheet Author
Something like this may work.  What is the first prompt for?  Does it need to be applied to the roll?  The "if it's a crit..." part may only be possible using roll template logic, which is specific to a given sheet.  Using the roll helper "cs>" will highlight a crit and you can either ignore the 1d100 or not.  You could also use more prompts in the macro if needed.  ie the crit target number. &{template:default} {{name=Cool Macro}} {{Option== ?{Pick an option|1,1 |2,2 |3,3 } }} {{Roll== [[ (1d20+@{selected|foo})*1.5 ]] }} {{Crit Check== [[ 1d20cs>@{selected|crit_target} ]] }} {{If Crit== [[1d100]] }}
Ok, sweet. Basically I want it to do something like open a dropdown box that asks how many days a player has worked, once selected I want it to roll a number of dice and add a modifier, then add a modifier from a character sheet, then I want it to multiply that number by a set amount and output the final result.
1448645793
vÍnce
Pro
Sheet Author
Tyler said: Ok, sweet. Basically I want it to do something like open a dropdown box that asks how many days a player has worked, once selected I want it to roll a number of dice and add a modifier, then add a modifier from a character sheet, then I want it to multiply that number by a set amount and output the final result. So, the initial prompt determines which roll+modifier to perform?
1448646123

Edited 1448646214
vÍnce
Pro
Sheet Author
Something like this would use the info from the first prompt for the roll.  Although there are two prompts, you only need to make a selection for the first. &{template:default} {{name=Cool Macro}} {{Option== ?{Pick an option|1,1 |2,2 |3,3 } }} {{Roll== [[ (1d20+?{Pick an option|1,1 |2,2 |3,3 })*1.5 ]] }} {{Crit Check== [[ 1d20cs>@{selected|crit_target} ]] }} {{If Crit== [[1d100]] }} or to simplify if you don't need to post the prompt choice. &{template:default} {{name=Cool Macro}} {{Roll== [[ (1d20+?{Pick an option|1,1 |2,2 |3,3 })*1.5 ]] }} {{Crit Check== [[ 1d20cs>@{selected|crit_target} ]] }} {{If Crit== [[1d100]] }}