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

When I click on a certain button, I'd like music from my library to play. How do I do that?

I have a PF 1e bard. When he does Bardic inspiration I'd like a song from my jukebox to play. I know it's a macro of some type but I'm not sure how to do it. Any help? 
1648695297

Edited 1648695415
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hi Tom! It's an API script. (Two, actually). Roll20 Audio Manager gives you amazing control over the jukebox through chat commands (buttons), and Simple Sound gives you basic play/stop commands. I prefer the simpler version, since I usually use audio for sound effects, not music. Both are available through One Click install.
1648695308
vÍnce
Pro
Sheet Author
I don't think you can do this without an API script. Here's one that might work. <a href="https://app.roll20.net/forum/post/10593263/script-simple-sound" rel="nofollow">https://app.roll20.net/forum/post/10593263/script-simple-sound</a> You will probably need to make a macro that executes Bardic Inspiration and on a second line call the sound. example; !splay eye_of_the_tiger %{selected|repeating_ability_-MQVqebNO1CFJNImHMZM_roll}
There are actually a few api scripts to use this for.&nbsp; I use a combination of roll20AM and customizeable roll listener to do this.&nbsp; I have about 20 or so weapon sounds for various weapon types that will auto fire random ones of when players roll an atkdmg template with specific phrases in them.&nbsp; I also have some players wombo combo abilities that will play a sound automatically when they use them.&nbsp; You could put a roll20am command or the other api script command in their macros but there is a bug currently that messes with multiple commands in macros so I installed CRL to auto run the second command for me.&nbsp; I also have a playlist of 20 or so fumble and crit sound effects that fire when anyone rolls one of those.&nbsp; Can only do shuffle with roll20am, not the other sound api.&nbsp;&nbsp;
1648702541

Edited 1648702723
Don't go crazy with sounds though, try to keep it to unique events, I have the weapon sounds but I turned their volume way down.&nbsp; Do it for limited resource sounds like rages for barbs, action surge for fighters, wildshape for druids.&nbsp;&nbsp; Here is an example of a setup for Roll20AM+CRL CRL is the only script I am aware of where the multiple commands bug does not happen, something about how it fires them, it always works whereas players and DM's don't have them work when you combine a bunch of commands into a macro.&nbsp;&nbsp;
1648727339

Edited 1648727392
Andreas J.
Forum Champion
Sheet Author
Translator
As DM Eddie said,&nbsp; you could combine Simple Sound with Script:Customizable Roll Listener to have a certain sound automatically play when you roll the inspiration die. The second link gives an example on how this can be set up. Recommend using Simple sound over Roll20 Audio Master , as it's simpler to use.
I have the macro set up to where it calls the action but can't get the song to play. In my music library with the name reaper
OK got it to where the music will play when I click the macro button, now want to make it callable from token actions: click on token, click on special abilities, click on inspire courage and the description comes up and the song starts...
I really don't think it will reliably do both/multiple commands like that, roll20 has had this long standing bug with macro calls and mulptle commands.&nbsp; You might have to install CRL but its a pretty awesome script that automates a ton of stuff.&nbsp; The reason why I use roll20am over simple sound is because you can set a playlist to play once, shuffle, which is great for random sound effects like when you have 30 sword sound effects or a soundboard for crits and fumbles.&nbsp;&nbsp;
1648754522
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Tom N. said: OK got it to where the music will play when I click the macro button, now want to make it callable from token actions: click on token, click on special abilities, click on inspire courage and the description comes up and the song starts... This is where the steps get blurry. Clciking on a token does not automatically show whatever "special abilities" are. Are these token action buttons? If so, can you show the contents of one? You can easily add an API call within a Token Action. Within a built-in sheet Roll Button, not so much. If the Token Action calls a sheet action, then the call can be introduced there as well. If you post specific steps, taking care to explain the steps in more detail, we might be able to suggest a course of action. FWIW, the bug DM Eddie describes is indeed real, but seems to happen haphazardly, and more often to long strings of commands issued in one go. Multiple failures over numerous uses of a two-command Macro or Ability indicate a different problem, not the bug.
1648759110

Edited 1648759277
OMG this has just totally created a lightbulb in my head for bards.&nbsp;&nbsp; 1.&nbsp; Create a global damage modifier called Bardic Inspiration(for the record this template would be "simple".) 2.&nbsp; Install CRL and roll20AM.&nbsp;&nbsp; 3.&nbsp; Upload tons of shortish funny one liners/sea shantys/song lyrics. 4.&nbsp; Put them in a playlist, set roll20AM to have that playlist be play once and shuffle(4 arrows pointing in different directions) 5.&nbsp; Set the CRL trigger for Keyword:&nbsp; Bardic, Template: simple(capital maybe?), Critical/fumble doesn't matter, Commands:&nbsp; \\ !roll20AM --audio,play,nomenu|Bardic Playlist EDIT:&nbsp; Messed up the slashes so I bolded the right ones Lore bards:&nbsp;&nbsp; Same thing only make a Cutting Words template and go to town with oneliner insults.&nbsp;&nbsp;
Lil tidbit about roll20AM, any time you add or remove audio from that sessions jukebox tab, you must do "Remove all", then "Import Jukebox", then finally adjust any of your playlists settings back to play once/shuffle(4 arrows pointing different directions).&nbsp; if you do not intend on every playing playlists in a special way, you could use the other sound player api, but you need roll20AM if you want a shuffle.&nbsp;&nbsp;
1648770256
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
DM Eddie said: OMG this has just totally created a lightbulb in my head for bards.&nbsp;&nbsp; I had a warlock with a crow familiar that constantly insulted him as a punishment from his patron. I found a list of 100 D&amp;D insults and put them into a rollable table, and gave him a token action so the "character" could quote them. Then I gave the macro to all the other players, so they could have him insult my character whenever they felt it appropriate.
keithcurtis said: DM Eddie said: OMG this has just totally created a lightbulb in my head for bards.&nbsp;&nbsp; I had a warlock with a crow familiar that constantly insulted him as a punishment from his patron. I found a list of 100 D&amp;D insults and put them into a rollable table, and gave him a token action so the "character" could quote them. Then I gave the macro to all the other players, so they could have him insult my character whenever they felt it appropriate. Awesome stuff right there lol.&nbsp;&nbsp;
Tom, did you get your answer? I can do this but I'm&nbsp; not sure I can explain how. I could make a game and show you how though.
YEAH i DID...THANKS