Skip to content

Instantly share code, notes, and snippets.

View shdwjk's full-sized avatar
🐉
Coding, coding, coding...

Aaron C. Meadows shdwjk

🐉
Coding, coding, coding...
  • Springfield, MO
View GitHub Profile
@shdwjk
shdwjk / MotD.js
Created December 30, 2014 06:30
Roll20 API: Message of the Day script -- greets players that log in with the contents of a particular note.
// GIST: https://gist.github.com/shdwjk/28d4970fe59fa15d3d67
var MotD = MotD || (function() {
'use strict';
var version = 0.1,
motdNoteId,
motdNoteName = 'MotD Note',
motdText,
@shdwjk
shdwjk / VantePCPP.js
Last active August 29, 2015 14:12
Roll20 API: Power Card Preprocesor script for Vante
var VantePCPP = VantePCPP || (function() {
'use strict';
var version = 0.3,
powerCardFunction = function() {
},
checkInstall = function() {
if("undefined" !== typeof PowerCard && _.isFunction(PowerCard.Process)) {
@shdwjk
shdwjk / BashDice.js
Created December 28, 2014 18:31
Roll20 API: Bash UE Dice Script -- Rolls the Bash UE Dice format with exploding.
// GIST: https://gist.github.com/shdwjk/bcbab15465b8a13330e7
var BashDice = BashDice || (function() {
'use strict';
var version = 0.1,
ch = function (c) {
var entities = {
'<' : 'lt',
@shdwjk
shdwjk / DarknessClosingIn.js
Last active August 29, 2015 14:11
Roll20 API: A command wrapped version of the Darkness Closing In API sample script.
// GIST: https://gist.github.com/shdwjk/d67c07ba49e1a57a1c0f
var DarknessClosingIn = DarknessClosingIn || (function() {
'use strict';
var version = 0.1,
schemaVersion = 0.1,
checkInstall = function() {
if( ! _.has(state,'DarknessClosingIn') || state.DarknessClosingIn.version !== schemaVersion) {
@shdwjk
shdwjk / BrianRTMod.js
Last active October 17, 2015 14:29
Roll20 API: Modification to Brian's RT script adding preprocessing for HoneyBadger's PowerCard Script with syntax to passed rolled tables with adjustments and values.
var RealRollableTable = RealRollableTable || (function() {
'use strict';
var version = 1.0003,
tables = _.groupBy(findObjs({ type: 'rollabletable' }), function(table) { return table.get('name').toLowerCase(); }),
powerCardFunction = function() {
},
getSystemId = function () {
// Get character id of `system`
@shdwjk
shdwjk / FateDots.js
Last active August 29, 2015 14:10
Roll20 API: FateDots -- provides numbered multi dots for Fate stress boxes.
// GIST: https://gist.github.com/shdwjk/dc0e5f5458e681925dc5
var FateDots = FateDots || (function(){
'use strict';
var version = 0.1,
schemaVersion = 0.3,
regex = {
statuses: /^(?:red|blue|green|brown|purple|pink|yellow|skull|sleepy|half-heart|half-haze|interdiction|snail|lightning-helix|spanner|chained-heart|chemical-bolt|death-zone|drink-me|edge-crack|ninja-mask|stopwatch|fishing-net|overdrive|strong|fist|padlock|three-leaves|fluffy-wing|pummeled|tread|arrowed|aura|back-pain|black-flag|bleeding-eye|bolt-shield|broken-heart|cobweb|broken-shield|flying-flag|radioactive|trophy|broken-skull|frozen-orb|rolling-bomb|white-tower|grab|screaming|grenade|sentry-gun|all-for-one|angel-outfit|archery-target)$/
},
@shdwjk
shdwjk / RandomRotate.js
Created November 27, 2014 06:34
Roll20 API: RandomRotate -- Allows the GM to easily rotate all selected tokens to a random angle.
// GIST: https://gist.github.com/shdwjk/77599d68527e755f1d47
var RandomRotate = RandomRotate || (function(){
'use strict';
var version = 0.1,
ch = function (c) {
var entities = {
'<' : 'lt',
@shdwjk
shdwjk / SpinTokens.js
Last active August 29, 2015 14:10
Roll20 API: SpinTokens -- Allows the GM to toggle spinning of selected tokens.
// GIST: https://gist.github.com/shdwjk/acda2fca3aaaa114242d
var SpinTokens = SpinTokens || (function(){
'use strict';
var version = 0.3,
schemaVersion = 0.1,
spinInterval = false,
stepRate = 200,
defaultSecondsPerCycle = 20,
@shdwjk
shdwjk / MovePlayers.js
Last active August 29, 2015 14:09
Roll20 API: MovePlayers -- Allows macros to move the player ribbon for players.
// GIST: https://gist.github.com/shdwjk/7ddf557cc365f489659f
var MovePlayers = MovePlayers || (function() {
'use strict';
var version = 0.1,
ch = function (c) {
var entities = {
'<' : 'lt',
@shdwjk
shdwjk / SizeLock.js
Created November 12, 2014 13:13
Roll20 API: SizeLock -- Toggles a state which reverts any size changes automatically.
// GIST: https://gist.github.com/shdwjk/e24c6a251af7969291ec
var SizeLock = SizeLock || (function() {
'use strict';
var version = 0.1,
schemaVersion = 0.1,
performLock = function() {
if( ! state.SizeLock.locked ) {