Changing images with outfits and gender
Posted: Sat Nov 18, 2017 1:09 pm
I am trying to set up a system where not only does the character image shown change with gender selection, but with outfit worn. I didn't want to go into the complexities of composite images, since this isn't a dress-up game, just a bit of customization I want.
However, my image sets are static, and only go off default values no matter how much they are changed. Even when I put in choice threads, as I've seen suggested in other questions, it only goes to the default, not to the current setting. So:
Always shows pov_0_0_comms.png no matter how the values change.
Shows pov_0_0_comms.png, the default. But
Also shows pov_0_0_comms.png. I have checked the variables, and those are changing.
Ideally I'd want a more efficient way of doing this too, so I don't have to create massive choice loops for everything. I should be able to set up something like:
But all my efforts to do so have just returned the defaults. Tips on how to do this better would be appreciated.
However, my image sets are static, and only go off default values no matter how much they are changed. Even when I put in choice threads, as I've seen suggested in other questions, it only goes to the default, not to the current setting. So:
Code: Select all
define gender = 0
define outfit = 0
image pov comms:
choice(outfit == 0):
choice(gender == 0):
"pov_0_0_comms.png"
choice(gender == 1):
"pov_1_0_comms.png"
choice(outfit == 1):
choice(gender == 0):
"pov_0_1_comms.png"
choice(gender == 1):
"pov_1_1_comms.png"
Code: Select all
show pov comms
Code: Select all
$ gender = 1
$ outfit = 1
show pov comms
Ideally I'd want a more efficient way of doing this too, so I don't have to create massive choice loops for everything. I should be able to set up something like:
Code: Select all
Image("pov_%s_%s_comms.png" % (gender, outfit))