tl;dr: I have text that is outside of Roll20. I want to make handouts out of that text. What's the easiest/simplest way to get it into Roll20?
I began creating a Dungeon World campaign, and quickly found myself importing various rules into handouts for my players. I figured that I might as well import the entirety of the rules in order to really simplify the learning curve for my players, as Roll20's handout-to-handout linking and 'Show to Players' features are great.
I imagine my process will go something like this:
Is there a way around this? Is there an alternative way to upload text to Roll20? Is there any sort of REST API?
I began creating a Dungeon World campaign, and quickly found myself importing various rules into handouts for my players. I figured that I might as well import the entirety of the rules in order to really simplify the learning curve for my players, as Roll20's handout-to-handout linking and 'Show to Players' features are great.
I imagine my process will go something like this:
- Parse Dungeon World XML
- Use context to add handout-to-handout formatting
- Use context to add structural formatting
- Read formatted text/XML into the API
- Create formatted handouts in structured directories
While Roll20 scripts are Javascript, there are some restrictions you should be aware of if you're used to programing Javascript for websites. Roll20 scripts are executed in a separate sandbox from the Roll20 site. This provides an additional layer of separation and security for our system and your players. This sandbox means that:
You cannot make HTTP Requests (AJAX).
You cannot load external scripts or libraries (e.g. jQuery).
The environment is Javascript, but it is not an environment in a browser, so there is no DOM, page elements, CSS,document
,window
, etc.
Is there a way around this? Is there an alternative way to upload text to Roll20? Is there any sort of REST API?