Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Play sound effect from macro

Im using very simple macros because i dont know how to do anything fancier. here is an example

/me swings his axe.

/roll 1d20+6 Melee Attack

/roll 1d10+1 Damage

Would you please explain to me how to call the specific sound effects i'm after like cure light wounds and various weapon hits from the battle bards section of the jukebox?

I tried searching and got Scotts API, didn't understand what I was looking at and messaged him and he told me that Victor had taken it over 2 years ago. So i don't know what to really search for or how to implement it.
May 07 (4 years ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

This video will show you how to install an API.

How to Install Roll20 API Scripts


After installing Roll20 AudioMaster, run these commands to copy the track names into its database:


!roll20AM --config,remove
!roll20AM --config,import


You can put them in a macro if you wish, since you will need to run them after you make any changes to your jukebox.



To play any particular track, this is the basic command.

!roll20AM --audio,stop|TRACKTITLE



There used to be a little hack that would allow you to play it automatically upon casting a spell or rolling an attack. That hack was deprecated. The best option I have found is to include this as the last line in the description of a spell or attack:

(Play Sound)[!roll20AM --audio,stop|TRACKTITLE]


This will create a chat button you can push to play the sound whenever the spell or attack is used.


keithcurtis said:

This video will show you how to install an API.

How to Install Roll20 API Scripts


After installing Roll20 AudioMaster, run these commands to copy the track names into its database:


!roll20AM --config,remove
!roll20AM --config,import


You can put them in a macro if you wish, since you will need to run them after you make any changes to your jukebox.



To play any particular track, this is the basic command.

!roll20AM --audio,stop|TRACKTITLE



There used to be a little hack that would allow you to play it automatically upon casting a spell or rolling an attack. That hack was deprecated. The best option I have found is to include this as the last line in the description of a spell or attack:

(Play Sound)[!roll20AM --audio,stop|TRACKTITLE]


This will create a chat button you can push to play the sound whenever the spell or attack is used.



appreciate the feedback but that was exactly what i was looking for. oh well. do you know if its possible to setup a macro to use a specific animation? like a fireball or something?

May 08 (4 years ago)
keithcurtis
Forum Champion
Marketplace Creator
API Scripter

Macro? No. Macros don't control things. There might be an API script, but I don't mess with animations, so can't answer to that.

May 08 (4 years ago)

Edited May 08 (4 years ago)

This video may help with the FX if this works for what you are looking for.
https://www.youtube.com/watch?v=QChXpQufxzk


Kilter said:

This video may help with the FX if this works for what you are looking for.
https://www.youtube.com/watch?v=QChXpQufxzk


thank you, I think i can piece together what I want to do from that video.1 final question, is there a way to have the status ailments count down each round? Like if I put a red dot with a 3 on a token, how do i make that automatically reduce by 1 each round so i don't have to manually do that for each status ailment each round?

May 09 (4 years ago)

The Script CombatMaster I belive has that feature or something similar. Or you can check out the stupid trick threads they may have some why listed there as well.
https://app.roll20.net/forum/post/5899495/stupid-roll20-tricks-and-some-clever-ones