Whilst having no coding background whatsover, I have been a ren’py vn reader for quite some time now, hence the irrepressible urge to try and make one myself
However it seems my loosy dabbling hit a rock.
What I wanted to achieve was making my characters’ clothing change depending on some variable, whilst using layered image for my sprites.
Here is what I tried, and which didn’t work, causing a « end of line expected » error centered on the « if » :
Attempt number 1:
Code: Select all
layeredimage character:
group clothes:
attribute work:
"character_clothes_work"
attribute leisure:
if spentsundaytogether:
"character_clothes_casual"
else:
"character_clothes_formal"
group face auto
Code: Select all
layeredimage character:
group clothes:
attribute work:
"character_clothes_work"
if spentsundaytogether:
attribute leisure:
"character_clothes_casual"
else:
attribute leisure:
"character_clothes_formal"
group face auto
(I haven’t found this with a forum search, but please excuse me if it had already been answered on a former topic)
Thanks in advance.