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
Line 1: Line 1:
 
{{Pro only}}
 
{{Pro only}}
  
Users can use [https://en.wikipedia.org/wiki/JavaScript JavaScript] on Roll20 in two different cases, both of which are fairly restricted:
+
Users can use [https://en.wikipedia.org/wiki/JavaScript JavaScript] on Roll20 in two different cases, both of which are fairly restricted, and requires {{pro}} subscription to access:
  
::'''1.''' When editing or creating [[Sheetworkers|sheetworkers]] when working with [[BCS|making custom character sheets]].
+
::'''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]]
::'''2.''' 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.
  
 
See Also:  [[Javascript:Best Practices]]
 
See Also:  [[Javascript:Best Practices]]

Revision as of 14:26, 25 July 2021

Users can use JavaScript 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