frondeus / fvtt-syrin-control

Syrinscape Online Control plugin for FoundryVTT
MIT License
13 stars 4 forks source link

Monks active tiles #69

Closed arcanjl closed 1 year ago

arcanjl commented 1 year ago

Trying to get a tile to play music. Works for all the sounds I have locally, but not a syrinscape. image

Majea commented 1 year ago

Support for Monk's Active Tiles would be amazing!

arcanjl commented 1 year ago

I thought it would if it was local...

Majea commented 1 year ago

Actually, I have tried using a macro. It works for elements but not for moods. The game.syrinscape object exposes playElement but not playMood. If what you want is to play an element, the macro will do the job.

  1. Create a macro game.syrinscape.playElement(args[0]);
  2. Save it with a nice name such as Synrinscape play element
  3. in your active tile, add an action Execute macro and select your new macro
  4. In the arguments, put the id of the element you want to play.
  5. save. Normally, that should work.

Edit: you may need the advanced macros plugin to support arguments in macros.

In my case, I'm stuck because I'd like to trigger a mood and not an element.

arcanjl commented 1 year ago

That’s great. Thank you. I am in your boat, but if I do a trap or something I know how now ☺️👍🏼

frondeus commented 1 year ago

Actually, I have tried using a macro. It works for elements but not for moods. The game.syrinscape object exposes playElement but not playMood.

This is no longer true. It has been added in 0.4.0-alpha1

Anyway, I haven't tested interop with Monks Tiles yet, so I need to check it before I let you know what went wrong.

Majea commented 1 year ago

Bardzo Dziękuję. Looking forward to see that API exposed. That's great news indeed!

arcanjl commented 1 year ago

That is awesome! Can I buy you a coffee?

YenBenGrey commented 1 year ago

Hello there,

What I would do, now that I have tested different things, is import a mood in to a playlist then in a Monk's tile, add, Play Playlist item on a click of the mouse. Or any other trigger for that matter.

frondeus commented 1 year ago

Instead of "Play sound file" please use "Play Playlist": image

That action works as intended. I will not implement support for "Play sound file" because syrinscape mood is not a single wav track - it is a set of multiple sounds played independently.