Macro Recipes
Toggle a top-down hurricane
Section titled “Toggle a top-down hurricane”await FXMASTER.api.presets.toggle("hurricane", { topDown: true, soundFx: true, background: true, tokenTrails: true});Replace current preset weather
Section titled “Replace current preset weather”await FXMASTER.api.presets.switch("drizzle", { density: "low", speed: "low", belowTokens: false});Clear all scene-wide FXMaster effects
Section titled “Clear all scene-wide FXMaster effects”await FXMASTER.api.stopSceneEffects({ skipFading: true});This affects scene-wide FXMaster rows. Region documents and their behaviors remain in place.
Temporarily disable Region effects
Section titled “Temporarily disable Region effects”const disabled = await FXMASTER.api.stopRegionEffects({ scene: canvas.scene});Re-enable the FXMaster Region behaviors later:
const enabled = await FXMASTER.api.startRegionEffects({ scene: canvas.scene});Suppression behaviors are not changed by these methods.
Target a different scene
Section titled “Target a different scene”const scene = game.scenes.getName("Harbor");
await FXMASTER.api.presets.play("fog", { scene});Check preset availability
Section titled “Check preset availability”const valid = new Set( FXMASTER.api.presets.listValid({ topDown: false }));
if (valid.has("luminous-sky")) { await FXMASTER.api.presets.play("luminous-sky");} else { ui.notifications.warn( "Luminous Sky is not available with the active FXMaster modules." );}Add and remove a stable filter
Section titled “Add and remove a stable filter”await FXMASTER.api.effects.play({ filters: [ { id: "apiMacro_ritualBloom_f", type: "bloom", options: { blur: 2, bloomScale: 1, threshold: 0.45 } } ]});await FXMASTER.api.effects.filters.stop([ "apiMacro_ritualBloom_f"]);Toggle a saved effect group
Section titled “Toggle a saved effect group”await FXMASTER.api.effects.toggle({ toggleKey: "crypt-ambience", effects: [ { kind: "particle", type: "fog", options: { density: 0.25, speed: 0.2 } }, { kind: "filter", type: "color", options: { color: { apply: true, value: "#6f7d96" }, saturation: 0.75 } } ]});Apply weather only at night
Section titled “Apply weather only at night”await FXMASTER.api.presets.play("gravewind", { darknessActivationEnabled: true, darknessActivationMin: 0.6, darknessActivationMax: 1, direction: "west"});Inspect active presets
Section titled “Inspect active presets”console.table( FXMASTER.api.presets.listActive({ scene: canvas.scene }));