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 here.
×
×
Cookie Preferences
We use Cookies to help personalize and improve Roll20. For more information on our use of non-essential Cookies, visit our Privacy Policy here.
I am developing a tool that has an API which allows me to query it in order to get back a JSON response of world/campaign related information. Is it possible to create a chat command that will allow me to display the information fetched?
I'm guessing that this tool is external to Roll20. The API does not have access to anything outside the VTT, and only has access to specific pieces of the VTT. See the wiki for details on what API scripts can interact with: <a href="https://wiki.roll20.net/API:Objects" rel="nofollow">https://wiki.roll20.net/API:Objects</a> That said, you could probably use an external program to "type" the info into the chat window.
Stephen L. said: Nope. You can't make AJAX calls from the Roll20 API. Ajax said: Geez, what did I do? :) Well looks like you can now :D just not thur API...
now you might be able to live capture something in the game that would trigger your external code. then the external code could via some sort of copy paste be able to generate something into the game thur chat commands aka build the output like you could if your in the game just have to hit enter or copy then paste.