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 / LcpJsonBuilder.js
Last active December 13, 2023 20:20
LCP Json parser for Roll20
// STEP 1: DEFINE YOUR DATABASE
// Define a var as below, assigning the contents of the JSON file as the content of the variable.
// EXAMPLE:
// var npcCoreClassData = [...];
var npcCoreClassData = [];
var npcCoreFeatureData = [];
var npcCoreTemplateData = [];
// STEP 2: Add each of your global variables to their appropriate data sets below, delimited by commas
@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 / 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 / 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 / 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.