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

Macro to roll multiples of the same rollable table?

Hey folks, did a search for this with little luck. I'm considering running an Edge of the Empire game and while I know there's an API for all that, I'm not good with that stuff so instead I've considered just using rollable tables and macros. I'm not that great at the macro stuff either but the wiki and you folks are usually really helpful. Here's my question, simple as the answer may be... I know you can use the simple 1t[table-name] macro to roll the named table, what would I use to have that macro call into question how many times that table is rolled? Say for example if this were Savage Worlds and you wanted a macro to request # of dice to roll, only this time with the rollable table, not dice. :) Hopefully what I want to do is possible, the system seems pretty robust, but I'm not holding my breath :p.
1496834774

Edited 1496834795
The Aaron
Pro
API Scripter
You can use a Roll Query: [[ ?{Number of Dice|1}t[tableName] ]]
Oh of course, I knew it'd be something like that, I just wasn't sure of the syntax. Thanks mate. :)
I'm trying this out and I only get the first roll to display in chat, am I missing something to make all the rolls display? 
1499704650

Edited 1499704679
The Aaron
Pro
API Scripter
Did you create a table named tableName ? (or substitute the name of a Rollable Table you did create?)
1499705153

Edited 1499705215
I'm using a table named test with a few random words in it so my code is currently : [[ ?{how many?|1}t[test] ]] minus the spaces of course. it works in the sense that I know it's rolling the multiples, because I can read them when I hover over it. but in the chat only the first roll is displayed
1499705378

Edited 1499705394
The Aaron
Pro
API Scripter
OH!  Ok.  Rollable tables will only show one result in an inline roll, unless they are numeric (in which case, they are summed).  To see all results, you have to use the non-inline method: /r ?{how many?|1}t[test]
1499705591
The Aaron
Pro
API Scripter
If you wanted to generate a full list of results using inline rolls and other things, I have an API script called RecursiveTable that gives lots of options for formatting output from recursive tables.  It requires the API, a Pro Subscriber Perk.
1499706623

Edited 1499706957
The Aaron said: If you wanted to generate a full list of results using inline rolls and other things, I have an API script called RecursiveTable that gives lots of options for formatting output from recursive tables.  It requires the API, a Pro Subscriber Perk. thanks! I am actually well aware of this script and the prerequisites to obtain it, and I am working to justify the expense to the missus.
The Aaron. Sort to thread jack, but a question related to this (slightly) If I had a table with an entry with a roll embedded in the text - how do I get that to work? Lotsa Living Relatives. You have [[2d12]] living relatives. So that when I roll on that rollable table and its results are that entry that it'd be something like this: Lotsa Living Relatives. You have 12 living relatives .
Modnar Wylde said: If I had a table with an entry with a roll embedded in the text - how do I get that to work? You'd need to use the RecursiveTables API Script.
Thank you