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 add a datatable (not a rolltable) to an ability?

So Im playing pathfinder, how would I make a it so when I roll for an abilility it displays a data table (like weather). I dont want a rolltable. I want a to didplay a data table. Is that doable? With a macro or something?
1520617488
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
I can't see a way. Do you have an example of the output you'd like? For weather/calendar there are a few API scripts to handle it.
Something like this. It doesn't have to have the same formatting or something I just want to be able to call up a data table image on a whim. It can even just call up its picture or something.
1520619351
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Ah, so it's not dynamic then. That makes it easier and actually possible with pure macros. I'd recommend uploading the image to your location of choice (roll20 library, imgur, whatever you like as long as the url will end in .jpg, .png, or .gif - depending on the image type). You can then pull the image into chat using the markdown format: [Image Description](<a href="https://someImage.jpg" rel="nofollow">https://someImage.jpg</a>). You could of course set this as a macro, or even embed them in a query in a macro to select which one you want.
...Hmm Would there be a benefit to not doing it with pure marcos? Is there some better way to do it?
1520619734
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
An API script could be written to do it, but the question is how much work do you want to put into it.
Not much
There's two factors working against you there:&nbsp; Manual entry and screen space. To display the data, you'd need to enter it yourself (not a big deal usually,but it can get tedious and prone to typos for the more complex datasets). More of an issue is screen space.There's only about 35-40 or so characters per line (depending on whether you're using a template and what letters you use).&nbsp; That's no where near enough to display anything but a very narrow column of data. Scott C.'s suggestion is by far the best way to display a table of information.&nbsp; Go to the source, take a screenshot, and upload it to Imgur.&nbsp; You can then link it from there either as a plain HTML link, or as an in-line image.&nbsp; The in-line images will get shrunk to fit, but end-users can still click on it to view a larger version. The only other way to do it is via handouts and that honestly gets far more tedious than screenshot/imgur links