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: | |
var TokenLock = TokenLock || (function() { | |
'use strict'; | |
var version = 0.11, | |
schemaVersion = 0.1, | |
performLock = function() { | |
if( ! state.TokenLock.locked ) { |
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/79a60b8d2ee58e87604d | |
var Ammo = Ammo || (function() { | |
'use strict'; | |
var version = 0.11, | |
adjustAmmo = function (playerid,attr,amount) { | |
var val = parseInt(attr.get('current'),10)||0, | |
max = parseInt(attr.get('max'),10)||10000, |
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/4064a6b2e12bcfc46f49 | |
// Aaron's updated version. | |
// Fixed: character update to only do one findObjs() call, instead of | |
// (((15*5)+1)*NUM Characters) times (that's 2280 times for 30 characters). | |
// | |
// Edge of the Empire RPG Dice Mechanics | |
// | |
// copyright pug games 2014 | |
// please feel free to use this script, change it, add to it in any way you feel | |
// Script created by Roll20 user Konrad J. |
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/a65bae32d700a00a9c47 | |
var CharUtils = CharUtils || (function() { | |
'use strict'; | |
var version = 0.51, | |
fixNewObj= function(obj) { | |
var p = obj.changed._fbpath, | |
new_p = p.replace(/([^\/]*\/){4}/, "/"); |
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/5119cf1c5ffdf3088308 | |
var Mark = Mark || (function() { | |
'use strict'; | |
var version = 0.22, | |
schemaVersion = 0.2, | |
markerURL = 'https://s3.amazonaws.com/files.d20.io/images/4994795/7MdfzjgXCkaESbRbxATFSw/thumb.png?1406949835', | |
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/91a2d2b076f687eb8406 | |
var GroupInitiative = GroupInitiative || (function() { | |
'use strict'; | |
var version = 0.41, | |
schemaVersion = 0.5, | |
bonusCache = {}, | |
statAdjustments = { | |
'Stat-DnD': { |
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/d11b7f41b204a8444f2f | |
var UsePower = UsePower || (function() { | |
'use strict'; | |
var version = 0.31, | |
schemaVersion = 0.1, | |
ch = function (c) { | |
var entities = { |
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
Use this version instead: | |
https://github.com/shdwjk/Roll20API/blob/master/TableExport/TableExport.js |
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/437a80205ab5b7947466 | |
var EoERangeBands = EoERangeBands || (function() { | |
'use strict'; | |
var version = 0.2, | |
shortRange = 10, | |
mediumRange = 50, | |
shortBand = { |
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. |