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

Not sure if it is possible

So I have a question regarding a macro.  I am wanting to create a macro that rolls for example 1d20 but instead of a number value I want each number to equal a string.  For example: Dice Value Macro Output 1 You fall and take [[2d4]] damage 2 You fall and take [[1d4]] damage 3 You fall and take no damage Obvoiusly this is extremely simple I am wanting to make a rather complex macro, but this will steer me in the correct direction.
1503504820
Kirsty
Pro
Sheet Author
A  rollable table will do most of what you want. Unfortunately, without a Pro membership to give you access to API scripts, the inline roll will not roll the damage.
I played around with rollable tables, however it seems that the table rolls for all players to see.  I want it to be only for GM.  Is that possible?
1503506045

Edited 1503506062
Still works with rollable tables. Instead of having your macro be "/roll 1t[Table-Name]" make it "/gmroll 1t[Table-Name]".
Ben Kugler said: Still works with rollable tables. Instead of having your macro be "/roll 1t[Table-Name]" make it "/gmroll 1t[Table-Name]". Awesome.  I didn't know the /roll command.  I've been doing it from the macro page.  Just having a moment.  Haha!  Thanks Ben and Kirsty!
1503510804

Edited 1503510835
The Aaron
Pro
API Scripter
You can also use inline rolls:  /w gm @{selected|token_name} fell and [[1t[Table-Name]]] happened. Sometimes nicer since you can combine it with other things. /w gm &{template:default}{{name=Trap Effects }}{{noticed=[[1d20+@{selected|perception_bonus}]] }}{{possible effect=[[1t[fall-effect]]]}} Note: you won't get images that way, and won't get more than 1 result displayed.
Yeah I figured out the inline.  I've been making some templates for a few macros with rollable tables this afternoon.  I appreciate the help though!
I'm so glad there was a feature that would allow me to do such a thing.  I am creating a table for Critical Hits and Critical Fumbles for D&D 5e.  In person I roll 1d100 and reference a chart, but since I can do it on here it definitely speeds things up a bit.  I've already created one 5 rollable tables!
1503516082
The Aaron
Pro
API Scripter
If you ever do bump to Pro, I've got a script (RecursiveTable) that does the rolls like you'd like to do them, with embedded inline rolls and such.  I've also got a script called TableExport (which also does imports!) which might be of interest as it's pretty easy to take an excel sheet (or other tabular data) and import it as a rollable table with it.
The Aaron said: If you ever do bump to Pro, I've got a script (RecursiveTable) that does the rolls like you'd like to do them, with embedded inline rolls and such.  I've also got a script called TableExport (which also does imports!) which might be of interest as it's pretty easy to take an excel sheet (or other tabular data) and import it as a rollable table with it. Awesome!  I appreciate it.  I will definitely put that in my gaming notes.  I want to go to pro for dynamic lighting specifically, however I can't justify it because I don't play with a dependable group regularly.
1503523066

Edited 1503523140
Lithl
Pro
Sheet Author
API Scripter
Even without Aaron's script, you can get the result of a table that rolls values if you're willing to put in a little extra work building it. This table is equivalent to the table in the first post (more than d3 for the initial table obviously drastically increases the number of table items needed for expanding it like this): Weight Value 16 You fall and take no damage 4 You fall and take 1 damage 5 You fall and take 2 damage 6 You fall and take 3 damage 7 You fall and take 4 damage 4 You fall and take 5 damage 3 You fall and take 6 damage 2 You fall and take 7 damage 1 You fall and take 8 damage