Help gain script trouble (better for me to show you)

WOAH WOAH WOAH! Please don’t post your WHOLE script for all 3 episodes!! Just post the part of your script with the gains and the if/elif/else code you used.

1 Like

Yea, just show copy and past we’re you have your choices

ok and ill see if i can delete my previous replies with entire episodes. sorry bout that

ok Im pretty sure it has to be episode 3 or 4 causing the issue so ill just show those episode choices (including diolauge and gains with them) if they seem fine then ill show the first 2 episode choices

episode 3 choices

label choosing_outfit

    BECKY
(I'll try)

choice “Outfit 1” {
@BECKY exits right
@BECKY changes into Becky_outfit1
@BECKY enters from right to spot 0.300 123 212

} “Outfit 2” {
@BECKY exits right
@BECKY changes into Becky_outfit2
@BECKY enters from right to spot 0.291 143 212

}

    BECKY
(I think I will)

choice
“Wear this” {

    BECKY
( I think this is cute. Im not sure cause ive only had one outfit till now)

} “Try the other outfit” {

goto choosing_outfit

}

    BECKY
( I think this is cute. Im not sure cause ive only had one outfit till now)

(i didn’t put gain cause i read somewhere that outfit choices are automatically saved for the reader)

episode 4
if (chose_outfit1) {

@BECKY2 spot 0.309 252 292 AND BECKY2 faces right
@BECKY2 is sit
@ANITA GANDRE stands back left AND ANITA GANDRE faces right
@ANITA GANDRE is tinker_kneel_loop
@ANITA GANDRE is idle_kneel
@ANITA GANDRE spot 0.759 97 182
ANITA GANDRE (talk_gesture)
All done.

@BECKY2 spot 0.309 205 242
BECKY2 (admire)
Thank you Ani, I mean mommy.
(skipping rest of diolauge)

if (chose outfit2) {
@BECKY3 spot 0.309 252 292 AND BECKY3 faces right
@BECKY3 is sit
@ANITA GANDRE stands back left AND ANITA GANDRE faces right
@ANITA GANDRE is tinker_kneel_loop
@ANITA GANDRE is idle_kneel
@ANITA GANDRE spot 0.759 97 182
ANITA GANDRE (talk_gesture)
All done.

@BECKY3 spot 0.309 205 242
BECKY3 (admire)
Thank you Ani, I mean mommy.
( skipping rest of diolauge which is pretty much the same as before)

Part 1

episode 3 choices

label choosing_outfit

BECKY

(I’ll try)
choice (outfit_choice1)
“Outfit 1” {
@BECKY exits right
@BECKY changes into Becky_outfit1
@BECKY enters from right to spot 0.300 123 212

} “Outfit 2” {
@BECKY exits right
@BECKY changes into Becky_outfit2
@BECKY enters from right to spot 0.291 143 212

}

BECKY

(I think I will)

choice
“Wear this” {

BECKY

( I think this is cute.)

goto label continue

} “Try the other outfit” {

goto choosing_outfit
}

label continue

This is only if you don’t have a character change into anything else after that dressing game. Characters stay in outfits until you change them into a different outfit. You will need to use gains if you want to remember this outfit.

You’re using if (chose_outfit1) { but you didn’t add in this gain, chose_outfit1, or the other 2 gains to the dressup choices.

Now to remember the choice, you will have to use the if/elif/else method. You’re using if for all three options, in which case you’re suppose to only use if the first time, elif for the middle, and else as the last one (more on this in the guide below). This guide will help you:

Part 2

episode 4

if (outfit_choice1 is “Outfit1”) {

@BECKY2 spot 0.309 252 292 AND BECKY2 faces right
@BECKY2 is sit
@ANITA GANDRE stands back left AND ANITA GANDRE faces right
@ANITA GANDRE is tinker_kneel_loop
@ANITA GANDRE is idle_kneel
@ANITA GANDRE spot 0.759 97 182
ANITA GANDRE (talk_gesture)
All done.

@BECKY2 spot 0.309 205 242
BECKY2 (admire)
Thank you Ani, I mean mommy.
(skipping rest of diolauge)

} else {
@BECKY3 spot 0.309 252 292 AND BECKY3 faces right
@BECKY3 is sit
@ANITA GANDRE stands back left AND ANITA GANDRE faces right
@ANITA GANDRE is tinker_kneel_loop
@ANITA GANDRE is idle_kneel
@ANITA GANDRE spot 0.759 97 182
ANITA GANDRE (talk_gesture)

All done.

@BECKY3 spot 0.309 205 242
BECKY3 (admire)
Thank you Ani, I mean mommy.

}

Although… tbh, the whole code is off. Instead of making a new character for each outfit, just have the character change outfits:

@CHAR changes into Outfit_Name

ok. though the reason i had a new character was so that becky could go from shaggy hair to two pigtail braids. it was for the purpose of hair change. is there an easier way to do it?

@CHAR changes hair into Hair Name

1 Like

If you’re letting readers customize that character, then what you’re doing with switching characters is perfectly fine. If you’re not letting readers customize that character, then you can use the code that Rude posted.

1 Like

ok since im beginner im probably not doing customizations, just choices.

Ill try that next time there is a hair change

HOORAY It worked. thank you so much

image

so i would type

@BECKY changes into Casual Braided Pigtails (Fawn)

??

Yes but don’t add the color, the color will stay the same.

If you want to change hair color, here is the command:

@BECKY changes hairColor into Color Name

ok, so im guessing with this method i can get rid of Becky2 and Becky3

i got a messages saying “error the outfit Casual Braided Pigtails does not exist”. Am i supposed to put hair name before it?

@BECKY changes hair into Casual Braided Pigtails