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

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 --
1659155165
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. 
I don't think 
 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.
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 :)
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.
try it without the --0 --  that part is not needed for creating the table line.
1659803019

Edited 1659803031
Have you already created a table named ‘Dead-Languages-Society’?&nbsp; The command to create the table name is just: --import-table --&lt;NAME&gt; --&lt;SHOW/HIDE&gt; <a href="https://app.roll20.net/forum/post/1144568/script-tableexport-a-script-for-exporting-and-importing-rollable-tables-between-accounts" rel="nofollow">https://app.roll20.net/forum/post/1144568/script-tableexport-a-script-for-exporting-and-importing-rollable-tables-between-accounts</a>
Drat!&nbsp; That was it.&nbsp; I have this is a spreasheet to build the commands and my formula was picking up the wrong command.&nbsp; Thanks all!
1659887104
The Aaron
Roll20 Production Team
API Scripter
Oh good!&nbsp; I'm glad you got it worked out!