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

Random Sound Generator

Does anyone know of any script that does random outcomes?  I want to add 5 different possible sounds to one attack roll using the  !roll20AM --audio,play|  script.  thanks
1651881370
vÍnce
Pro
Sheet Author
vÍnce said: I believe you can setup a "Melee" playlist for example, then use !roll20AM --config to change the scripts Playlist Mode: randomSingle. (Might have to set that on the audio player as well, not sure)  So that when you send the command; !roll20AM --audio,play|Melee It will randomly select a track on the playlist and play it once. At least that seems to work for me in a quick test.
thank you.. i will try to figure it out from here !!
1651888298

Edited 1651888859
vÍnce
Pro
Sheet Author
Although I set the Playlist Mode to randomSingle, I did have to toggle the player's mode as well. Also, I think there's a quirk that you must use the "Remove All" option and then Import, if you make changes to your jukebox. Maybe try; !roll20AM --edit,mode,random,single|Melee --audio,play|Melee to get everything in one command.
I did this by naming a number of sounds ending in a number - ie sword1, sword2, sword3 Then call the sound with a command that includes an inline roll: !roll20AM --audio,play,nomenu|sword[[1d3]]
Melvin the Mediocre said: I did this by naming a number of sounds ending in a number - ie sword1, sword2, sword3 Then call the sound with a command that includes an inline roll: !roll20AM --audio,play,nomenu|sword[[1d3]] awesome thanks !!