In my game, a character greets the player when he passes by, via bark dialogue, which works well. I'd like to randomly shuffle the voice audio files, to prevent the player from hearing the same intonation all the time. So I added this Sequence, but it always plays the first file:
Code: Select all
RandomizeNextEntry(true);
AudioWait(Voice/Receptionist - Good day sir 1);
AudioWait(Voice/Receptionist - Good day sir 2)
Furthermore, I'd like there to be a minimum interval between this specific bark, so that the player isn't greeted more often than once per minute for example. What's the simplest way to implement this? Can it be done with a variable (lastBarkTime) and Lua script in Dialogue System, or do I need to write C# scripts?