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

Summon Spell API

1597629010

Edited 1597630038
Hi all, I have just recently switched to a PRO account and am loving all the new cool features and quality of life improvements that go along with a PRO account. I am looking to summon spells from the journal, templates from Toasty Thaumaturgy (or others that I can upload, either way). Essentially, I want spells to show up on the tabletop without going to the journal tab (one button press). I tried using the summon script from King, but that only makes them 5ft (one square), so they don't maintain their size. I know very little about scripting, so your help is appreciated. Thank you,
1597670720

Edited 1597670880
David M.
Pro
API Scripter
You can try this out. I'd love to get some feedback. There are some additional examples in the second post of the thread. It's not on 1-click, so you'd have to get the code from the github link and add it manually. <a href="https://app.roll20.net/forum/post/9046603/anybody-wanna-beta-test-a-default-token-spawning-script-with-toys/?pageforid=9046603#post-9046603" rel="nofollow">https://app.roll20.net/forum/post/9046603/anybody-wanna-beta-test-a-default-token-spawning-script-with-toys/?pageforid=9046603#post-9046603</a> NOTE: any api scripts that assign images to tokens will require the image to be in your personal art library. Unfortunately, marketplace art is not natively supported by the api. You would have to drag the art out to your map, press "z", right click and save image locally, then upload to your library. THEN re-make the token using the "My library" version of the art. Should be good to go after that initial setup.
Thanks! I'll try it out and let you know how it goes.
Hi David, What am I doing wrong? When trying to use the script, I get this error message every time ( (From SpawnAPI): &nbsp;Unhandled exception: Cannot read property 'split' of undefined)
1597686962
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
There's also&nbsp; my method &nbsp;(includes video).
1597690196
David M.
Pro
API Scripter
Yep, Keith's method was actually the inspiration for my script in the first place! The two methods can be used separately or in conjunction (see last example in the second post of the abovementioned thread). FYI anybody else, the error message Firebat was getting was resolved. See other forum post for details, but TL,DR is there was a bug and there is a fix. Thanks for the testing, Firebat!
Thank you for writing and supporting the script.