Hi,
So I'm trying to make a Character creation screen for a game on Ren'Py but when I launched it it said this: "File "game/options.rpy", line 265: expected statement."
So I was wondering if anyone could tell me how to fix this error, and/or what it means.
Thank you very much in advance!
File "game/options.rpy", line 265: expected statement.
Protagonist composite= LiveComposite ((0, 0),
^
(0, 0), "main_character_in_uniform.jpeg",
(0, 0), ConditionSwitch (
"hair == '1'", "hairstyles/short-straight-boys-cut-lineart.jpeg",
"hair == '2'", "hairstyles/short-straight-hair-with-headband-lineart.jpeg",
"hair == '3'", "hairstyles/short-straight-hair-with-two-ponytails-lineart.jpeg",
"hair == '4'", "hairstyles/short-wavy-hair-lineart.jpeg",
"hair == '5", "hairstyles/medium-straight-hair-pinned-back.jpeg",
"hair == ''6", "hairstyles/medium-straight-hair-plait-lineart.jpeg",
"hair == ''7", "hairstyles/medium-straight-hair-with-fringe-lineart.jpeg",
"hair == ''8", "hairstyles/medium-straight-hair-with-pouf.jpeg",
"hair == ''9", "hairstyles/medium-straight-hair-with-two-ponytails-lineart.jpeg",
"hair == ''10", "hairstyles/long-wavy-hair.jpeg",
"hair == ''11", "hairstyles/very-long-straight-hair-with-fringe.jpeg",
"hair == ''12", "hairstyles/very-long-wavy-hair-lineart.jpeg",
"hair == ''13", "hairstyles/very-long-wavy-hair-with-sidefringe-lineart.jpeg",
"hair == ''14", "hairstyles/wavy-hair-tied-up-lineart.jpeg",
),
(0, 0 ),"medium-straight-hair-with-fringe-lineart.jpeg"
(0, 0), ConditionSwitch (
"hair colour == '1'", "hairstyles/medium-straight-hair-with-fringe-black.jpeg",
"hair colour == '2'", "hairstyles/medium-straight-hair-with-fringe-blonde.jpeg",
"hair colour == '3'", "hairstyles/medium-straight-hair-with-fringe-blue.jpeg",
"hair colour == '4'", "hairstyles/medium-straight-hair-with-fringe-brown.jpeg",
"hair colour == '5'", "hairstyles/medium-straight-hair-with-fringe-green.jpeg",
"hair colour == '6'", "hairstyles/medium-straight-hair-with-fringe-pink.jpeg",
"hair colour == '7'", "hairstlyes/medium-straight-hair-with-fringe-purple.jpeg",
"hair colour == '8'", "hairstyles/medium-straight-hair-with-fringe-red.jpeg",
),
)
File "game/options.rpy", line 265: expected statement. Help
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
-
- Newbie
- Posts: 9
- Joined: Sat Jan 21, 2012 10:06 am
- Contact:
- PyTom
- Ren'Py Creator
- Posts: 16097
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: File "game/options.rpy", line 265: expected statement. H
Did you leave out the image keyword?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
-
- Newbie
- Posts: 9
- Joined: Sat Jan 21, 2012 10:06 am
- Contact:
Re: File "game/options.rpy", line 265: expected statement. H
Oh right. Thank you so much! I feel a bit stupid now.
Who is online
Users browsing this forum: Bing [Bot]