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

Script [TableExport] - Importing tables with newlines

July 29 (2 years ago)

Can you import data into a rollable table that had new lines in the text?  Is it as simple as replacing the new lines with 
?  See example below:

!import-table-item --Student-Mages of Faith --Multi-Faith Celebration Event! The club will be meeting on campus to set up tables going over different and varying religious and faith traditions to educate Strixhaven students about the variety of ways people celebrate their faith. Make a DC12 skill check related to this club.
Beat the DC: You've convinced 1 random student to join your faith of choice
Beat the DC by 5+: You've convinced 2 random students to join your faith of choice
Beat the DC by 10+ You've convinced 4 students to join your faith of choice.
Beat the DC by 13+: You've convinced 8 students to join your faith of choice. You now have a posse that will do their best to assist you in faith-based excursions. --1 --


July 30 (2 years ago)
The Aaron
Roll20 Production Team
API Scripter

Hmm. I'd say give it a try. If that doesn't work, try 
 (basically double encoded). If that doesn't work, I'll see if I can add some escapes for it. It might be that it works already with the syntax for replacing [, I'll have to look that up. 

July 30 (2 years ago)

I don't think &#13; works for new lines in table rolls. But adding a <br> does work.  I modified TableExport slightly to add escapes for the < and > characters.  Andreas mentioned in that thread that %NEWLINE% also works to add a line break.

August 01 (2 years ago)

I was able to make it work with <br> in the text but I had to use an API to roll it (I use Rollable Table Macros), so thanks everyone :)

August 06 (2 years ago)

Is there any reason this command would not work?

!import-table-item --Dead-Languages-Society --hide --0 --
!import-table-item --Dead-Languages-Society --A Lorehold excavation produced a new book that the club is keen to break into. Make a skill check related to this club. On a DC 15 the player helps crack a particularly difficult translation and earns a commendation --1 --

I get this error 

Is the table name too long?  I've found longer names seem to fail.


August 06 (2 years ago)

try it without the --0 --  that part is not needed for creating the table line.

August 06 (2 years ago)

Edited August 06 (2 years ago)
Have you already created a table named ‘Dead-Languages-Society’? 
The command to create the table name is just:
--import-table --<NAME> --<SHOW/HIDE>
August 07 (2 years ago)

Drat!  That was it.  I have this is a spreasheet to build the commands and my formula was picking up the wrong command.  Thanks all!

August 07 (2 years ago)
The Aaron
Roll20 Production Team
API Scripter

Oh good!  I'm glad you got it worked out!