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.
But I have like 80 voice clips for her that I don't want to adjust the volume in the files manually for.
How can I tell Ren'Py to change the volume of her voice clips through code?
Putting this after the label start doesn't do anything:
# inline in label
$ renpy.run( SetCharacterVolume('lisa', volume=0.6) )
# renpy.run() allows you to run a screen action in normal code
# or
default persistent._character_volume['lisa'] = 0.6
# outside any label
Note: If you were planning to allow the user to adjust each characters volume, you'd need to also adjust the max range on the bar for Lisa