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 July 9, 2024 23:39
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 August 21, 2024 18:54 — 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
# This script requires pdfimage, pdftoppm (poppler-utils), convert (imagemagick), and alive_bar (alive-progress)
# If your pdf file contains jp2 images, you can either (un)comment lines 84 & 85 for a significant performance hit, or you can also install opj_decompress (libopenjp2-tools)
# Example usage: python3 pdf-extract-images.py "Players Handbook.pdf" "PHB"
# Raw images will be written to <OUTPUT_DIR>/15-organized
# Attempts at merging masks and images will be output in webp to <OUTPUT_DIR/30-masked>
# Images without corresponding masks will be written in webp to <OUTPUT_DIR>/40-standalone
@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",
"Shawn Merwin"
@revilowaldow
revilowaldow / Açaí.md
Last active September 18, 2022 15:07
Character Backstory

Açaí Iluliaq

Images