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 Calendar = Calendar || { | |
version: 1.6, | |
lunarPhaseSize: 15, | |
lunarPhasesImage: 'https://s3.amazonaws.com/files.d20.io/images/4277527/CJJWBbiHx3jHglPdccPx3A/max.png?1401939451', | |
clearImage: 'https://s3.amazonaws.com/files.d20.io/images/4277467/iQYjFOsYC5JsuOPUCI9RGA/max.png?1401938659', | |
_Ordinal: function(num) { | |
var ones=(num%10); | |
var tens=((num%100)-ones); | |
switch(ones) |
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/ed16764c268129afff22 | |
/* ############################################################### */ | |
/* TurnMarker */ | |
/* ############################################################### */ | |
var TurnMarker = TurnMarker || { | |
version: 1.24, | |
schemaVersion: 1.16, | |
active: false, |
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/8d5bb062abab18463625 | |
var IsGMModule = IsGMModule || { | |
version: 0.6, | |
active: true, | |
reset_password: "swordfish", | |
CheckInstall: function() { | |
var players = findObjs({_type:"player"}); |
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/7377de58100f4e813432 | |
on('ready', function(){ | |
on('add:graphic',function(obj){ | |
if( | |
'graphic' == obj.get('type') | |
&& 'token' == obj.get('subtype') | |
&& '' != obj.get('represents') | |
) | |
{ |
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/7a9c3ce232961662b69c | |
var Walls = Walls || { | |
version: 0.1, | |
schemaVersion: 0.2, | |
CheckInstall: function() { | |
if( ! _.has(state,'Walls') || state.Walls.schemaVersion != Walls.schemaVersion) | |
{ | |
/* Default Settings stored in the state. */ |
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/7a9c3ce232961662b69c | |
var WeightedDice = WeightedDice || { | |
version: 0.2, | |
schemaVersion: 0.1, | |
CheckInstall: function() { | |
if( ! _.has(state,'WeightedDice') || state.WeightedDice.schemaVersion != WeightedDice.schemaVersion) | |
{ | |
/* Default Settings stored in the state. */ |
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/48370c09788e11263d32/edit | |
// Fork of Stephen L.'s carry script | |
// Addition: using isGM() script for checking who is a GM | |
// Correction: Removed use of for(in) which was causing crashes as it parses the | |
// object's prototype's properties as well, not just the properties. | |
// | |
/** | |
* A set of chat commands used to set tokens to carry other tokens. | |
* When a token moves, the any tokens it is carrying move to its new location. | |
* |
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/baab586565149fe0fca5 | |
var AutoStatusMarker = AutoStatusMarker || (function() { | |
'use strict'; | |
var HitPointBarNum = 3, | |
TempHitPointsIn = 'temp_HP', | |
BloodiedMarker = 'half-heart', | |
DyingMarker = 'dead', |
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/d97377b90de4bb37195b | |
var Betrayal = Betrayal || (function(){ | |
var Tiles={ | |
"Basement Landing": { | |
name: "Basement Landing", | |
imgsrc: "https://s3.amazonaws.com/files.d20.io/images/3482089/uhxEkm5S_TNzjP7NdCm4hg/thumb.png?1395454546", | |
where: [ "basement" ], | |
special: true, | |
exits: [ "north", "south", "east", "west", "Grand Staircase" ] |
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/342cb67457936702fd8a | |
var Torch = Torch || (function() { | |
'use strict'; | |
var version = 0.7, | |
schemaVersion = 0.1, | |
flickerURL = 'https://s3.amazonaws.com/files.d20.io/images/4277467/iQYjFOsYC5JsuOPUCI9RGA/thumb.png?1401938659', | |
flickerPeriod = 400, | |
flickerDeltaLocation = 2, |
OlderNewer