Freckles and Tattoo coding

Can I please get some help on how to make my readers choose if they want freckles, a tattoo, none or both.
Thanks in advance!

1 Like

You’ll have to create 4 different outfits(one with the tattoo/freckles/none/both) for every outfit.
Then at the start/end/somewhere of customization, you’ll have to ask them(with a choice) do they want freckles or tattoos.
Then if they click yes, you’ll need to put this code in:

You can change tattoo/freckles/both/none to anything.

Then when you have a dressing game/let reader choose their outfit, you put this:

if (freckles (this have to match the gain name you but above) ) {
@Character changes into cloths with freckles
} elif (tattoo) {
@Character changes into cloths with tattoo
} elif (both) {
@Character changes into cloths with freckles and tattoo
} elif (none) {
@Character changes into cloths with no tattoo or freckles.
}

Hope this helps!

3 Likes

How would we let them choose the outfit that they wear from time to time?

Aha, altered another script, so something like this?

label tattoo_freckles

NARR

You can try them on first.

NARR

Do you want freckles or a tattoo, none or both?

choice

"Freckles AND a tattoo" {

@YOU changes into YOU_both_1

YOU

Is this the one?

choice

“It’s perfect!” {

gain both

} "No, I want to try on the others!" {

goto tattoo_freckles

}

} "NO freckles, NO tattoos" {

@YOU changes into YOU_none

YOU

Is this the one?

choice

“It’s perfect!” {

gain none

} "No, I want to try on the others!" {

goto dressing_game_1

}

} "ONLY freckles" {

@YOU changes into YOU_freckles

YOU

Is this the one?

choice

“It’s perfect!” {

gain freckles

} "No, I want to try on the others!" {

goto dressing_game_1

} }

} "ONLY tattoo" {

@YOU changes into YOU_tattoo

CHARACTER

Is this the one?

choice

“It’s perfect!” {

gain tattoo

} "No, I want to try on the others!" {

goto dressing_game_1

} }

I recommend letting the reqder choose do they want tattoo/freckles on the first episode then when you have a dressing game the outfit they can choose will already include the tattoo/freckles.

Yeah, and the dressing games will be like:
if (freckles){
goto dressing_freckles
}
elif (tattoo){
goto dressing_tattoo
}
elif(both){
goto dressing_both
}
else{
goto dressing_none
}
label dressing_freckles
“Corset and Shorts”{
@CHARACTER changes into YOU_corset_and_shorts_freckles
}
“LBD”{
@CHARACTER changes into YOU_lbd_freckles
}
YOU
Do I like this?
“Yes”{
goto dressing_end
}
“No”{
goto dressing_freckles
}
goto dressinggame_end
#other 3 with both, none or tattoo
label dressinggame_end
@YOU exits right

You can actually just use 2 flags, so you don’t have to manage 3.

You can start out with using named choices first, so that you don’t have to duplicate the code for confirmation within each option.

label dressing_game_1
NARR
Do you want freckles?
choice (FRECKLES)
"Yes" continue
"No" continue

NARR
Do you want a tattoo?
choice (TATTOO)
"Yes" continue
"No" continue

if (FRECKLES is "Yes") {
  if (TATTOO is "Yes") {
    @YOU changes into YOU_both_1
  } else {
    @YOU changes into YOU_freckles
  }
} elif (TATTOO is "Yes") {
  # Freckles is NO, since you already checked for Freckles above.
  @YOU changes into YOU_tattoo
} else {
  # Freckles is NO, TATTOO is No
  @YOU changes into YOU_none
}

NARR
Is this the one?
choice
"It’s perfect!" {

if (FRECKLES is "Yes") {
gain freckles
}

if (TATTOO is "Yes") {
gain tattoo
}

} "No, I want to try on the others!" {
goto dressing_game_1
}

In the confirmation choice, if you select the first option, both are ifs. The second is not elif.

Subsequently, you can check just the flags:

if (freckles and tattoo) {
# Freckles and tattoo outfit
} elif (freckles) {
# Freckles only outfit
} elif (tattoo) {
# Tattoo only outfit
} else {
# None outfit
}

Note: You must check for freckles and tattoo first, otherwise it may go into the wrong branch.

Following what I’ve written above, you can do the following for your dressing game. You don’t need to repeat the code 3 times after that. :slight_smile:

label dressing
NARR
What do you want to wear?
choice
"Corset and Shorts"{

if (freckles and tattoo) {
@YOU changes into YOU_corset_and_shorts_freckles_and_tattoo
} elif (freckles) {
@YOU changes into YOU_corset_and_shorts_freckles
} elif (tattoo) {
@YOU changes into YOU_corset_and_shorts_tattoo
} else {
@YOU changes into YOU_corset_and_shorts_none
}

}
"LBD"{

if (freckles and tattoo) {
@YOU changes into YOU_lbd_freckles_and_tattoo
} elif (freckles) {
@YOU changes into YOU_lbd_freckles
} elif (tattoo) {
@YOU changes into YOU_lbd_tattoo
} else {
@YOU changes into YOU_lbd_none
}

}

YOU
Do I like this?
"Yes" continue
"No" {
goto dressing
}

@YOU exits right
1 Like

Thank you so much, it’s a bit overwhelming but I’ll get used to it. :rofl:

You’re welcome! Feel free to ask if you need any clarification.

1 Like

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