Hey again!
I'm trying to do a specific style of voice lines, where each character randomly chooses from a small list of syllables every time they talk. Here's an example of the same effect in Chibi-Robo:
(cut to 1:58 for a good example, if the time stamp isn't jumping there automatically for you!)
As the text scrolls, characters speak from a random list of syllables. It's a fun way of adding voice acting for tone without actually voice acting your characters.
I know you can define a unique text scroll audio asset for each character, but that seems more geared toward games like Undertale, where characters are repeating the same tone over and over.
I've been looking into it for a while and I can't find a way to choose from a random list of syllables in Adventure Creator (please correct me if I'm wrong!). If it's not currently possible, could this be added?
-John
Comments
While you can look to the Unity forums for some advice on how to write a script that plays a random sequence of AudioClips, you can hook this script into AC by using custom events.
The custom event system provides you with "hooks" that basically let you call your own code when common AC tasks get run. These tasks include the starting and stopping of speech - which you can use to start and stop your own audio-playback code.
Here is a tutorial on writing custom events - which fortunately also makes use of the OnStartSpeech event that you'll need. The other event you'll need is OnStopSpeech