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

Making use of the new Query function in OGL 2.0 - Macro sharing

If you're like me and love using macros to make life easier and simpler - then the 2.0 OGL sheet definitely got you excited.  A lot of new things to tweak, but most interesting of all to me is the query function.  How can we best use it, and how extensive is it so far? If there's documentation for exact uses, I'd love it if someone can link it! Otherwise.. let's share macros in here! Some that I can think of off the top of my head (not sure if they work or not, but it would be fantastic if they did..) One button for all your saves (select the save type with query box) One button for all your ability rolls (select the ability with query - this one may be a long shot..) ... and I'm sure there are more! Go, community, go!
1506458276

Edited 1506458363
This skill check macro should still work with the new sheet. It's an older macro that uses the default roll template and not the simple roll template though. &{template:default} {{name=?{Skills |Acrobatics,Acrobatics (Dex)}} {{[[1d20+@{selected|Acrobatics_bonus}]] [[1d20+@{selected|Acrobatics_bonus} ]] |Animal Handling,Animal Handling (Wis)}} {{[[1d20+@{selected|Animal_Handling_bonus}]] [[1d20+@{selected|Animal_Handling_bonus}]] |Arcana,Arcana (Int)}} {{[[1d20+@{selected|Arcana_bonus}]] [[1d20+@{selected|Arcana_bonus}]] |Athletics,Athletics (Str)}} {{[[1d20+@{selected|Athletics_bonus}]] [[1d20+@{selected|Athletics_bonus}]] |Deception,Deception (Cha)}} {{[[1d20+@{selected|Deception_bonus}]] [[1d20+@{selected|Deception_bonus}]] |History,History (Int)}} {{[[1d20+@{selected|History_bonus}]] [[1d20+@{selected|History_bonus}]] |Insight,Insight (Wis)}} {{[[1d20+@{selected|Insight_bonus}]] [[1d20+@{selected|Insight_bonus}]] |Intimidation,Intimidation (Cha)}} {{[[1d20+@{selected|Intimidation_bonus}]] [[1d20+@{selected|Intimidation_bonus}]] |Investigation,Investigation (Int)}} {{[[1d20+@{selected|Investigation_bonus}]] [[1d20+@{selected|Investigation_bonus}]] |Medicine,Medicine (Wis)}} {{[[1d20+@{selected|Medicine_bonus}]] [[1d20+@{selected|Medicine_bonus}]] |Nature,Nature (Wis)}} {{[[1d20+@{selected|nature_bonus}]] [[1d20+@{selected|nature_bonus}]] |Perception,Perception (Wis)}} {{[[1d20+@{selected|Perception_bonus}]] [[1d20+@{selected|Perception_bonus}]] |Performance,Performance (Cha)}} {{[[1d20+@{selected|Performance_bonus}]] [[1d20+@{selected|Performance_bonus}]] |Persuasion,Persuasion (Cha)}} {{[[1d20+@{selected|Persuasion_bonus}]] [[1d20+@{selected|Persuasion_bonus}]] |Religion,Religion (Int)}} {{[[1d20+@{selected|Religion_bonus}]] [[1d20+@{selected|Religion_bonus}]] |Sleight of Hand,Sleight of Hand (Dex)}} {{[[1d20+@{selected|Sleight_of_Hand_bonus}]] [[1d20+@{selected|Sleight_of_Hand_bonus}]] |Stealth,Stealth (Dex)}} {{[[1d20+@{selected|Stealth_bonus}]] [[1d20+@{selected|Stealth_bonus}]] |Survival,Survival (Wis)}} {{[[1d20+@{selected|Survival_bonus}]] [[1d20+@{selected|Survival_bonus}]] }}}
Oh nice, yeah it definitely works for ability checks (woot)
Saving throws are you looking for PC or NPC macros? or Both?
1506462243

