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

Calling a script from another script - Using rt.js from within another JS file.

I'm trying to figure out how to write a script that will internally call, twice, the rt script discussed here:&nbsp; <a href="https://app.roll20.net/forum/post/1408851/script-real-rollable-tables" rel="nofollow">https://app.roll20.net/forum/post/1408851/script-real-rollable-tables</a> How would I go about that? I'm assuming that script is designed to be run from the chat or a script, not as a function from another Javascript file. Thanks --Andy
1692746406
The Aaron
Roll20 Production Team
API Scripter
You can use sendChat() to send an api command to the chat. It's not ideal, and in this case I'd suggest just copying the functionality you want out of that script, or modifying it to add the behavior you want. I say that because that script is quite old and not supported by the original author anymore.&nbsp;