Difference between revisions of "JavaScript"
From Roll20 Wiki
Andreas J. (Talk | contribs) m |
Andreas J. (Talk | contribs) m |
||
Line 9: | Line 9: | ||
::'''2.''' [[API|API Scripts]]: When editing or creating [[API|API Scripts]]. | ::'''2.''' [[API|API Scripts]]: When editing or creating [[API|API Scripts]]. | ||
::::* The Roll20 API functions by running a special server-side virtual machine for each campaign. This provides an [[API:Sandbox_Model|API sandbox]] where your custom scripts can run without any danger of them affecting other user's campaigns. | ::::* The Roll20 API functions by running a special server-side virtual machine for each campaign. This provides an [[API:Sandbox_Model|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 sheetworkers. | ||
+ | ====js==== | ||
+ | Should be at least ES2018, [https://node.green/ node.green] shows ECMAScript versions & features for each node version. | ||
+ | |||
+ | ====Node==== | ||
+ | Roll20's sheetworkers & API runs on Node <code>v12.16.3</code>. (As of 2021-05-17, source: [[The Aaron]]). | ||
+ | |||
+ | |||
See Also: [[Javascript:Best Practices]] | See Also: [[Javascript:Best Practices]] |
Revision as of 12:22, 2 November 2021
Page Updated: 2021-11-02 |
Disambiguation page for "JavaScript" |
This page is about a Roll20 feature exclusive to Pro-subscribers (and often to players in a Game created by a Pro-subscriber). If you'd like to use this feature, consider upgrading your account. |
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.
- 2. API Scripts: When editing or creating API Scripts.
Version
Versions used in Roll20, such as the API sandbox, and 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