Please help choices not working

the script is not remembering the second choice in the if and else coding can anyone help have tried a lot of codes Joseph Evans and others none are working and its stopping me from advancing choices and remembering them in my story

PLEASE HELP !!
here is my script WHAT AM I DOING WRONG

choice
“Apologetic Remark”{

@zoom on 469 296 to 618% in 0
@speechbubble is 163 244 to 104% with tail_top_right
KERRY ANNE (talk_sheepish_rubneck)
Sorry about that.

@KERRY ANNE +2

}“Smart A** Remark” {
@zoom on 507 309 to 618% in 0
@speechbubble is 154 178 to 110% with tail_top_left
KERRY ANNE (talk_argue_defensive)
What the hell, as*ole, why don’t you watch where you are going.
@speechbubble is 159 189 to 95% with tail_top_right
JADE (talk_asif_angry)
ME!
JADE (talk_angry)
Why don’t you watch where you are going.

@KERRY ANNE is idle_armscrossed_angry_loop AND JADE is idle_armscrossed_angry_loop

@KERRY ANNE -2

}

@zoom on 521 313 to 1059% in 0
@pause for 1
@zoom on 478 309 to 1059% in 0
@pause for 1
@zoom on 521 313 to 1059% in 0
@pause for 1

@zoom on 500 292 to 309% in 0

@JANE walks to spot 0.391 130 367 in zone 2 in 2.2 AND JESSIE walks to spot 0.394 142 366 in zone 2 in 2

@JESSIE is idle_armscrossed_neutral_loop AND JADE is idle_armscrossed_neutral_loop

@speechbubble is 201 247 to 87% with tail_top_right
LEN (talk_sheepish_rubneck)
Ladies, nice to see you again.
@speechbubble is 130 190 to 87% with tail_top_left
JANE (talk_greet_neutral)
Hi.
@zoom on 465 312 to 2031% in 0

@speechbubble is 194 149 to 87%
NARRATOR (JESSIE)
This is awkward…

@transition fade out 1

if (KERRY ANNE >2) {

NARRATOR
You earned 2 points

} else {

NARRATOR
You lost 2 points’

}

I simplified the choice to understand it a bit better it still doesnt work

choice (Comment)
“Apologetic Remark”{

@zoom on 469 296 to 618% in 0
@speechbubble is 163 244 to 104% with tail_top_right
KERRY ANNE (talk_sheepish_rubneck)
Sorry about that.

@KERRY ANNE +2

}“Smart A** Remark” {
@zoom on 507 309 to 618% in 0
@speechbubble is 154 178 to 110% with tail_top_left
KERRY ANNE (talk_argue_defensive)
What the hell, as*ole, why don’t you watch where you are going.

@KERRY ANNE -2

}

if (Comment)
“Äpologetic Remark”{
}
“Smart A** Remark”{
}

1 Like

I’m a bit confused, what do you mean exactly?

You could also just use the choice remembering system if you’re only telling the reader about the points they gained/lost from this one choice.

For example, say your choice is named Comment:

if (Comment is “Apologetic Remark”) {

NARRATOR
You earned 2 points.

} else {

NARRATOR
You lost 2 points.

}

1 Like

where do I put the comment what does that mean

1 Like

that all I want to do tell the reader how many points they have

1 Like

You can name your choices, for example for this one you would write:

choice (Comment)
“Apologetic Remark” {
} “Smart A** Remark” {
}

However, I also just noticed that here:

if (KERRY ANNE >2) {

You’re missing a space between the > and the 2. Does that affect anything?

2 Likes

it is saying unexpected string:Apologetic Remark

1 Like

it doesnt work either way

1 Like

Your max point is 2 for now? You don’t have to change anything. Just remove the “>” and change it to “=”

if (KERRY ANNE = 2) {

NARRATOR
You earned 2 points

} else {

NARRATOR
You lost 2 points’

}

1 Like

thats better but when you choose apologetic remark it says you lose

1 Like

choice (Comment)
“Apologetic Remark”{

@zoom on 469 296 to 618% in 0
@speechbubble is 163 244 to 104% with tail_top_right
KERRY ANNE (talk_sheepish_rubneck)
Sorry about that.

@KERRY ANNE +2

}“Smart A** Remark” {
@zoom on 507 309 to 618% in 0
@speechbubble is 154 178 to 110% with tail_top_left
KERRY ANNE (talk_argue_defensive)
What the hell, as*ole, why don’t you watch where you are going.

@KERRY ANNE -2

}

if (KERRY ANNE = 2) {

NARRATOR
You earned 2 points

} else {

NARRATOR
You lost 2 points’

}

1 Like

Make sure to reset the points to 0 whenever you test it. Just put @KERRY ANNE =0 somewhere before you make the choice. You can remove it later.

1 Like

still doing same thing babe its just answering the same for both
thanks babe i am off to bed will talk to you later if thats ok

1 Like

I simplified it more
choice (Comment)
“Apologetic Remark”{

@speechbubble is 163 244 to 104% with tail_top_right
KERRY ANNE (talk_sheepish_rubneck)
Sorry about that.

@KERRY ANNE -2

}“Smart A** Remark” {

@speechbubble is 154 178 to 110% with tail_top_left
KERRY ANNE (talk_argue_defensive)
What the hell, as*ole, why don’t you watch where you are going.

@KERRY ANNE +2

}

if (KERRY ANNE = 2) {

NARRATOR
You earned 2 points

} else {

NARRATOR
You lost 2 points’

}

1 Like

What do you mean by it’s answering for both? You mean both went to the else choice?
I’ve tested it and it worked on my side. As I said, add the reset code before it, and make sure to run the that line of code to have the character points reset it to 0, or else the points will be accumulated and the outcome will be the else choice.
You can check by clicking “Story Modifiers” > “Character Points”.
Or you can just refresh the page and test it if you don’t want to add that line of code in.

Because under the choice “Apologetic Remark”, you deducted the character’s points.

@KERRY ANNE =0

NARR
Dialogue.
choice (Comment)
“Apologetic Remark”{

@speechbubble is 163 244 to 104% with tail_top_right
KERRY ANNE (talk_sheepish_rubneck)
Sorry about that.

@KERRY ANNE -2 ← Is this supposed to be -2 or +2?

}“Smart A** Remark” {

@speechbubble is 154 178 to 110% with tail_top_left
KERRY ANNE (talk_argue_defensive)
What the hell, as*ole, why don’t you watch where you are going.

@KERRY ANNE +2

}

if (KERRY ANNE = 2) {

NARRATOR
You earned 2 points

} else {

NARRATOR
You lost 2 points’

}

2 Likes

You live up to your name babe you are an angel. :innocent:

I think I was just tired last night it seems to be working.

THANKYOU THANKYOU sooooooooooooooooo much

:heart_eyes: :heartpulse: :100: :wave: :wave: :wave: :wave: :heartpulse: :heartpulse:

2 Likes

:innocent:

Yes, it will work except when you don’t reset the points to 0. Just remember to remove that line of code after you are done testing.
To add on, because your max point is 2, and readers can’t get more than that. 2 points are neither more nor less, which is why it is “=” instead of “>”. By using “>” in your case would end up in the else choice. :blush:

1 Like

Moved to Directing Help and Tips since this is about coding. Make sure to check out our Forum Tutorial for more info about creating topics, and feel free to PM me if you’ve got questions. :smiley:

1 Like