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

Can't seem to create a Rollable Table with the API

1380290261
Keith
Pro
Marketplace Creator
If I try to use this call... createObj("rollabletable", { name: "Green", showplayers: true }); I get this messages... "ERROR: Tried to create an invlid object type. See the API Documentation for valid types." I did look at the API docs and it seems like this should work. Any help would be appreciated. P.S. The word invalid is misspelled in the error message.
"Note: Currently only characters, handouts, attributes, and abilities can be created. Other objects will be supported soon." Unfortunatly you can't create a rollable table, however if you make blank ones and name them blank, you can use a script to modify them.
1380301990
Keith
Pro
Marketplace Creator
Sorry, I missed that part. Thanks
No worries bro. Easiest way is to make a few blank tables, and from there, it's easy to make a script to assign the blank unused table a name, and then populate it!
1380303054

Edited 1380303266
Untested waters, but here's what I came up with. <a href="https://gist.github.com/anonymous/6732051" rel="nofollow">https://gist.github.com/anonymous/6732051</a> just name the table you want to use the script with "blank"
1380303523
Keith
Pro
Marketplace Creator
Was trying to come up with a scrip that will set up a Leviathans game for anyone that wants to get one going pretty quickly. There are 5 roll-able tables, and some macros that have to be set up. I guess I will have to wait. No issues. Thanks for your help.
Well, after some tinkering with the API and tables as a whole, all it returns is {"name":"x","showplayers":true,"_type":"rollabletable","_id":"-J4VZSCayBX530zM3rjj"} The obj id remains the same no matter how the table is updated, meaning there's some behind the scenes on how it works.