Code: Select all
$ mood = "fine"
voice ["I_am.ogg","%(mood)s.ogg"]
Player "I am %(mood)s."
Code: Select all
$ foo = "%(mood)s.ogg"
$ renpy.music.play(("I_am.ogg",foo),loop=False,channel=2)
Then I tried renpy.music.play: no. I added:
Code: Select all
$ renpy.music.set_volume(1, channel=2)
However after placing it in a different position of my game it stopped working again. For no apparent reason I switched to channel=3 and it worked again *duh* But it does not work anymore with the string interpolation, only when i give static filenames o_0;;;
Code: Select all
$ foo = "fine.ogg"
$ renpy.music.set_volume(1, channel=3)
$ renpy.music.play( ("I_am.ogg",foo),loop=False,channel=3)
does only play "I_am.ogg" and not "fine.ogg", while this works:
$ renpy.music.set_volume(1, channel=3)
$ renpy.music.play( ("I_am.ogg","fine.ogg"),loop=False,channel=3)
And should the interpolation work in that context? At one time it did seem to work - but I tried so many times in such short succession that I might confuse my results now...