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 .
×
Our team is currently investigating rolling service outages. For more information, visit our most recent Forum Announcements post.
Create a free account

Big Pathfinder Skill Check Macro

So I'm pretty new to the macro process on Roll20.  I understand how to make a dropdown menu to set a conditional for a roll, such as a ranged attack, checking to see whether it's within 30 feet for Point Blank Shot, ie [[1d20+5 + ?{PBS:|Yes,2|No,0} ]].  But what I was wondering is if it's possible to make a big macro that allows me to select a skill to check for, then if I pick, say Bluff, it asks me if I'm bluffing a favored enemy.  My first attempt looked like this: [[1d20 + ?{Pick a Skill:|Acrobatics,3|Appraise,0|Bluff,-1, + ?{Goblin?:|Yes,2|No,0}|Climb,5} ]] Which didn't work, obviously.  Is there any way for me to create a branching macro like that, or is that not feasible?
1498170203
vÍnce
Pro
Sheet Author
This shouldn't be a problem, but you'll need to make some html special character substitutions to prevent your macro from failing/ending early. More info in wiki:   Advanced Usage for Roll Queries
still don`t know how to make a macro
1498228580
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Your example macro above would look like this: [[1d20 + ?{Pick a Skill:|Acrobatics,3|Appraise,0|Bluff,-1 + ?{Goblin? | Yes , 2 | No , 0 } |Climb,5} ]]
Thank you so much, Vince and Scott!  Just tested Scott's, and it works like a charm.  I'll admit that I was having a bit of trouble figuring out just how much I had to replace with the info on the wiki.  But between the info Vince gave, and Scott's example, I should be able to make this stuff work from here on out.  Thanks a ton!
1498237654

Edited 1498237733
vÍnce
Pro
Sheet Author
maha e. said: still don`t know how to make a macro A macro is just a command or commands sent to chat that perform a function. Example; if you enter " /roll 1d20 " in chat and send, a random number between 1 and 20 would be generated.  You can include math functions as well.  " /roll 1d20 + 5 " and if all you just want to see the end resultant(you can still hover over the number in chat to see the math), make it an "inline roll"  by wrapping it within double square brackets, " [[ 1d20 + 5 ]] "  inline rolls do not require the /r or /roll command and in fact will fail if you try to include them.  You can also include attributes in your macros ie " [[ 1d20 + 5 + @{selected|FOO} ]] "  Include a query? " [[ 1d20 + 5 + @{selected|FOO} + ?{Add a modifier?|0} ]]" These are basic examples and you can get as complicated as needed if you want.  ;-) Learn more on the wiki:  Macros and  Dice Reference .
Granted, I haven't updated it in a while but you can check out <a href="https://wiki.roll20.net/Macros/Pathfinder_Examples" rel="nofollow">https://wiki.roll20.net/Macros/Pathfinder_Examples</a>... for some pathfinder-specific macro examples from the most basic to the annoyingly complex. There are some great ones near the bottom similar to the skillcheck macro you're referencing.