Can someone help me use if/else/elif to remember outfits?

This is my code:

tappable
"OUTFIT 1" {

@ovl OUTFIT 1 opacity 0 in 0.5 and ovl OUTFIT 2 opacity 0 in 0.5 and ovl OUTFIT 3 opacity 0 in 0.5
@DYLAN is dustoff_neutral_loop
@DYLAN changes into Dylan_TealBikini
@DYLAN is idle_handsonhips_neutral_loop
@pause for 0.5

}"OUTFIT 2" {
@ovl OUTFIT 1 opacity 0 in 0.5 and ovl OUTFIT 2 opacity 0 in 0.5 and ovl OUTFIT 3 opacity 0 in 0.5
@DYLAN is dustoff_neutral_loop
@DYLAN changes into DYLAN_WhiteWrapSwim

@DYLAN is idle_handsonhips_neutral_loop
@pause for 0.5

} "OUTFIT 3" { 
@ovl OUTFIT 1 opacity 0 in 0.5 and ovl OUTFIT 2 opacity 0 in 0.5 and ovl OUTFIT 3 opacity 0 in 0.5
@DYLAN is dustoff_neutral_loop
@DYLAN changes into DYLAN_GreenBikiniWShorts

@DYLAN is idle_handsonhips_neutral_loop
@pause for 0.5

}

label Yes_or_No

@speechbubble is 160 227 to 85%

NARR
Do I want to wear this outfit?

choice
<PREMIUM> "Yes!" {
@DYLAN is flirt_wink_atcamera
goto Dylan_Bedroom_Scene
} "No!" { 
goto label tappable_cc
}


I have tried to use the one provided by dara, but I literally have no idea what to put where!

if (OUTFIT_1 is “Outfit 1”) {
@CHARACTER changes into Outfit1

} elif (OUTFIT_1 is “Outfit 2”) {
@CHARACTER changes into Outfit2

} else {
@CHARACTER changes into Outfit3
}

#credits to daraamerie

I’m not sure if its even possible to use if/else/elif with tappable overlays, but if someone could help, I’d really appreciate it!

1 Like

I have done this in my script, let me show you some screenshots for reference


2 Likes

The outfit names correspond to the if/elif/else code

tappable

"OUTFIT 1" {

@CHARACTER changes into Outfit_a

}"OUTFIT 2" {

@CHARACTER changes into Outfit_b

} "OUTFIT 3" {

@CHARACTER changes into Outfit_c

if (OUTFIT_1 is “Outfit 1”) {

@CHARACTER changes into Outfit_a

} elif (OUTFIT_1 is “Outfit 2”) {

@CHARACTER changes into Outfit_b

} else {

@CHARACTER changes into Outfit_c

}

2 Likes

I’ll give it a go! Thank you so much x

1 Like

With my code, would I be able to paste this straight underneath and fill in the necessary information, or would I have to do something else?

Sorry, I haven’t really practiced remembering choices before!

1 Like

Hi, dara amarie has a good thing to help start with if/else/elif that helped me also she has templates for outfit choices using them. hope this helps
here is the link if you want it.
Remember a Choice | Dara Amarie (dara-amarie.com)

1 Like

Yeah you should be able to use that code and plug everything in. I got it from Dara Amarie’s website

1 Like