Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

JavaScript

From Roll20 Wiki

Revision as of 10:08, 9 March 2022 by Andreas J. (Talk | contribs)

Jump to: navigation, search
Users can use JavaScript Wikipedia-Black-W.png on Roll20 in two different cases, both of which are fairly restricted, and requires
Pro
info subscription to access:


1. Character Sheets: When editing or creating custom character sheets, JavaScript can be used in sheetworkers for creating more advanced backend features.
2. API Scripts: When editing or creating API Scripts.
  • The Roll20 API functions by running a special server-side virtual machine for each campaign. This provides an API sandbox where your custom scripts can run without any danger of them affecting other user's campaigns.

Version

Versions used in Roll20, such as the API Sandbox, and Character Sheet's sheetworkers.

js

Should be at least ES2018, node.green shows ECMAScript versions & features for each node version.

Node

Roll20's sheetworkers & API runs on Node v12.16.3. (As of 2021-05-17, source: The Aaron).


See Also: Javascript:Best Practices