Edited 1506462294
For PC's I made this one.. its not fantastic, formatting is somehow wrong when you get to constitution (just barely offset somehow, idk) But it gets the job done. Anyone got something cleaner? <code> &{template:default} {{name=?{Attribute |Strength,Strength Save}} {{[[1d20+@{selected|strength_save_bonus}]] [[1d20+@{selected|strength_save_bonus}]] |Dexterity,Dexterity Save}} {{[[1d20+@{selected|dexterity_save_bonus}]] [[1d20+@{selected|dexterity_save_bonus}]] |Constitution,Constitution Save}} {{[[1d20+@{selected|constitution_save_bonus}]] [[1d20+@{selected|constitution_save_bonus}]] |Intelligence,Intelligence Save}} {{[[1d20+@{selected|intelligence_save_bonus}]] [[1d20+@{selected|intelligence_save_bonus}]] |Wisdom,Wisdom Save}} {{[[1d20+@{selected|wisdom_save_bonus}]] [[1d20+@{selected|wisdom_save_bonus}]] |Charisma,Charisma Save}} {{[[1d20+@{selected|charisma_save_bonus}]] [[1d20+@{selected|charisma_save_bonus}]] }}} </code> Can't remember my html so someone tell me how to fix that ^ lol
For anyone else wanting to use your PC macro &{template:default} {{name=?{Attribute |Strength,Strength Save}} {{[[1d20+@{selected|strength_save_bonus}]] [[1d20+@{selected|strength_save_bonus}]]  |Dexterity,Dexterity Save}} {{[[1d20+@{selected|dexterity_save_bonus}]] [[1d20+@{selected|dexterity_save_bonus}]]  |Constitution,Constitution Save}} {{[[1d20+@{selected|constitution_save_bonus}]] [[1d20+@{selected|constitution_save_bonus}]]  |Intelligence,Intelligence Save}} {{[[1d20+@{selected|intelligence_save_bonus}]] [[1d20+@{selected|intelligence_save_bonus}]] |Wisdom,Wisdom Save}} {{[[1d20+@{selected|wisdom_save_bonus}]] [[1d20+@{selected|wisdom_save_bonus}]] |Charisma,Charisma Save}} {{[[1d20+@{selected|charisma_save_bonus}]] [[1d20+@{selected|charisma_save_bonus}]] }}}
Roll20 doesn't use HTML tags when writing posts. For the HTML encoded values just put amp; between & and #, and you can use the bar along the top of the post (looks like a paragraph symbol) to specify text in a code block.
1506471218
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
What new query function are you referring to Aridhol?
I was refering to the option shown in the video, where the 'query stat' was used, similar to 'query advantage' and etc are working. I'm not sure that there's a way to replicate the interaction short of the longhand way we've mentioned already in this thread now, that query option seems to just be for the specific cases mentioned rather than being easy to drop into something. If I'm wrong and there is a far easier way to make macros like this using that, do advise :)
1506473665

Edited 1506473694
I realized that my response might have been vague, so I thought I'd give an example. Short disclaimer, I'm still new to this, so something others have known for forever may not be as obvious to me, forgive my ignorance.. Anyhow - I understand that you could make like a one button spell selector macro, using a method like I used above, but as far as I understand it, if I learn any new spells or change anything significant, I'll need to go in and edit the macro every time. It would be awesome if there were a query-like script where it would auto-populate based on parameters, like all my level 1 spells, or something like that. And anytime I learn a new level 1 spell, I don't need to add anything to the macro, it will simply show up in the drop down as a new spell for me to cast. Does a method for this exist?
You could certainly create an API script to do that since you are a PRO subscriber. Just want to point out though that the games creator to have the PRO subscription. (I point this out because it sounds like you are asking what you can do as a player instead of as a DM/GM.)
I ask as a DM who wants to make the game flow as convenient as possible for my players. It applies both ways I guess. I wish I had any skill making an API to do it myself, but I am really not skilled in that area and am at a loss for what I would even do to get started on that
Aridhol said: I was refering to the option shown in the video, where the 'query stat' was used, similar to 'query advantage' and etc are working. This is called a Roll Query . The Roll Query you're referring to can be found here : ?{Attribute?|Strength,@{strength_mod}|Dexterity,@{dexterity_mod}|Constitution,@{constitution_mod}|Intelligence,@{intelligence_mod}|Wisdom,@{wisdom_mod}|Charisma,@{charisma_mod}}