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 .
×

Template for Roll Queries?

1645220658

Edited 1645221190
Hello, trying to create a Conditions macro for PF2e. I'd like to use a drop down Roll Query option to just select a condition and submit to get the condition to then post into chat. Right now I do have it working but the text is just like copy/paste text into chat. I'd like to polish it up a bit and was wondering a few things that hopefully someone can help me with. I have two ideas and not sure if they will work: A)  Use a Query such as the example below, but have its results be put into a text template like one that has header and such as the one found further down in my post. ?{Choose a Condition|Blinded, **Blinded** • You can’t see. You can’t detect anything using vision. • All normal terrain is difficult terrain to you.  • You automatically critically fail Perception checks that require you to be able to see.  • If vision is your only precise sense you take a –4 status penalty to Perception checks.  • You are immune to visual effects.  • Blinded overrides dazzled.  • Creatures are Hidden from you.| } B)  Use the same query but instead when you select an option it just calls a macro that creates that text box similar to the macro below: &{template:rolls} {{charactername=@{selected|token_name}}} {{header=Blinded}} {{subheader=^{Condition}}}{{info01_name=^{type}}} {{info01=}} {{desc=**^{notes} **You can’t see. All normal terrain is difficult terrain to you. You can’t detect anything using vision. You automatically critically fail Perception checks that require you to be able to see, and if vision is your only precise sense, you take a –4 status penalty to Perception checks. You are immune to visual effects. Blinded overrides dazzled.}}   I know I'd prefer to use example A simply because I like the idea of not having to create a dozen macros. But I realize with only have a Plus and not a Pro account I can't just use API stuff which I'm sure would be simple enough.
1645223628
GiGs
Pro
Sheet Author
API Scripter
If you want to use a template with either method, you'd either need to look into Chat menus (look for the Useful Tps thread), or html entity substitution , because your query will break without them. I'd recommend the chat menu approach, it's much easier to write and maintain.
1645233823
Andrew R.
Pro
Sheet Author
You’re not wrong about it being simpler with a Pro subscription. ;) I have a row of buttons in the Macro Bar for every 13th Age condition, and when a token needs it, I just click on it and click the button. The TokenMod script handles it nicely.