Sign up ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

At the start of my RenPy game, the player chooses a male or female character. The game plays out the same for both, save for some details.

The problem is that I want to write:

show hero normal

and get the image of the correct sex of the character chosen at the start.

I started to write a python function to do this, but it looks wrong because there seems to be enough ATL language to do this, even if I can't find a way.

Any idea?

share|improve this question

2 Answers 2

ATL doesn't have an if statement at the moment. You can use DynamicDisplayable for this - the code looks like:

image hero normal = ConditionSwitch(
    "male", "male_normal.png",
    "True", "female_normal.png")

I've added an ATL if statement to the list of things I'll add to Ren'Py in the future, since it really should be there.

share|improve this answer
I did see this solution on the wiki and tried to use it but it didn't work and I was in a hurry, so I did use the less flexible but instantly working choice ATL block statement instead. – Klaim Apr 22 '11 at 9:51

Someone on this forum showed me that I could use choice in ATL :

image hero normal:
    choice( hero_sex == "man" ):
    choice( hero_sex == "woman" ):

Not perfect solution but simple enough to solve my problem.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.