League-of-Foundry-Developers / fvtt-module-furnace

34 stars 12 forks source link

Since PlaylistQoL is integrated into core, the macro function FurnacePlaylistQoL.PlaySound no longer works #111

Open ArdonDaros opened 3 years ago

ArdonDaros commented 3 years ago

I used to have a macro which would utilize the function FurnacePlaylistQoL.PlaySound to play certain sound effects in conjuction with other macros, but since PlaylistQoL has been integrated into core, the function no longer works.

I'm unable to find if there is a replacement code snippet I can use to perform the same function. I'm not a coder and I don't really understand code that well, but it would be nice to retain this function as it enables voice set macros and other fun stuff.

For instance, I have a library macro (SFXbuffs) that contains the code:

if(args[0] === "SFXGlobeShort") FurnacePlaylistQoL.PlaySound("SoundboardSFX", "SFXGlobeShort", true)

and I can use that to play the sound when I run another macro:

let SFXbuffs= game.macros.getName("SFXbuffs");
>>>other code stuff<<<
SFXbuffs.execute("SFXGlobeShort")

Edit: Nevermind, this has been fixed through other means, thanks!