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 / auraHealth.js
Created March 31, 2018 19:44
DXWarlock's HealthColors Script -- with TokenMod Support
/* global createObj TokenMod spawnFxWithDefinition getObj state playerIsGM sendChat _ findObjs log on*/
/*
My Profile link: https://app.roll20.net/users/262130/dxwarlock
GIT link: https://github.com/dxwarlock/Roll20/blob/master/Public/HeathColors
Roll20Link: https://app.roll20.net/forum/post/4630083/script-aura-slash-tint-healthcolor
*/
/*jshint bitwise: false*/
var HealthColors = HealthColors || (function () {
'use strict';
var version = '1.5.1',
@shdwjk
shdwjk / IsGMModule
Last active January 26, 2024 21:44
Roll20: IsGM module -- adds a function, isGM(id), which returns true for gms and false for players. GM database is built in the state object automatically as players and gms send chat messages.
// 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"});
@shdwjk
shdwjk / SimpleInitiative.js
Created July 16, 2023 14:45
SimpleInitiative -- Fixed for pageid issue with turnorder.
// VERSION INFO
var SimpleInitiative_Author = "Sky";
var SimpleInitiative_Version = "1.4.1";
var SimpleInitiative_LastUpdated = 1530594275;
// VARIABLE DECLARATIONS
var SHOW_GREEN_DOT = true;
var ANNOUNCE_NEW_TURN = true;
var PC_COLOR = "#073763";
var NPC_COLOR = "#440000";
@shdwjk
shdwjk / SpeechBalloon.js
Last active March 24, 2023 21:47 — forked from BaldarSilveraxe/SpeechBalloon
Roll20 SpeechBalloon
const SpeechBalloon = (() => { // eslint-disable-line no-unused-vars
const version = 0.1; // eslint-disable-line no-unused-vars
const schemaVersion = 0.4;
const defaultShowLength = 4; // seconds
const msPerSec = 1000; // for conversions.. no magic numbers!
const checkStepRate = 1000; //ms = 1 second
@shdwjk
shdwjk / Roll20 Mystara Calendar
Last active October 11, 2022 00:07
My first release of a Mystara Calendar API Script for Roll20.
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)
@shdwjk
shdwjk / TurnMarker.js
Last active April 7, 2022 11:38
Roll20 API: TurnMarker - round counter and a moving marker that shows who's turn it is.
// GIST: https://gist.github.com/shdwjk/ed16764c268129afff22
/* ############################################################### */
/* TurnMarker */
/* ############################################################### */
var TurnMarker = TurnMarker || {
version: 1.24,
schemaVersion: 1.16,
active: false,
@shdwjk
shdwjk / WeightedDice
Last active May 17, 2021 23:57
Roll20 API: Weighted-Dice -- automated creation of rollable tables where a minimum value is weighted with values it replaces. (example d6min4 possible values: 4 4 4 4 5 6)
// 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. */
@shdwjk
shdwjk / TableExport.js
Last active January 26, 2021 01:16
Roll20 API: TableExport -- A script for exporting Rollable Tables between accounts.
Use this version instead:
https://github.com/shdwjk/Roll20API/blob/master/TableExport/TableExport.js
@shdwjk
shdwjk / Betrayal.js
Last active October 28, 2020 18:57
Roll20 API: Betrayal at House on the Hill Card Swap Script
// 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" ]
@shdwjk
shdwjk / MonsterManager.js
Created May 11, 2020 11:26
Fixed Chris S. MonsterManager
// Monster Management Script
// Usage: !monster import // This will read the "Monster Import" handout, and import it in to roll20.
// See monster-import.txt for example formatting. The regular expressions that power this system should
// be capable of parsing most monster entries from the SRD, as well as the Monster Manual(s).
// Let me know if you find a monster that fails to parse properly!
// !monster generate (MonsterName) // Select 1 or more monsters, then run this command. All selected tokens
// will be linked to the applicable monster's sheet, and have their health bar (bar1) populated with a randomly
// rolled min/max hitpoint value, derived from the monster's HD. Bar2 will be filled with notes relevant to the monster
// (If using my TokeNotes script), and bar3 will be populated with the monster's AC.
// !monster clear-all // Removes all automatically generated monsters.