In my visual novel, I have small pauses in between dialogue. The code currently looks like this.
The code works fine. But I feel this is extremely inefficient and can get very messy when I eventually get up to hundreds of lines of dialogue.
Is there a way to make this script more efficient? If so, how?
Thanks for your help.

You could do something with character callbacks. It lets you add functions that run anytime a certain character speaks.
You could also make it apply to multiple characters at once using config.all_character_callbacks if you want
And if you if you want it to apply to everyone by default, you can change the "pause" parameter to be something other than zero.