Character Speaking Sounds

I want to do something with the text in my RPG game. I want to have it so when characters talk, they don't just make little sounds with their texts, but I want it to be like moon RPG and Chulip where it sounds like different voice clips stitched together randomly. How can I make this work?

Listen to how the characters speak in these games and you would know what I am talking about:


In your events before Show Texts, you assign a random number to a variable. Use Conditional Branches to play a different sound effect depending on the value.

Copy and paste.

There are certainly other things that could be done, writing a plugin that would represent that process in code and hook it into the Show Text command; but that's a solution you can implement without help or waiting.
Alright, I got the conditional branches all set up as well as the controlled variable. This is what it now looks like:
1705261410866.png


However, I'm still having problems. I have all the voice clips but I want them to repeat for as long as the text is going. It will only play one of the sound files I have and stop there. How can I make these sounds repeat when the text is scrolling?

Original thread: https://forums.rpgmakerweb.com/threads/character-speaking-sounds.164408/