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

How to make a push-to-text macro/table???

I've got an idea where the players would see a list of words, possibly as buttons or list items, and as they click each button or list item, the roll20 interface would build a chat text based on their selections and then finally output the results to the chat window. For example, if there were words like ONE, TWO, THREE, FOUR GOBLIN, ORC, BUGBEAR, DRAGON LEFT, RIGHT, AHEAD, BEHIND they could click on the words Two, Goblin, and Ahead... the interface would create this text as they click... TWO GOBLIN AHEAD... and when they click <DONE> it would output TWO GOBLIN AHEAD into the chat window. I know that's a silly example, people are going to say "just type those words in the chat" but that's not the purpose of this thing, it's just a simple illustration of the idea. I've got a lot of ideas for using it, for puzzles, stealth communication, translation errors, all kinds of ideas are forming. But I have no idea if anything like this is possible. I've got the $5 a month subscription, so can't use API, would have to be macros or some kind of table or something. idk, you all are way more clever than me, got any ideas?
Easy enough to do with a series of Drop-down Queries all after another in one line of text. (Note I haven't tested the syntax, this is just off my head, so maybe a typo or something) Example for three drop-downs with three choices each ?{FirstOptions| Option1-1, Result1-1| Option1-2, Result1-2 | Option1-3, Result1-3} ...filler text... ?{SecondOptions| Option2-1, Result2-1| Option2-2, Result2-2 | Option2-3, Result3} ...filler text... ?{ThirdOptions| Option3-1, Result3-1| Option3-2, Result3-2 , Option3-3, Result3-3} Giving you a series of drop-down selection boxes to pick from as the text progresses, giving you a result similar to: " Result1-1 ...filler text... Result2-3 ...filler text... Result3-1 " ************************************* An abbreviated specific example  might look like: ?{Quantity| One, 1x| Two, 2x}  ?{Creature Type| Goblin, Goblin| Orc, Orc} fled ?{Direction| Left, to the left| Right, to the right} Resulting in:  (chosing the first option each time) "1x Goblin fled to the left" or "2x Orc fled to the right" (chosing the second option each time)
1594696112

Edited 1594696243
Joel
Pro
ok, cool, I get what you're doing there, I'll work on that. Thanks. I'm new to roll20, is there syntax I need to put at the end that basically tells it to concatenate all the results and output to the chat window? Or when it reaches the last drop-down, it just does it automatically?
1594707888
Oosh
Sheet Author
API Scripter
Automatically - you can't hold on to any of the input. The API can write the information to a sheet to use later, but macros cannot - everything is either sent to chat or lost by the end of the macro. Although there are ways to send information to chat in a way that isn't displayed, you can't reuse the information. Queries and Rollable Tables are probably going to be your best bet.