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

Trying to make attack macros with Roll20 AudioMaster

I'm attempting to find out how to make an attack macro for my players to use that plays different audio for rolling to attack, and rolling damage. When rolling to hit with a sword, for example, it would play a "woosh" sound using AudioMaster, and when rolling damage it would play a "clang" impact sound. I've found out I can use code in the description, eg: }} !roll20AM --audio,play,nomenu|Weapon Swing 2 ! But I'm unsure how to handle separate audio for attacking and rolling damage.
1559667939
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You might be able to use the Critical Roll Listener script, which looks for patterns in chat text and executes commands based upon them.
Having a bit of trouble trying to figure that out. !crl \\create,name=Test,[template=Test Template],[text=Hello],[\\!roll20AM --audio,play,nomenu|Shiny Sword Impact] I'm not much of a coder myself. I've basically been using simple commands to get things to work. Unsure of how to format this.
I'm not sure what happened, but now any time I play a piece of audio, load up the game or switch menus, I get a series of sounds repeatedly playing, and it's kind of made my game unplayable because I don't know how to get rid of it.
1559740438
GiGs
Pro
Sheet Author
API Scripter
If you disable the CRL script, they should stop. If you want to keep using CRL, look into the CRL help for how to delete commands you have already created. I havent used it, just looked at it recently so i know it can be done. It'll just be the delete command with the name of the effect you created.
1559758064
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Tea said: Having a bit of trouble trying to figure that out. !crl \\create,name=Test,[template=Test Template],[text=Hello],[\\!roll20AM --audio,play,nomenu|Shiny Sword Impact] I'm not much of a coder myself. I've basically been using simple commands to get things to work. Unsure of how to format this. Hi Tea, The CRL help text uses brackets (e.g. [...]), to denote optional arguments, they aren't included in the command (unless of course you actually want to look for brackets in the text). GiGs said: If you disable the CRL script, they should stop. If you want to keep using CRL, look into the CRL help for how to delete commands you have already created. I havent used it, just looked at it recently so i know it can be done. It'll just be the delete command with the name of the effect you created. Additionally, if for some reason the command doesn't work, you can delete the listener template from the attributes & abilities tab of the CRL character sheet.