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

Rollable Tables

October 30 (6 years ago)

Edited November 01 (6 years ago)

Hi,

I am interested in learning more about tables and how to make them more "aesthetically pleasing".  The way tables roll and appear on my games now looks funny and I would like to know how to add formatting to them if anyoone can help.  Thank you.


UPDATE AND EDIT 11/1/18

Danii and G G noted below that one of the lines of text in the macro was in the wrong place and thus the output was to the whole group vs. just the GM.  The associated graphic and macro have been updated to reflect their corrected condition.  Thanks GG!

G G said:

The "/w gm" should be at the start of the following line. It will work then.

October 30 (6 years ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

Can you give some examples of what looks funny and how you would like to change it?

October 30 (6 years ago)
Bast L.
API Scripter

My only thought is that inline table rolls look better. The format is: [[1t[table-name]]]

October 31 (6 years ago)

Thank you for the responses.  What I think looks "funny" is the lack of formatting or maybe it just looks "rough" relative to the output I can get from a macro for other rolls.  Here are examples of table vs macros that I have:



October 31 (6 years ago)

 Example rolls

October 31 (6 years ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

Hi Don,

I'm still having trouble figuring out how to help. You can put a table result into a roll template, instead of a naked chat macro, and the same is true of dice rolls. Inside of a roll template, the results would look cleaner. If you really want fine-tuned control over the reporting of either, you can look into the Power Cards API.

October 31 (6 years ago)

Thank you.  I am sure it is just my ignorance of how the thing works.  I am computer literate but don't program.  I will check out the Power Cards API and any advice on how to "put a table result into a roll template" would be appreciated!


October 31 (6 years ago)

Good news!  It turns out I HAVE done this before, I just forgot.  I went to the way-back-machine and found some old macros in an old game and I think I can figure it out from here.  I just didn't realize what I was doing because they were macros in another person's game.  Thank you again for the responses!

October 31 (6 years ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

Great! Post again if you run into any specific problems.

October 31 (6 years ago)

Thank you Keith, I appreciate your help.

October 31 (6 years ago)

Hi Don,


Can you post a few of the macros with screen shots if possible?  I’ve been looking for ways to customize my game experience.  Thanks, bon

November 01 (6 years ago)

Edited November 01 (6 years ago)

Sure thing!  Here is a macro I made last night that references several encounter tables I have built.  The players click the Encounter macro and it let's them know the roll took place and whispers the results to me.  It rolls a d100 to determine if there is an encounter and if so, which type (Ultimate campaign exploration rules). Based upon the terrain they are in I can determine what the encounter is.The macro is:

&{template:default} {{name=Encounter Check:}}{{Results sent to GM...Processing}}

/w GM &{template:default} {{name=Encounter Check:}}{{Encounter Check: [[d100]]}}{{Plains:[[1t[Plains]]]}}{{Savannah:[[1t[Savannah]]]}}{{Jungle:[[1t[Jungle]]]}}{{Mountains&Hills:[[1t[Mountains&Hills]]]}}{{Shallows:[[1t[Shallows]]]}}{{Ocean:[[1t[Ocean]]]}}


The result looks like this:

November 01 (6 years ago)

Edited November 01 (6 years ago)


November 01 (6 years ago)

Oh good idea to use a template for this many rolls! 

It looks like the results are not sent to gm but to everyone, which might be not what you want.

November 01 (6 years ago)
GiGs
Pro
Sheet Author
API Scripter

The "/w gm" should be at the start of the following line. It will work then.

November 01 (6 years ago)

Edited November 01 (6 years ago)

Thanks Danni!

GG, Thank you, I hadn't noticed since I was the only one in chat when I did it!

UPDATE AND EDIT 11/1/18

Danii and G G noted that one of the lines of text in the macro was in the wrong place and thus the output was to the whole group vs. just the GM.  The associated graphic and macro have been updated to reflect their corrected condition.  Thanks GG!

G G said:

The "/w gm" should be at the start of the following line. It will work then.

November 01 (6 years ago)

Edited November 01 (6 years ago)

Figured I would chime in and offer up something that uses a few extra features combining rollable tables and macros:


! ?{Coins?|Many, 5|Some, 3|Few, 1|None, 0}

! ?{Gems?|Many, 5|Some, 3|Few, 1|None, 0}

! ?{Art?|Some, 1|None, 0}

! ?{Potions?|Many, 5|Some, 3|Few, 1|None, 0}

! ?{Scrolls?|Many, 5|Some, 3|Few, 1|None, 0}

! ?{Mundane?|Some, 1|None, 0}

!rt /w gm &{template:default} {{Coins=[[?{Coins?}t[coinage]]]}} {{Gems=[[?{Gems?}t[gems]]]}} {{Art=[[?{Art?}t[art]]]}} {{Potions=[[?{Potions?}t[RandPotion]]]}} {{Scrolls=[[?{Scrolls?}t[scrolls]]]}} {{Mundane=[[?{Mundane?}t[mundane]]]}}


The first six lines will pop up a series of queries (the first phrase inside the {}) and then each one after that offers an option. This is an early iteration that I plan on working on a lot more. Basically the number corresponds to the number of times it rolls on each respective table. After all these queries are made, it creates a table that's a little different, using the Recursive Tables API script (this is with basically everything at maximum, obviously not a typical roll). 

Basically it populates this output table by rolling on each respective loot table I maintain a number of times specified in the original queries, and it outputs all of this only to me. Doubles as a nice little loot log too, so I can reconcile it with my own session notes later in the week.



November 01 (6 years ago)

Thanks RZ.  By all means, if you have a Pathfinder table, PLEASE feel free to chime in here and let us know what you have!

November 01 (6 years ago)

One of the things I really miss from the old school AD&D was how well they designated the "treasure type" of creatures both in lair and out. That would be a complex but rewarding table to create.

November 02 (6 years ago)

Edited November 02 (6 years ago)

Some more suggestions: 

If you use = instead of : between the name-output and the roll of the table you get a nice two column format. (As in RZs post.)

You can also use the Rollable Table Macro script to have the 1d4 behind the spiders rolled automatically.

November 02 (6 years ago)

Edited November 02 (6 years ago)

Thank you, that is good to know and I will try that.

edit

I gave it a try and the table looks great!  Thank you.