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

Is it possible to have a macro with a "text field"?

I see there's a way to open a little option box. Is there a way to open a text-field instead, where the user could type something? For example, a basic macro that had an attack roll and all that, but the battle cry that goes along could be typed in the text-field. Is that possible?
Something like this: /em hits their targets with [[?{Level cast at|1|2|3|4|5|6|7|8|9}+2]] magic missiles. Total damage is: [[[[1d4+1]]*?{Level cast at}]] Each missile does $[[0]] force damage. Source: Roll20 5e Macros
1639778566
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Put this into the description field of the attack: ?{Enter your Battle Cry} If you want to have a default cry, you can put in a default value: ?{Enter your Battle Cry|Spooooooooon!}
GayKiwi said: Something like this: /em hits their targets with [[?{Level cast at|1|2|3|4|5|6|7|8|9}+2]] magic missiles. Total damage is: [[[[1d4+1]]*?{Level cast at}]] Each missile does $[[0]] force damage. Source: Roll20 5e Macros That only lets me choose. I want to actually write, like in the other guy's reply. But thank you very much for the help!
keithcurtis said: Put this into the description field of the attack: ?{Enter your Battle Cry} If you want to have a default cry, you can put in a default value: ?{Enter your Battle Cry|Spooooooooon!} That works, thanks! I have one more question. Can I make more than one text-box appear in the same little pop-up at the same time?
1639782248
timmaugh
Roll20 Production Team
API Scripter
Not in the same prompt pop-up, but you can have single text-box inputs pop up one after another. Every one of your roll queries will be prompted to you so that you have a chance to input a value. Roll queries are the things that look like this: ?{.......}
1639782740

Edited 1639783231
timmaugh said: Not in the same prompt pop-up, but you can have single text-box inputs pop up one after another. Every one of your roll queries will be prompted to you so that you have a chance to input a value. Roll queries are the things that look like this: ?{.......} Yes. So there's no way at all to have multiple text boxes at the same time? Edit 1: There's also a problem. I can't use markup on the first ?{ }, it seems. Edit 2: Edit 1 was just me being dumb.
1639783626
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You can put multiple queries in the same macro (or in this case, description field). They will pop up one after the other and all resolve before the macro displays anything to chat. So for instance you can put in: ?{Enter your Battle Cry|Spooooooooon!} I will avenge you, ?{Enter your comrade to be avenged|Arthur}! And both queries will run in the same macro.
keithcurtis said: You can put multiple queries in the same macro (or in this case, description field). They will pop up one after the other and all resolve before the macro displays anything to chat. So for instance you can put in: ?{Enter your Battle Cry|Spooooooooon!} I will avenge you, ?{Enter your comrade to be avenged|Arthur}! And both queries will run in the same macro. Yep, thank you! That should suffice. Thank you very much you all for taking the time to answer this total noob in such kindness! If this seems weird, well I'm more used to actual programming forums. They're not nice to noobs. You guys are awesome, though! Thanks!
1639787954
Kraynic
Pro
Sheet Author
You just have to be sure the question (the part before the "|") is different for each query.  If the question part is repeated, then your answer from the first instance will be automatically inserted for any identically worded ones that follow after without asking again.