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

Is there a script to take a list and convert it to a rollable table?

September 05 (9 years ago)

Edited September 05 (9 years ago)
Say, for instance, this type of list:


Anybody?
September 05 (9 years ago)
vÍnce
Pro
Sheet Author
+1 for an import script that could do this.  
September 05 (9 years ago)
The Aaron
Pro
API Scripter
Like this....?  =D

https://app.roll20.net/forum/post/1144568/script-tableexport-a-script-for-exporting-rollable-tables-between-accounts
September 05 (9 years ago)

Edited September 05 (9 years ago)
The Aaron
Pro
API Scripter
Here it is, updated to use playerIsGM() instead of my isGM() stuff.   

https://github.com/shdwjk/Roll20API/blob/master/Ta...

September 06 (9 years ago)

Edited September 06 (9 years ago)
That seems to be for exporting already made rollable tables into a form you can then use the script to import to a new rollable table.
How would I use this on a list that has never been a table, say a text file that is just a list of names?

Links: do I need the 1st link, 2nd link, both?
September 06 (9 years ago)
The Aaron
Pro
API Scripter
The first is the original discussion, the second is a link to the newest version. 

!import-table --Professions --show
!import-table-item --Professions --Acrobats and tumblers --1 --
!import-table-item --Professions --Acrobat, tumbler --1 --
...
September 06 (9 years ago)
vÍnce
Pro
Sheet Author
So you could take the text from a table(from anywhere, not necessarily from another roll20 campaign) and use an external editor to edit each line to include the script's import commands, then just copy/paste into chat to run?
September 06 (9 years ago)

Edited September 06 (9 years ago)
Or paste them into an ability macro in a character sheet that holds all your !import files, so you can vault them and share with other people!
September 06 (9 years ago)
vÍnce
Pro
Sheet Author

OldSchoolChris said:

Or paste them into an ability macro in a sheet that holds all your !import files, so you can vault them and share with other people!

Love it.
September 06 (9 years ago)
The Aaron
Pro
API Scripter
There you go. :)

I was always surprised no one ever seemed to use this script. 
September 06 (9 years ago)
vÍnce
Pro
Sheet Author
I think it must have slipped thru the cracks. Although, there's so many tables available for PF as well as other agnostic rpg stuff that can be found online that it almost makes no sense to recreate a table in-game.  However, AP's with wandering monster tables and such...
My list above is for determining what a building in a city is for.
I will see about importing all the tables from the Dungeon Master's Guide :)