Skip to content

Instantly share code, notes, and snippets.

View thejoester's full-sized avatar
🎲
Gaming

Joseph Thomas thejoester

🎲
Gaming
View GitHub Profile
@thejoester
thejoester / AwardHeroPoints.js
Last active June 18, 2025 07:50
PF2e Hero Point macro
(async () => {
if (!game.user.isGM) {
ui.notifications.warn("Only the GM can award Hero Points.");
return;
}
let formData;
try {
formData = await foundry.applications.api.DialogV2.prompt({
@thejoester
thejoester / gist:6a419ecbe3fd1e06542cd36654cd8dff
Created May 28, 2025 07:22
FoundryVTT Macro: display world data
/*
====================================================================================
World Data Usage Snapshot Macro (Manual Tabs Version)
------------------------------------------------------------------------------------
This macro scans all world-level documents in Foundry VTT (v12.x), including:
- Actors
- Items
- Scenes
- Journals
@thejoester
thejoester / gist:3a266f0866adc2e3ca1b078dadbef4e7
Last active May 24, 2025 11:54
FoundryVTT Whisper Macro (v12+)
/* *********************************************************************
FoundryVTT Whispter Macro (v12+)
Author: TheJoester
Description: Macro will open a dialog with a drop-down list of
logged in users, select a user, type a message, press send and
it will send a whisper to that player.
*/ **********************************************************************
@thejoester
thejoester / advanced-pull-to-scene.js
Created December 24, 2024 10:22
This macro allows a FoundryVTT GM to pull selected connected users to a chosen scene. It presents a dialog box listing all connected users with checkboxes, allowing the GM to select specific users. The dialog also includes a dropdown menu listing all available scenes, from which the GM can choose the target scene to pull users to. When the "Pull…
/*
********************************************
Macro Title: Advanced Pull to Scene
Author: TheJoester (https://github.com/thejoester)
Description:
This macro allows a FoundryVTT GM to pull selected connected users to a chosen scene.
It presents a dialog box listing all connected users with checkboxes, allowing the GM
to select specific users. The dialog also includes a dropdown menu listing all available
scenes, from which the GM can choose the target scene to pull users to.