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

API for sound effects and tokens

Hi, is there an easy way to associate a token on a Roll20 map to a sound effect, or a music? For instance, a creaky sound effect of an opening door, that I can activate by just clicking on the token? That would be immensely helpful during my games!!! Thanks a lot for your help!!!
1621779550
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Although you can't do it quite that directly, you can almost achieve it. Roll20 Audio Master is the script you want to use. As a Pro user, you have access to API scripts. If you've never used one, this video helps to explain how to install them:  How to Install Roll20 API Scripts . Once you have installed Roll20AM, you can use its menu system to import a database from your jukebox playlist. This will allow you to make macros to play any of your audio. So while you can't click an icon on the desktop to play the sound, you can associate an icon with a token action button. You can select the door token for instance, and press a token action button to play the creaking sound. Or you could create a  Chat Menu  to make "soundboards" for specific dungeon levels.
Thanks Keith, I did install Roll20 AM, but I do not know how to create the required macros though.... ....I might try to use the Chat Menu to create a soundboard for each map!!! I seem to remember there was an API to do something similar to what I was looking for, but I couldn't find it anymore.... Best wishes, Giorgio
You could set up a "door" character sheet and link all your door tokens to that sheet. Make a macro for the "door" character that calls AudioMaster. Let's say your sound effect is called "creak": !roll20AM --audio,play,nomenu|creak Check the checkbox to turn that macro into a token action. Then, every time you select a door token on the VTT your "creak" macro button will show up on screen.
1621807508
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Giorgio G. said: Thanks Keith, I did install Roll20 AM, but I do not know how to create the required macros though.... ....I might try to use the Chat Menu to create a soundboard for each map!!! I seem to remember there was an API to do something similar to what I was looking for, but I couldn't find it anymore.... Best wishes, Giorgio Try this . I think I've edited it to be up-to-date.