How do we remember an outfit choice in different episodes, and how can we know if it is working?
Well, you can use choice names, but honestly I prefer to use gains everytime.
Basically, whenver you want to remember a choice just insert into every option the gain command, like that:
choice âoption1â {
gain gain_name_1
} âoption2â {
gain gain_name_2
}
What it does is marking the reader as the gain name, and you can use the if commend to determine what happens if you have that gain if the reader has gained that gain, like that:
if (gain_name_1) {
} elif (gain_name_2) {
} else {
}
Hereâs a better tutorial for gains:
Thank you so much! gotta try out now nd let you know!
Imma try this one real quick too!
okay so I have tried that âchoice nameâ option and ik it wonât work on laptop so I previewed on my phone. On the phone the character is wearing the âswimsuitâ which she is supposed to wear before choosing and confirming the outfit choice.
This was the code I used in chapter 1
NARRATOR
Is this the outfit you want to wear?
choice (CEL_WEAR1)
âDefinitely.â {
if (OUTFIT = 1) {
@CELESTE changes into OP_1
} elif (OUTFIT = 2) {
@CELESTE changes into OP_2
} elif (OUTFIT = 3) {
@CELESTE changes into OP_3
} elif (OUTFIT = 4) {
@CELESTE changes into VIBES
} elif (OUTFIT = 5) {
@CELESTE changes into JULIA_default
}
} âPick another outfit.â {
@CELESTE previews outfit BIKINI
@pause for 0
goto outfit_closet_0x
}
**And this is the code I copied in chapter 2 **
if (CEL_WEAR1 is âOUTFIT = 1â) {
@CELESTE changes into OP_1
} elif (CEL_WEAR1 is âOUTFIT = 2â) {
@CELESTE changes into OP_2
} elif (CEL_WEAR1 is âOUTFIT = 3â) {
@CELESTE changes into OP_3
} elif (CEL_WEAR1 is âOUTFIT = 4â) {
@CELESTE changes into VIBES
} elif (CEL_WEAR1 is âOUTFIT = 5â) {
@CELESTE changes into JULIA_default
}
This happens on the app. Anytime a character changes into an outfit they stay in that outfit even if you restart the chapter or replay. Itâs just an app thing, but it doesnât affect your story once itâs published. Only you as the author see this issue.
As for your code, Iâm a bit confused on your formatting? It looks like you are mixing up points with the choice name method. You need to name the outfit choice, not the choice after confirming the outfit.
OHHH yeahhh I see it now! TYSM <33
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.