I know this is me messing up the script to run the image change, I'm just not too clear how to correct it.
I have the main character image set as:
$ f = Character(
'Freya',
color="#B3476F",
show_two_window=True,
window_left_padding=140,
show_side_image=ConditionSwitch(
"'freya' == 'neutral'", "freyahead.png",
"'freya' == 'annoyed'", "freyamad.png",
"'freya' == 'calmblush'", "freyablushcalm.png",
"'freya' == 'blushmad'", "freyablushmad.png",
"'freya' == 'flustered'", "freyafluster.png", xalign=1.0, yalign=1.0))
And after the label start added in
$ freya = "neutral"
To have that particular image come up with her dialogue. However, every time it reaches her first line, the traceback text comes up. Did I miss putting something in?
DynamicDisplay/ConditionSwitch Issues {solved!}
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.
DynamicDisplay/ConditionSwitch Issues {solved!}
Last edited by Agent-J on Mon Sep 27, 2010 10:57 pm, edited 1 time in total.
-
- Veteran
- Posts: 258
- Joined: Mon May 17, 2010 2:09 pm
- Completed: Alone
- Projects: Many failed ones
- Location: Massachusetts
- Contact:
Re: DynamicDisplay/ConditionSwitch Issues
What's the traceback error say? It seems to me you're supposed to put everything on one line, rather than multiple ones like this:
$ f = Character('Freya', color="#B3476F, show_two_window=True, etc...)
All on one line, just like above.
$ f = Character('Freya', color="#B3476F, show_two_window=True, etc...)
All on one line, just like above.
Projects:
Alone- (Horror/Sci-Fi) Complete! Link
Demokratiya- (Adventure/Action) I'm kind of winging it with this one. Goal is 100,000 words. Yeah, it's gonna take a while.
{Last worked on Sept/28 : Word count (coding and all) ~4500}
Alone- (Horror/Sci-Fi) Complete! Link
Demokratiya- (Adventure/Action) I'm kind of winging it with this one. Goal is 100,000 words. Yeah, it's gonna take a while.
{Last worked on Sept/28 : Word count (coding and all) ~4500}
Re: DynamicDisplay/ConditionSwitch Issues
@cloudyssky
Multiple lines in parentheses are interpreted as a line, so it's not a problem.
@Agent -J
Change " 'freya' == 'neutral' " into "freya == 'neutral'".
Multiple lines in parentheses are interpreted as a line, so it's not a problem.
@Agent -J
Change " 'freya' == 'neutral' " into "freya == 'neutral'".
Code: Select all
init:
$ f = Character(
'Freya',
color="#B3476F",
show_two_window=True,
window_left_padding=140,
show_side_image=ConditionSwitch(
# "variable == value, image file name"
"freya == 'neutral'", "freyahead.png",
"freya == 'annoyed'", "freyamad.png",
"freya == 'calmblush'", "freyablushcalm.png",
"freya == 'blushmad'", "freyablushmad.png",
"freya == 'flustered'", "freyafluster.png", xalign=1.0, yalign=1.0))
Re: DynamicDisplay/ConditionSwitch Issues
Ah, that's fixed it!
Thank you so much!
Thank you so much!
Who is online
Users browsing this forum: Ahrefs [Bot], Majestic-12 [Bot]