I'd like to be able to use a variable to determine what expression a character has for a particular line, and I've been unable to determine how to do this. Basically, what I'd love is to be able to do something like this:
Code: Select all
$ mood = "happy"
zoe [mood] "Look at my face and tell me how you think I feel."
or
Code: Select all
$ mood = "happy"
$ zoe("Look at my face and tell me how you think I feel." tag=mood)
Or anything like that! As long as I can use the value of the variable to determine what image to use without having to set up a giant if-elif-elif-elif-elif-else block, I'm happy.
For bonus points, this would be even cooler:
Code: Select all
$ mood1 = "happy"
mood2 = "grinning"
zoe [mood1] "Look at my face and {nw}"
extend [mood2] "tell me how you think I feel."
...although this one is even trickier, since I haven't seen a Python equivalent for extend. I know I can use the {fast} tags to replicate this behavior without "extend," but that gets cumbersome when I'd like to do multiple face changes per line. Being able to leverage extend would be much cleaner.
Thank you very much for any help you can provide! I've taken a look at the docs (and even the renpy library source code) and not been able to figure this one out.