Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
I am adding voice acting to parts of my game, and I have the labeling down pact, but I am wondering if there was a way to make the formatting less intrusive. Right now I have to put:
begin voice block "voice/part1_%s.ogg"
p "I am person 1"
d "I am person 2"
end voice block
Which would automatically find the number of separate lines between the beginning and end, and play numbered voice files in sequence (with the string being the number). That would eliminate much of the grunt work of placing "play voice" commands before every sentence.
I don't see how doing that would streamline the process, though, it's still the same amount of extra cruft if not moreso. I was looking for a way to do it without using any filenames. Maybe there could be something that uses the music queue?