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

Variable output question?

I'm trying to output a text variable for a spell. in this instance it's the spell "Summon Swarm" from DnD 3.5. the options are Bats, Rats, or Spiders and I want to make it so that I can choose witch one is printed in the macro. is there a way to do this?
This can be done very simply with a query - something like ?{summon|Bats|Rats|Spiders} where you want the text to output. You can put whatever text you want in the query options, separated by pipes, though bear in mind commas have a special function in queries, so you'll have to replace any commas that might occur in text with , - the query passes over that and then turns that into a normal comma.
That didn't work
Can you copy and paste the macro that you tried here? The query should work. Also, what character sheet do you use?
I figured out what I was doing wrong with the output I had written it as ?{summon = |rats|bats|Spiders} when the full line needed to be written like this {summon = ?{summon|rats|bats|spiders}} I'm using the provided DnD3.5 Character sheet