Skip to content

Instantly share code, notes, and snippets.

View VoltCruelerz's full-sized avatar

VoltCruelerz

View GitHub Profile
@VoltCruelerz
VoltCruelerz / DifficultyRating.js
Last active June 19, 2019 12:10
A 5e DND encounter calculator.
//if (MarkStart) {MarkStart('DifficultyRating');}
/*
* Difficulty Rating - 5e Encounter Calculator
* by Michael Greene (Volt Cruelerz)
*
*/
on('ready', () => {
const drname = 'Difficulty Rating';
@VoltCruelerz
VoltCruelerz / AirbagStart.js
Last active August 4, 2023 10:38
Airbag - Roll20 API Crash Handler
let airIndex = new Error();
// ===============================================================================
// AIRBAG - API Crash Handler
//
// Version 1.3.2
//
// By: github.com/VoltCruelerz
// ===============================================================================
// Whether or not the code is operational
@VoltCruelerz
VoltCruelerz / MapTeleporters - CM Edition.js
Last active March 2, 2019 02:06 — forked from finalfrog/MapTeleporters.js
An updated MapTeleporters script built for CashMaster.
/*
= GITHUB =
https://gist.github.com/VoltCruelerz/7962330ef9b8aaf516a69cb4acbd8d6d
= INSPIRATION =
- MapChange by TheWhiteWolves (https://github.com/TheWhiteWolves/MapChange.git)
-Teleporter Without Movement Tracker by DarokinB (https://gist.github.com/DarokinB/5806230)
= AUTHORS =
- FinalFrog:
@VoltCruelerz
VoltCruelerz / SpellMenu.js
Created September 19, 2018 23:39
Alteration to The Aaron's Spell Menu script
on('ready',()=>{
const range = (n) => [...Array(n).keys()];
const spellAbilityName = 'Spells';
const spellProps = ['cantrip','1','2','3','4','5','6','7','8','9'];
const spellLevelNames = {
cantrip: "Cantrips",
1: "1st Level",
2: "2nd Level",
3: "3rd Level",
@VoltCruelerz
VoltCruelerz / CommandDoors.js
Created March 31, 2018 23:22 — forked from goblinHordes/CommandDoors.js
CommandDoors for Roll20 API Use CommandTokens to toggle open/closed states for doors, including wall modification for dynamic lighting.
/*
CommandDoors
Use CommandTokens to toggle open/closed states for doors, including wall modification for dynamic lighting.
Requires: CommandTokens.js
Once configured, doors are easy to use - simply move the associated CommandToken to toggle the door from open
to closed and back again. Configuring the doors takes a bit of work, but there is a helper function to
make the process pretty easy.
Before configuring a door, first look at the components of a CommandDoor. A CommandDoor consists of three tokens
@VoltCruelerz
VoltCruelerz / 5eOGLInventoryTracker.js
Created March 31, 2018 22:34 — forked from oukag/5eOGLInventoryTracker.js
5e OGL equipped inventory tracking
/**
* Inventory Tracker for 5e OGL character sheet
*
* Allows for quick access to the equipped items of a character.
*
* Commands:
* !equipShow [--item|<ITEM_NAME> [--charid|<CHARACTER_ID>]]
* Shows the equipped item(s) for the character that belongs to the selected token.
* If no arguments are given, displays all equipped items of the character representing the selected token.
*