This file contains hidden or 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
/*global _, on, createObj, getObj, log, state, findObjs, filterObjs, sendChat, playerIsGM */ | |
/*jslint browser: true, multivar: true, bitwise: true, es6: true */ | |
var Dynamic_Light_Helper = Dynamic_Light_Helper || (function () { | |
"use strict"; | |
// SETTINGS <=================================================== | |
const CON = { | |
SCRIPT: "Dynamic_Light_Helper", | |
VERSION: 2.0, | |
UPDATE: 1476712215, |
This file contains hidden or 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
/*global _, on, getObj, sendChat */ | |
/*jslint browser: true, multivar: true, bitwise: true, es6: true */ | |
var nudge_test = nudge_test || (function () { | |
"use strict"; | |
var nudge_action = function (obj, nudge, twist) { | |
var character = obj.get("represents"), player; | |
if (_.isEmpty(character)) { | |
sendChat("API", "just the token. Nudged: " + nudge + " , Twist: " + twist + "."); | |
// Do something |
This file contains hidden or 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
map_coordinates = function(obj){ | |
var g,l,t,s,v,h,rv, | |
//size = 91.14378277661477, | |
//side = 50, | |
left_h = 46.48512749037782, | |
top_h = 39.8443949917523, | |
left_step_h = 69.585127490378, | |
top_step_h = 39.84439499, | |
left_v = 37.5992809922301, | |
top_v = 43.8658278242683, |
This file contains hidden or 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
/*global on, _, getObj, createObj, findObjs, state */ | |
/*jslint white: true, bitwise: true, for: true, multivar: true, browser: true */ | |
var deluxe_dungeon_designer = deluxe_dungeon_designer || (function() { | |
'use strict'; | |
var script = 'deluxe_dungeon_designer', | |
version = 0.10, | |
last_update = 1459468801, //Unix timestamp | |
schema_version = 0.10, | |
percentChange = 0.3, |
This file contains hidden or 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
/*global state, sendChat, filterObjs, getObj, on, createObj, setTimeout, _, findObjs, playerIsGM, sendPing, toFront, toBack */ | |
/*jslint white: true, bitwise: true, for: true, multivar: true, browser: true */ | |
var mapGrid = mapGrid || (function(){ | |
'use strict'; | |
var version = 0.1, | |
handleGraphicChange = function (obj) { | |
var html = '', | |
page=getObj('page',obj.get('pageid')), |
This file contains hidden or 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 SampleDoor = SampleDoor || (function(){ | |
'use strict'; | |
var Rollable_Table_Avatar = 'https://s3.amazonaws.com/files.d20.io/images/15774224/TylRyZ0nvG4ChhmEApDOPw/thumb.png?1454115889', | |
find_create_rollabletable = function() { | |
var tables = findObjs({type: 'rollabletable',name: 'hit token button'}), | |
table = tables[0] || createObj('rollabletable', {name: 'hit token button',showplayers: false}), | |
items = findObjs({rollabletableid: table.id}), | |
item = items[0]||createObj('tableitem', {rollabletableid: table.id, avatar: Rollable_Table_Avatar}); | |
_.each(tables, function( eachItem, index ) { | |
if( 0 !== index ) { |
This file contains hidden or 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 pathing_rotation = function(angle, point,width,height) { | |
var pointX = point[0], pointY = point[1], originX = (width/2), originY = (height/2); | |
angle = angle * Math.PI / 180.0; | |
return [ | |
Math.cos(angle) * (pointX-originX) - Math.sin(angle) * (pointY-originY) + originX, | |
Math.sin(angle) * (pointX-originX) + Math.cos(angle) * (pointY-originY) + originY | |
]; | |
}, | |
rotated_flipPaths = function(shapePath) { | |
var i,newPath,angle,xOffset,yOffset,maxX,minX,maxY,minY,spinPath,objectWidth,objectHeight,objectTop,objectLeft; |
This file contains hidden or 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
/*global sendChat, createObj, getObj, toFront, toBack, state, _, log, on, filterObjs, setTimeout, playerIsGM*/ | |
/*jslint white: true */ | |
var AOEDrawer = AOEDrawer || (function(){ | |
'use strict'; | |
//breakcode = breakcode | |
var version = 0.81, | |
lastUpdate = 1440326236, | |
schemaVersion = 0.81, | |
//Default Settings |
This file contains hidden or 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
/*global sendChat, createObj, getObj, toFront, state, _, log, on*/ | |
/*jslint white: true */ | |
var stopTalkingYouTwo = stopTalkingYouTwo || (function(){ | |
'use strict'; | |
var version = '0.1.0', | |
whisperUrl = 'https://s3.amazonaws.com/files.d20.io/images/11583165/eABhjOsunqhKHto2aRQ96A/thumb.png?1439727668', | |
whisperPing = function(currentPageGraphics) { | |
_.each(currentPageGraphics, function(obj) {whisperPingeer(obj); }); | |
}, |
This file contains hidden or 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
/*global sendChat, createObj, getObj, toFront, state, _, log, on*/ /*jslint white: true */ | |
var tokenSlider = tokenSlider || (function(){ | |
'use strict'; | |
var version = 0.1, | |
lastUpdate = 1439553559, | |
schemaVersion = 0.1, | |
sliderURL = 'https://s3.amazonaws.com/files.d20.io/images/11533373/FMkZYp0p7Si1FIEPe-94mg/thumb.png?1439570208', | |
sliderAction = function(represents) { | |
sendChat('tokenSlider','For Token: ' + represents); | |
//Do something |