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

Roll20 Audio Master - repeat track X times?

Hopefully, I did not miss a previous post.  I did a bit of searching and did not find an answer to my question. I'm relatively new to Roll20 API scripting. Am I missing something about getting Roll20AM to play a specified track X times and then stop? I have a use case where I'd like to trigger a specific track to play a variable number of X times and then stop automatically.   [I have my own API script to manage dealing cards for a poker game.  I use the sendChat function to trigger Roll20AM to play a track.   For example:  If I deal 4 cards, I'd like a sound of a card "deal" to play 4 times.] I have experimented with a For Loop in my script to call the sendChat/Roll20AM command X times.  This works if I insert a delay of 2 seconds inside the Loop.  Using a shorter delay does not seem to work.  Roll20AM does not finish playing the first request before the second request is sent/received. I also experimented with creating a temporary Tag list with the same track repeated X times.   However, in my understanding of the Roll20AM "modes", a playlist/tag either loops continuously or only plays a single track from the list.   I don't believe there is an option to play the entire list once and then stop automatically.  Thanks in advance for any guidance or suggestions with Roll20AM functionality or scripting solutions,
1616649282
Victor B.
Pro
Sheet Author
API Scripter
No Roll20AM doesn't have you repeat X number of times.