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

Difference between revisions of "JavaScript"

From Roll20 Wiki

Jump to: navigation, search
m
m
 
(7 intermediate revisions by one user not shown)
Line 1: Line 1:
{{Pro only}}
+
{{revdate}}{{dmbox}}
 
+
{{Pro only|page}}
Users can use [[wikipedia:JavaScript|JavaScript]] on Roll20 in two different cases, both of which are fairly restricted, and requires {{pro}} subscription to access:
+
Users can use {{wiki||JavaScript}} on Roll20 in two different cases, both of which are fairly restricted, and requires {{pro}} subscription to access:
<br>
+
 
::'''1.''' [[Character Sheets]]: When editing or creating [[BCS|custom character sheets]], JavaScript can be used in [[Sheetworkers|sheetworkers]] for creating more advanced backend features.
 
::'''1.''' [[Character Sheets]]: When editing or creating [[BCS|custom character sheets]], JavaScript can be used in [[Sheetworkers|sheetworkers]] for creating more advanced backend features.
 
::::* [[Sheetworkers#JavaScript_Restrictions|Sheetworkers - JavaScript Restrictions]]
 
::::* [[Sheetworkers#JavaScript_Restrictions|Sheetworkers - JavaScript Restrictions]]
 
 
::'''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.
 +
__NOTOC__
  
 
See Also:  [[Javascript:Best Practices]]
 
See Also:  [[Javascript:Best Practices]]
 +
===JS Libraries===
 +
Some JavaScript libraries are made available to use with Roll20:
 +
* [[jQuery]] limited use by calling {{c|$20}}
 +
* [http://underscorejs.org/ Underscore.js]
 +
===Version===
 +
Versions used in Roll20, such as the [[API Sandbox]], and [[Character Sheet]]'s [[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]]).

Latest revision as of 12:20, 3 May 2024

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.


See Also: Javascript:Best Practices

[edit] JS Libraries

Some JavaScript libraries are made available to use with Roll20:

[edit] Version

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

[edit] js

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

[edit] Node

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