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
// GIST: https://gist.github.com/shdwjk/a48ae61e6b338c906900 | |
var Escalation = Escalation || (function() { | |
'use strict'; | |
var version = 0.2, | |
dieName = 'Escalation Die', | |
dieMax = 6, | |
handleEscalationDieReset = function(obj, prev) { |
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
// GIST: https://gist.github.com/shdwjk/941cee5942ac4275d9ea | |
on('ready', function() { | |
on('add:graphic',function(obj) { | |
if( | |
'graphic' === obj.get('type') | |
&& 'token' === obj.get('subtype') | |
) { | |
setTimeout(_.bind(function(id){ | |
var obj=getObj('graphic',id) |
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
// GIST: https://gist.github.com/shdwjk/357e0632a1096375de58 | |
var TokenMod = TokenMod || (function() { | |
'use strict'; | |
var version = 0.53, | |
schemaVersion = 0.1, | |
fields = { | |
// booleans |
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
GIST: https://gist.github.com/shdwjk/075beec63a1e0ff085c7 | |
var TableTokenSizer = TableTokenSizer || (function() { | |
'use strict'; | |
var version = 0.15, | |
gridSize = 70, | |
scaleSize = 3, | |
sizeTableToken = function(obj, prev) { |
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
// GIST: https://gist.github.com/shdwjk/42f34ecfd167ec56c9f7 | |
var Emas = Emas || (function() { | |
'use strict'; | |
var version = 0.31, | |
ch = function (c) { | |
var entities = { | |
'<' : 'lt', |
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
// GIST: | |
// modified from: http://www.webtoolkit.info/ | |
var Base64 = Base64 || (function () { | |
'use strict'; | |
var version = 0.2, | |
keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", | |
// private method for UTF-8 encoding |
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
// GIST: https://gist.github.com/shdwjk/a7968b474c7fa56a89f5 | |
var IsGreater = IsGreater || (function() { | |
'use strict'; | |
var version = 0.2, | |
HandleInput = function(msg_orig) { | |
var args,msg=_.clone(msg_orig); |
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
// GIST: https://gist.github.com/shdwjk/aa0bd12b6829fe8a657e | |
on('ready',function(){ | |
'use strict'; | |
log('measure: ready'); | |
on('chat:message',function(msg){ | |
var args; | |
if (msg.type !== "api") { |
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
// GIST: https://gist.github.com/shdwjk/054574d39c166d50865c | |
var LokiTrapMan = LokiTrapMan || ( function() { | |
'use strict'; | |
// Here is the bulk of where you define a trap and cusomize the events. This is an array of all traps on your campaign (I only have 1 defined). | |
// Trap coordinates are defined in squares, not pixals. A trap location is defined as a rectange having two points (x1,y1 to x2,y2) | |
// Set the pageID and region of the trap and when a token enters this area the defined callback in the array will be triggered. | |
var traps = [ | |
// In this example when a charater lands next to (or on) a placed npc he (and his campfire) disappears in a firey explosion. |