Code: Select all
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/images.rpy", line 6: Line is indented, but the preceding condition properties statement does not expect a block. Please check this line's indentation.
"jesse_base_1"
^
Ren'Py Version: Ren'Py 7.1.3.1092
Sat Mar 2 09:14:56 2019
Code: Select all
layeredimage jesse:
always:
"jesse_here"
if gender == 1:
if race == 1:
"jesse_base_1" ## <== HERE
elif race == 2:
"jesse_base_3"
elif race == 3:
"jesse_base_5"
elif race == 4:
"jesse_base_7"
elif race == 5:
"jesse_base_9"
elif race == 6:
"jesse_base_11"
elif gender == 2:
if race == 1:
"jesse_base_2"
elif race == 2:
"jesse_base_4"
elif race == 3:
"jesse_base_6"
elif race == 4:
"jesse_base_8"
elif race == 5:
"jesse_base_10"
elif race == 6:
"jesse_base_12"
group face:
attribute normal default:
"jesse_face_normal"
attribute amused:
"jesse_face_amused"
attribute angry:
"jesse_face_angry"
attribute annoyed:
"jesse_face_annoyed"
attribute closed:
"jesse_face_closed"
attribute happy:
"jesse_face_happy"
attribute sad:
"jesse_face_sad"
attribute surprised:
"jesse_face_surprised"
attribute thoughtful:
"jesse_face_thoughtful"
if armor == 0:
"jesse_here"
elif armor == 1:
"jesse_armor_goldengoliath"
elif armor == 2:
"jesse_armor_redstoneriot"
elif armor == 3:
"jesse_armor_enderdefender"
elif armor == 4:
"jesse_armor_swordbreaker"
elif armor == 5:
"jesse_armor_shieldofinfinity"
elif armor == 6:
"jesse_armor_dragonsbane"
elif armor == 7:
"jesse_armor_starshield"
elif armor == 8:
"jesse_armor_adamantineimpervium"
The purpose of this code is to make a character that switches between genders; so if gender is 1 and race is 2 you end up with a certain player. In the past I used LiveComposite and ConditionSwitch to get this, but I'm trying to use LayeredImage.