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

Personal tools


From Roll20 Wiki

Revision as of 18:55, 6 November 2016 by Ryan J. (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

API - globalconfig

This is a stub and is incomplete.

The `globalconfig` variable is available for use in API scripts and it is related to the `state` variable. Unlike `state`, `globalconfig` does not persist and gets reset anytime the sandbox restarts.

`globalconfig` contains key/value properties of 1-click user options.

Here's a code example from the `StatusFx` script:


// Get the FX configurations from the useroptions.
  var useroptions = (globalconfig && 
      (globalconfig.StatusFX || globalconfig.statusfx)) ||
      { 'red': 'splatter-blood [1,-1]', 'green': 'bubbling-acid', 'custom': 'sleep: glow-holy|stars: beam-fire [2,3]', 'interval': 500};


More info in the forums: [1] [2] [3]