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
on('ready',function(){ | |
"use strict"; | |
var scgm=(msg)=>{ | |
sendChat('NPS',`/w gm <div style=" margin-left: -40px; border: 1px solid #ccc; border-radius: .5em; padding: .1em .5em; background-color: #eee; font-size: 10px; font-weight: bold; "> ${msg} </div> `); | |
}, | |
scaleGraphic = function(scale){ | |
return function(graphic){ | |
graphic.set({ | |
left: graphic.get('left')*scale, | |
top: graphic.get('top')*scale, |
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
/** | |
* | |
* Copyright (C) 2015 Ken L. | |
* Licensed under the GPL Version 3 license. | |
* http://www.gnu.org/licenses/gpl.html | |
* | |
* Contributors: | |
* Andy W. | |
* Shu Zong C. | |
* Carlos R. L. Rodrigues |
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
/* | |
Easy Experience Script: | |
This script will create a character called ExperienceThresholds that it uses for most of its functionality. If there is already an | |
ExperienceThresholds character present, it will not make one; please make sure that you do not have a self-made ExperienceThresholds character | |
(highly unlikely I would think ;) ) | |
---------------------------------------------------------------------------------------- | |
Use the following chat commands to utilize this script: | |
!xp challenge @{token_id/character_id}: Adds a character's npc-xp attribute value to the Session XP tally in the ExperienceThresholds character. | |
!xp miscXP ###: Adds a manually entered XP value to the Session XP tally in ExperienceThresholds. | |
!xp session: Divides the Session XP by the number of PCs (defined as characters that have a player-name entry), adds that xp to each PC's |
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
on('ready',function(){ | |
"use strict"; | |
var leftOffset = 20, | |
topOffset = 30, | |
hpleftOffset = 20, | |
hptopOffset = 24, | |
spleftOffset = 23, | |
sptopOffset = 34, |
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
// VERSION INFO | |
var AlterBars_Version = 1.1; | |
// FUNCTION DECLARATION | |
var AlterScript = AlterScript || {}; | |
on("chat:message", function (msg) { | |
// Exit if not an api command... | |
if (msg.type != "api") return; | |
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
on('ready', function() { | |
on('chat:message', function(msg) { | |
if (msg.type == "api" && msg.content.indexOf("!pic") !== -1) { | |
var piclink = msg.content.split(' ')[1]; | |
var fPart = "<div style='box-shadow: 3px 3px 2px #888888; font-family: Verdana; text-shadow: 2px 2px #000; text-align: center; vertical-align: middle; padding: 1px 1px; margin-top: 0.1em; border: 1px solid #000; border-radius: 8px 8px 8px 8px; color: #FFFFFF;" | |
var tPic = fPart + "background-color:#666666;'>● " + msg.who + " Shared a pic: ●</div>"; | |
var Pic = fPart + "background-color:#AAAAAA;'><img src='" + piclink + "'></div>"; | |
sendChat('', "/direct " + tPic + Pic); | |
}; | |
}); |
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/25923c1cc948f272d8bd | |
var SotSA = SotSA || (function() { | |
'use strict'; | |
var version = 0.1, | |
schemaVersion = 0.1, | |
showObj = function(obj) { | |
var s = JSON.stringify(obj,undefined,". "), |
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/0a14b06ef4da1cb5e33f | |
var RandomDepth = RandomDepth || (function() { | |
'use strict'; | |
var version = 0.2, | |
randomToFrontList = function (l) { | |
if( l.length ) { | |
var i = randomInteger(l.length)-1; |