Search found 4 matches

by MaySilva
Thu Jul 02, 2020 3:55 pm
Forum: Ren'Py Questions and Announcements
Topic: I want to replace the directory of an image of the same name, depending on the player's choices. [SOLVED]
Replies: 5
Views: 311

Re: I want to replace the directory of an image of the same name, depending on the player's choices.

I think this will work yes! Can you tell me if the variable for this function can be accompanied by another one?
Example;

If blackhair == True and purpleeyes == True, cg1blackpurple.jpg
by MaySilva
Thu Jul 02, 2020 3:10 pm
Forum: Ren'Py Questions and Announcements
Topic: I want to replace the directory of an image of the same name, depending on the player's choices. [SOLVED]
Replies: 5
Views: 311

Re: I want to replace the directory of an image of the same name, depending on the player's choices.

Try ConditionSwitch maybe? image cg1=ConditionSwitch( "blackhair","cg1black.jpg", "True","cg1red.jpg", ) https://www.renpy.org/doc/html/displayables.html#ConditionSwitch As for how it will work with gallery... As long as you use default blackfair=True to define variable it probably should work. P.S...
by MaySilva
Wed Jul 01, 2020 4:07 pm
Forum: Ren'Py Questions and Announcements
Topic: I want to replace the directory of an image of the same name, depending on the player's choices. [SOLVED]
Replies: 5
Views: 311

I want to replace the directory of an image of the same name, depending on the player's choices. [SOLVED]

First of all, forgiveness for my English :oops: My visual novel will have a protagonist with different looks: red hair and black hair (there are other combinations, but for simplicity, let's just leave these). My visual novel also has an image gallery. I want the unlocked image to be of the hair cho...