Needing Help With Advanced Coding

Sooo in the last chapter I let readers chose whether or not they wanted a tattoo. I had another person on here help me with using if/elif/else. When having the MC chose outfits, I’m having two different things come up, choices if they chose to have a tattoo and choices if they chose not to. I thought I coded it right but when I read it on the app, it doesn’t even give me the options. I’m going to put what I coded below, hoping someone will be able to help me figure out where I went wrong. Thank you in advance!

label episode20date1
if (has_tattoo) {
@YOU is idle_armscrossed_neutral_loop

    YOU
(Hmm)

choice
“Starry” {

@YOU is dustoff_neutral_loop
@YOU changes into Starry
@YOU is think_rubchin
@pause for a beat

} “Shiny” {

@YOU is dustoff_neutral_loop
@YOU changes into Shiny
@YOU is think_rubchin
@pause for a beat

} “Sexy” {

@YOU is dustoff_neutral_loop
@YOU changes into Sexy
@YOU is think_rubchin
@pause for a beat

}

    YOU (think_rubchin)
(Is this good enough)

choice
“Yes!” {

    YOU (talk_primp_neutral)
Of course it is.

} “No!” {

    YOU (think_rubchin)
(Let's check the other ones.)

redo episode20date1

}} elif (no_tattoo) {

@YOU is idle_armscrossed_neutral_loop

    YOU
(Hmm)

choice
“Star Shine” {

@YOU is dustoff_neutral_loop
@YOU changes into Star Shine
@YOU is think_rubchin
@pause for a beat

} “Ruby Red” {

@YOU is dustoff_neutral_loop
@YOU changes into Ruby Red
@YOU is think_rubchin
@pause for a beat

} “Sultry” {

@YOU is dustoff_neutral_loop
@YOU changes into Sultry
@YOU is think_rubchin
@pause for a beat

}

    YOU (think_rubchin)
(Is this good enough)

choice
“Yes!” {

    YOU (talk_primp_neutral)
Of course it is.

} “No!” {

    YOU (think_rubchin)
(Let's check the other ones.)

redo episode20date1

}}

doesn’t elif has to be else?

No, if is first, elif is second and else comes last

I always use if/else if I have 2 options and it works for me this way you don’t have to write elif (no_tattoo) but just else I don’t know if this is the problem though
but this is just how I code I don’t know if it really is what is troubling this because I can’t see any other problem

if = if (obviously)
elif = but if
else = else (obviously)

LIFE SAVER OMG.
Thank you so much that worked!!! So much easier than I thought lol

1 Like

no problem xx

Moved to Directing Helps and Tips since it’s 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:

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