Skip to content

Instantly share code, notes, and snippets.

@SplenectomY
SplenectomY / inventory_manager.js
Created January 1, 2015 09:17
Inventory manager v. 0.0.2 demo
// VERSION INFO
var InventoryManager_Version = "0.0.2";
// These values must be set for the script to work properly.
// Once a player has joined your campaign,
// their ID will show up in the API Output Console
// when the script fires up.
player_list = [
player_1_id = "-JeTLkLt_UFt7Boc1DsQ", /* Coille Flitterleaf */
@SplenectomY
SplenectomY / MakeYourTime
Last active August 29, 2015 14:12
Make Your Time: Persistent 24-hour clock and timer for Roll20.net
/////////////////////////////////////////////////
/***********************************************/
var MakeYourTime = {
author: {
name: "John C." || "Echo" || "SplenectomY",
company: "Team Asshat" || "The Alehounds",
contact: "echo@TeamAsshat.com",
},
version: "0.2",
gist: "https://gist.github.com/SplenectomY/1f198a3114903d7a3271",
@SplenectomY
SplenectomY / BloodAndHonor
Last active October 18, 2015 17:37
Blood And Honor: Automatic blood spatter, pooling and trail effects for Roll20.net
/////////////////////////////////////////////////
/***********************************************/
var BloodAndHonor = {
author: {
name: "John C." || "Echo" || "SplenectomY",
company: "Team Asshat" || "The Alehounds",
contact: "echo@TeamAsshat.com",
},
version: "0.6",
gist: "https://gist.github.com/SplenectomY/097dac3e427ec50f32c9",
@SplenectomY
SplenectomY / planetaryRotation.js
Last active October 31, 2017 18:14
A nice script for rotating planets (according to the Spelljammer campaign guide) in Roll20.
var SplenectomY = SplenectomY || {};
SplenectomY.planets = SplenectomY.planets || {};
//////////////////////////////////////////////////
//HERES THE CONFIG. SAVE AND RESTART UPON CHANGING.
SplenectomY.planets.clockwise = false;
//////////////////////////////////////////////////
//////////////////////////////////////////////////
@SplenectomY
SplenectomY / GIM.js
Last active November 4, 2017 02:36
Graphic Inventory Manager - Multidimensional token GUI for Roll20.net
state.SplenectomY = state.SplenectomY || {};
state.SplenectomY.inventory = state.SplenectomY.inventory || {};
state.SplenectomY.inventory.pageID = state.SplenectomY.inventory.pageID || {};
state.SplenectomY.players = state.SplenectomY.players || {};
state.SplenectomY.inventory.currentCaller = state.SplenectomY.inventory.currentCaller || {};
state.SplenectomY.inventory.currentCallerid = state.SplenectomY.inventory.currentCallerid || {};
var SplenectomY = SplenectomY || {};
SplenectomY.planets = SplenectomY.planets || {};
//////////////////////////////////////////////////
//HERES THE CONFIG. SAVE AND RESTART UPON CHANGING.
SplenectomY.planets.clockwise = false;
//////////////////////////////////////////////////
//////////////////////////////////////////////////
@SplenectomY
SplenectomY / SplenectomY_getAbilities.js
Last active November 21, 2017 17:55
Creates abilities for each character based on the repeating_action sections of the 5th Edition OGL character sheet
// SET CONFIG FIRST, THEN CHANGE "RUN" TO TRUE
// Create a button to roll HP for a selected NPC token. Requires TokenMod
var doHP = false,
// If you're done with all the config, set this to true and save the script.
// Be careful and make sure you're 100 percent ready. This script is going
// to make macro buttons for EVERY CHARACTER YOU HAVE. It will take a moment.
// These actions are not easily undone. Consider copying your campaign
// to test it first.
@SplenectomY
SplenectomY / profitable_routes.cs
Last active August 13, 2018 00:41
Space Engineers programming block script for calculating profitable trade routes, indirectly implements Frontier Economy mod and a handy LCD Network script
//For use with the Frontier Economy mod
//
//You'll need a grid that collects the prices of all the shops on the server. I recommend
//Network LCDs for this job. One shop per LCD is ideal. Doesn't matter if the prices don't all fit
//on screen. You should hide these ugly things out of sight anyway.
//
//On each screen, put [PRICES] in the name. Should then look like [Economy] [PRICES]
//
//Create an LCD with [Routes] in the name. That's it! This script will do the rest.
//It's a bit heavy on calculations so consider putting it on a timer block. See line 15.
@SplenectomY
SplenectomY / STC-Safe Auto LCD Script.cs
Last active December 14, 2018 18:36
Server-performance friendly version of the AutoLCD Script for Space Engineers by McMaster
//Make this number larger to slow the script down and prevent overheats.
public const int SlownessLevel = 2;
// Use this tag to identify LCDs managed by this script
// Name filtering rules can be used here so you can use even G:Group or T:[My LCD]
public string LCD_TAG = "T:[LCD]";
// How many lines to scroll per step
public const int SCROLL_LINES_PER_STEP = 1;
@SplenectomY
SplenectomY / SplY_PathBlocker.js
Last active December 22, 2018 17:36
Blocks tokens from going out "windows" on a Roll20 map, but allows them to see through it!
// This script will block tokens from going through "windows",
// or other transparent obstacles but allow sight through them.
// Will work for any paths drawn, even freehand and circles.
// (Circle/oval detection accuracy is reduced to save on processing time,
// because it's WAY harder to determine the intersect of an elipsoid vs.
// a line rather than line segments vs. a line. For better accuracy on curves,
// draw it freehand. Excessive use of this might cause slow performance)
// Default color for detecting the window path is yellow (#ffff00)
// You may change this color in the config below