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 with macros

Hey guy's i'm having an issue with my macros, I am attempting to create a macro were I roll 1d20 have it prompt me for a modifier and the compare the result against bar 2 of a seleacted token? This is what i have so far /r 1d20 +?{Modifier|0|>@selected|bar2} but all i get is (the roll result) + (the modifier i indicated) > (the bar value) It detected the value indicated in bar2 but isn't comparing the result... Please help Regards, Grimleyblack
1386133814
Gauss
Forum Champion
It looks like you are missing the closing bracket for the Query and the starting bracket for the @selected.
1386134454
Sam
Pro
Sheet Author
Grimley , just in case you didn't understand what Gauss meant. What you have is this: /r 1d20 +?{Modifier|0|>@selected|bar2} What you need is this /r 1d20 +?{Modifier|0 } >@ { selected|bar2}
Ok so /r 1d20 +?{Modifier|0 } >@ { selected|bar2} will roll a d20, ask me for a mod, apply selected mod against the value in bar2, and then tell me if its a success?
1386151109
Gauss
Forum Champion
Sorry I didn't catch it earlier, you need to add brackets around the 1d20+?{Modifier|0} like so: /roll {1d20+?{Modifier|0}}>@{selected|bar2}
1386179921
Sam
Pro
Sheet Author
Ah good catch Gauss, I totally missed that as well.