Skip to content

Instantly share code, notes, and snippets.

@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
@SplenectomY
SplenectomY / flipCard.js
Created April 9, 2020 18:01
Flips card in roll20
// By: Christopher Buchholz
// with heavy copying from, I mean use of as a Pattern, TokenMod
var ChangeTokenImg = ChangeTokenImg || (function() {
'use strict';
var version = '0.1.32',
lastUpdate = 1509192678,
observers = {
tokenChange: []
@SplenectomY
SplenectomY / ObjExporter.cs
Last active March 28, 2024 16:38
A modification to the UnityObjExporter at https://github.com/dsapandora/UnityObjExporter
using UnityEngine;
using System.IO;
using System.Text;
using System.Collections.Generic;
using System;
using Object = UnityEngine.Object;
using Debug = UnityEngine.Debug;
using System.Threading.Tasks;
using UnityEngine.Events;