This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
var help = '!inspect - Manage player visible descriptions of tokens. ' + | |
'Requires CommandShell. See script for more options and useful macros.'; | |
/* | |
Requires the following other scripts to be installed: | |
- CommandShell (https://wiki.roll20.net/Script:Command_Shell) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
/* | |
!randomizer - Allows flexible generation of all sorts of randomizable things | |
such as NPCs, loot, weather, etc... | |
Requires the following other scripts to be installed: | |
- Shell (https://wiki.roll20.net/Script:Command_Shell) | |
Instructions: | |
Randomizer relies on special names for rollable tables. It intends to be |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sandboxDomain = 'https://different-domain.com' | |
function invokeCustomScript(scriptId) { | |
var iframe, sandbox; | |
iframe = document.createElement('iframe'); | |
iframe.src = sandboxDomain + '/custom-scripts/' + scriptId; | |
sandbox = iframe.contentWindow || iframe; | |
sandbox.postMessage({ method: 'init', state: gameState }, sandboxDomain); |