Open Nodlehs opened 11 years ago
From https://app.roll20.net/forum/post/146759/constants-available-to-the-whole-script#post-147508
"I imagine very complex scripts will even take advantage of an "export"/closure-based protection as well, e.g.:"
(function() { //Do stuff in here, only modifying/access konrad if you need to work outside this particular script. })();
I've used both methods in the command, encounter, treasure, gm modules. Works well.
We should slap everything under a namespace
var NamespaceName = NamespaceName || {};