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 here.
×
×
Cookie Preferences
We use Cookies to help personalize and improve Roll20. For more information on our use of non-essential Cookies, visit our Privacy Policy here.
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
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.
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 !!