Skip to content

Instantly share code, notes, and snippets.

View revilowaldow's full-sized avatar
🌱
chilling

Lyra [he/him] revilowaldow

🌱
chilling
View GitHub Profile
@revilowaldow
revilowaldow / generateNamedTokens.js
Last active December 17, 2024 22:55
Foundry Scene & Token Handling Macros
(async () => {
const api = game.modules.get("plutonium").api;
const ipt = [
["Bounty Hunter", "M"], // Replace this table
["NAME", "SIZE_ABV"]
];
for (const [name, size] of ipt) {
const {dimensions = 1, scale = 1} = api.util.tokens.getTokenDimensionsAndScale(size);
@revilowaldow
revilowaldow / pdf-extract-images.py
Last active December 7, 2024 14:19 — forked from XBigTK13X/pdf-extract-images.py
A 5etools focused script to automate pdf image extraction and masking. Also generates a cover thumbnail
#! /usr/bin/python3
# IMPORTANT! This script requires a Unix based system. Such as Mac, Ubuntu, or Windows Subsystem for Linux (WSL) running under Windows. You cannot use it in Windows alone.
# The reason for this is that the poppler-utils dependency does not have all the required features on Windows.
# This script requires poppler-utils (containing: pdfimage, pdftoppm), imagemagick (containing: convert), and alive-progress (containing: alive_bar)
# If your pdf file contains jp2 images, you can either install libopenjp2-tools (containing: opj_decompress), or uncomment the line that indicates a large performance hit
# Example usage: python3 pdf-extract-images.py "Players Handbook.pdf" "PHB"
@revilowaldow
revilowaldow / Ghostfire Gaming; Grim Hollow - The Monster Grimoire-worse20.json
Created July 29, 2023 12:54
Grim Hollow Monster Grimoire with reduced features until worse20 gets sorted
This file has been truncated, but you can view the full file.
{
"_meta": {
"sources": [
{
"json": "GHMG",
"abbreviation": "GHMG",
"full": "Grim Hollow: The Monster Grimoire",
"authors": [
"Ghostfire Gaming",
@revilowaldow
revilowaldow / Açaí.md
Last active September 18, 2022 15:07
Character Backstory

Açaí Iluliaq

Images