I have 4 different outfits for my main character, and when she comes down to the kitchen she is supposed to wear the outfit that was chosen.
However, when I was previewing the episode I clicked through all the outfits and then decided to pick the second one. When my main character enters the kitchen she isn’t wearing the outfit I chose for her.
I’ve used the -
if (CHARACTERNAME) and then the outfit
}
elif
and so on. I’m a bit confused. Do you guys need a picture of what I mean?
yeah send a photo so we can see the actual script.
Well if you’ve played the story over multiple times on the app sometimes the code gets all messed up (like when you tap to fast and the zooms mess up) - if that’s the case just update your script, start the episode from the beginning, close the app and try again
If not then you’ll need to use the if, elif and else commands (it always helps to do this when choosing an outfit - just in case there is a code “mixup”)
Here’s a tutorial to help with that
Did you try re-setting your flags? (btw flags are gains)
Can do so here:
Also make sure your outfits as well as your gains are written correctly : )
My character still isn’t wearing the outfit I chose.
I clicked the first outfit, then the second, third and fourth and then made a decision to choose the second one again but my character automatically wears the first outfit. Should I just change my script because nothing is working.
Thanks for your help and everyone else as well.
Do you have a choice that lets you go back and choose a different outfit? If you do, that’s the problem. If you go back and try on other outfits, you end up gaining all of those flags once you tap on all the outfit options which results in the if/elif/else not working correctly.
Also, in your if/elif/else there shouldn’t be a whole line skipped between an end bracket and the “elif”. The “elif” needs to be on the same line as the bracket or on the very next line.
The last elif needs to be changed into “else”
For the choices part can write this:
PRECIOUS
(What should I wear for school?)
choice (UNIFORM)
"School Outfit One"{
@PRECIOUS walks to screen center in zone 2
@PRECIOUS changes into PRECIOUS_SCHL_OUTFIT
@PRECIOUS walks to screen center in zone 1
}“School Outfit Two”{
@PRECIOUS walks to screen center in zone 2
@PRECIOUS changes into PRECIOUS_SCHL_OUTFIT2
@PRECIOUS walks to screen center in zone 1
}“School Outfit Three”{
@PRECIOUS walks to screen center in zone 2
@PRECIOUS changes into PRECIOUS_SCHL_OUTFIT3
@PRECIOUS walks to screen center in zone 1
}“School Outfit Four”{
@PRECIOUS walks to screen center in zone 2
@PRECIOUS changes into PRECIOUS_SCHL_OUTFIT4
@PRECIOUS walks to screen center in zone 1
}
@pause for a beat
And for remembering the choices, can write this:
if (UNIFORM is “School Outfit One”) {
@PRECIOUS changes into PRECIOUS_SCHL_OUTFIT
} elif (UNIFORM is “School Outfit Two”) {
@PRECIOUS changes into PRECIOUS_SCHL_OUTFIT2
} elif (UNIFORM is “School Outfit Three”) {
@PRECIOUS changes into PRECIOUS_SCHL_OUTFIT3
} else {
@PRECIOUS changes into PRECIOUS_SCHL_OUTFIT4
}
OH MY GOSH THANK YOU SOOOO MUCH!!!
I had to change some of my script but what u and everyone else said worked. Thank you and everyone else that helped and replied to my question, I am very grateful
xx
Looks like everything’s been solved so closing this one. Good work, y’all!