Problem with my coding

So I want to remember past clothing choices. But it doesn’t work correctly. Here’s the coding:


And here’s where I want to temember the choice:

But for some reason that doesn’t work. When I try to preview it on my phone the character changes into all of the outfits, where the choice is supposed to be remembered, one by one. I don’t know what I did wrong. On a different chapter I have same coding but with different clothing, and it works, but on this chapter it doesn’t work.

Moved to Directing Helps and Tips since this is about coding. Make sure to check out our Forum Tutorial for more info about where to correctly create topics, and feel to PM me if there are any questions. :wink:

Hi there, so your issue may be because you used gains.
Gains are a helpful way to remember choices, but in the event that you create a dressing game, it isn’t.

Because, in dressing games we want the reader to see all of the clothing options.
So, when you use gains–Wouldn’t they gain all of the options?
Thus, you should use the alternative way to remember a choice

label dressing_game
choice (dressing_up)
“Jeans”{
stuff
}
“Skirt”{
stuff
}
“Lazy”{
stuff
}
“Shorts”{
stuff
}
“Dress”{
stuff
}

To remember, try this!

if ("dressing_up is “Jeans”){
@QUINN changes into Girl_outfit2
}
So on and so forth!

1 Like

Thanks a lot, it works.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.