Skip to content

Macros and API

Rutz edited this page Nov 5, 2026 · 1 revision

Macros & API

Once the world is ready, use game.rutzGacha.

Call
offer(actors, machine, set) Posts a chance card. machine: null (as set), "roulette", "slot", "highlow", "chinchiro" (all but the wheel are Plus). set: "forage" (exploration finds) or "loot" (battle loot, Plus).
open(actor) Opens that character's game window.
ticket(actor) The character's waiting chance, or null.
party() The characters the GM window lists (the PF2e party, else the player characters).
manage(tab) Opens the gacha manager. tab: "rewards", "games" or "rules".
edition "lite" (free) or "plus".

tables() and odds() remain for old macros; they open the gacha manager's Rewards tab.

Example (Plus) — a Chinchirorin battle-loot chance for the selected tokens:

const actors = canvas.tokens.controlled.map(t => t.actor).filter(a => a?.type === "character");
game.rutzGacha.offer(actors, "chinchiro", "loot");

Clone this wiki locally