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

Probably Easy Macro question dealing with prompts and ( )

I'm doing a shadowrun campaign.  I'd like to simplify the dice rolls as much as possible.  shooting with pistols looks like this. Modifiers + @{Agility}[Agil]  + @{Pistols}[PistolSkill]  = # of D6 dice rolled. How do I get it to add all those first and then take THAT times d6.  I tried Parentheses like algebra.  :) The equation should equal (Modifiers + @agility + @pistols)d6>5 I also played with the prompting to get my modifiers number and that seems to work ok but if someone can write the whole thing then all the better lol.  Thanks all.
1378357888

Edited 1378358024
Gauss
Forum Champion
You will need to partially use inline rolls. Here is how you want to do it: /r [[@{Agility}[Agil]&nbsp; + @{Pistols}[PistolSkill]+?{Modifiers|0}]]d6&gt;5 [[ ]] are inline rolls ?{query name|query default value} is a query prompt. <a href="https://wiki.roll20.net/Dice_Reference#Inline_Dice_Rolls" rel="nofollow">https://wiki.roll20.net/Dice_Reference#Inline_Dice_Rolls</a> - Gauss
Awesome Gauss many thanks I will give that a try!
Gauss when you have some time (heh heh) could you see if that macro gives you a result?&nbsp; Even if I create @{Agility} and @{Pistols} first so that it actually hyperlinks them not just ttext it still doesn't do anything other than prompt for modifiers.&nbsp; Doesn't even spit out garbage text.&nbsp; I tried editing spacing etc but I've still gotten something wrong.&nbsp; I'm going to use the inlines to just do some simple math rolls to be sure I have my understanding down correctly and thanks again for the help!
Aha I got this one to work with double brackets, I'll try adjusting the other as well. /roll [[@{Spellcasting}+@{Magic}]]d6&gt;5
Got it!&nbsp; I took out my descriptions and just wrote a word version of the macro up above and then left just the math and attributes in the macro.&nbsp; Going to work AWESOME.&nbsp; Thanks again Gauss!
1378438184

Edited 1378438253
Gauss
Forum Champion
I see the problem. The descriptions don't work if there is not a dice roll inside the inline. If you want to leave the descriptions in change your roll to: /r [[@{Agility}[Agil]&nbsp; +@{Pistols}[PistolSkill] +?{Modifiers|0} +0d1]]d6&gt;5 That should work.&nbsp; - Gauss