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

Rollable Tables: is a modified roll possible?

Hi, I'm new around here and have been searching the forums for an answer to this but couldn't find it. Anyway, I'd like to know if it's possible to create a macro to modify a rollable table's roll. Let's say I create a simple d6 table called "assassination target". The original table looks like this: 1-2 : Assassin caught 3-4: no effect 5-6 target killed But, if you use a special card, you can add 1 to your roll. Is it possible to replicate that without a script?
1474567579
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Only with the API sadly.
Scott C. said: Only with the API sadly. Ok thanks for the quick response!
1474569734
Lithl
Pro
Sheet Author
API Scripter
If you're willing to make a separate table for each possible modifier, that could work as well. For example: assassination-target-0 Name Weight Assassin caught 2 No effect 2 Target killed 2 assassination-target-1 Name Weight Assassin caught 1 No effect 2 Target killed 3 Then use a macro like: /r 1t[assassination-target-?{Bonus|0|1}]
Brian said: If you're willing to make a separate table for each possible modifier, that could work as well. For example: assassination-target-0 Name Weight Assassin caught 2 No effect 2 Target killed 2 assassination-target-1 Name Weight Assassin caught 1 No effect 2 Target killed 3 Then use a macro like: /r 1t[assassination-target-?{Bonus|0|1}] That would be a wonderful suggestion if you could duplicate tables or if I wasn't tables with way more items than 3. :(  In any case, this could prove really useful for some other stuff, thanks. Is it possible to use simple expressions when you call attributes with this "?" command? For example, something like: /r 1t[assassination-?{Sneak-Detection}] For this specific case I guess I'll just go the old-school way and compare a die roll to an external table myself.
Sorry, just realized that "?" is a query command, and not a call to a variable.
1474579255

Edited 1474580396
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
yep, although, you can pass it attributes, and honestly, you should be able to do: /r 1t[assassination-@{assassination-bonus}] as attribute and ability calls are resolved even before roll queries. Order of Operations wiki:&nbsp; <a href="https://wiki.roll20.net/Dice_Reference#Order_of_Operations" rel="nofollow">https://wiki.roll20.net/Dice_Reference#Order_of_Operations</a> Edit: yes, this does indeed work.