Skip to content

Instantly share code, notes, and snippets.

View Geritz's full-sized avatar

Spencer Moran Geritz

  • Portland, OR
View GitHub Profile
@Geritz
Geritz / AutoMob5e.js
Last active July 1, 2021 03:43
A mob damage calculator for DND 5th edition on Roll20.
/*
AutoMob5e.js by Spencer Moran. MIT License
This program automatically calculates mob combat attacks
and damage based on a few input values, complete with a
handy query macro to speed things along. You can modify the
generated macro if you want to save time with some default
values.
Intended for use with DND 5e.
@Geritz
Geritz / LancerCoreHelper.js
Last active November 7, 2023 14:34
Lancer Core Helper Script for Roll20
// LancerCoreHelper.js by Spencer Moran
// V. 1.5.01 - 6/6/2023
// This script created to help automate some of the more tedious aspects of the LANCER system.
//PREREQUISITES AND DEPENDENCIES
// 1. 'Lancer status icons for Roll20' pack by Hayley - https://drive.google.com/drive/folders/1bY1GPvCP3jNajtXSElm40VM_REH5eQ6i
// is required to use the set-status buttons on the UI. Not having the correctly named token markers will cause
// the script to crash. A fix is in progress. Note that if you want to use a different set of markers an example macro has
// been created so you can still have access to the functionality. The get-status macro is token-agnostic.
// SEE WARNINGS->STATUS ICONS
@Geritz
Geritz / GmtkTimers.js
Last active October 31, 2021 21:55
Game Master Toolkit - Timers
//GmtkTimers.js by Spencer Moran
// This script adds functions and events for keeping track of the myriad of conditions imposed over the course of a game.
// Note, this does not use the state object and will reset if the script is relaunched or the game session is closed.
//
//Functions:
// AddTurnCounter - Adds a turn counter that updates whenever the turn order is changed.
// Initialize - Adds a macro to query the important details of the AddTurnCounter function.
//
//Single-use spin up actions
on('ready', function(){
@Geritz
Geritz / LancerGMToolkit.js
Last active December 16, 2023 20:35
Lancer Game Master Toolkit
// LancerGMToolkit.js by Spencer Moran
// V. 1.3.05 - 2/4/2022
//Toolset for building abilities and token macros to use with NPCs with weird sheets
// Intended for use with LancerCoreHelper.js
// Also includes a turntracker for Lancer Combat including Activations!
// To Start enter the command:
// !lncr_gmtk_init
// into the chat window
//
// NOTE: Some buttons require the LancerCoreHelper.js script to be installed. See this gist to pick it up:
@Geritz
Geritz / LcpJsonBuilder.js
Last active October 19, 2024 21:42
LCP Json parser for Roll20
// LCP PC BUILDER by Spencer Moran
// AUTHORS NOTE: This script relies on a separate variables file called
// "ScriptData.js" which contains the datasets used by this script.
// YOU NEED BOTH FILES FOR THIS SCRIPT TO WORK. Due to load order restrictions
// The dataset will not register in this script until after you have first
// saved the script in Roll20. And then subsequently saved this script:
// STEP 1: Save ScriptData.js
// STEP 2: Save lcp_pc_builder.js
// You will need to do this each time you make a change to the datasets.
@Geritz
Geritz / ScriptData.js
Created October 19, 2024 21:56
Script data for lcp json parser for Roll20
// ADDING DATA TO THE LCP PARSER
// If you want to add homebrew/new data to the lcp parser for use in your games you need to complete a few steps:
// 1. Extract JSON files from the lcp file folder. This can be done by changing the extension of the .lcp file to .zip,
// and then extracting the folder.
// 2. Define a unique variable for each json file you want to include. Copy the contents of the JSON file into that variable
// var your_new_var = [ENTIRE JSON FILE];
// 3. Add the newly created variable to the appropriate data set at the bottom of this file.
// var frame_data_set = [lancer_frames, your_new_var];
// NOTE: The script ONLY supports the following types:
// 1. Frame