Please help choices not working

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

Sorry to bother you again babe but…

I’m a bit confused about how you let the reader knows how many points they have gained at the end of the story (so to speak) this is the code I have been using but it doesn’t seem to work.

label point_system

    NARRATOR 
About your points...

choice
“How many points does Kerry Anne have?”
{

if (KERRY ANNE =-1){

    NARRATOR 
You have |bold|-1|reset|/2 KERRY ANNE points.

goto point_system
} elif (KERRY ANNE =-2){

    NARRATOR 
You have |bold|-2|reset|/2 KERRY ANNE points.

goto point_system
}

I would like the readers to become better at their spy skills by gaining points through the story, rather than resetting them in each episode.
I don’t know if this is even the right code for that?

Any help would be much appreciated. :purple_heart:
Thanks hun

From what I see, your maximum points for readers to gain is 2 points. So you need to have elifs for 1/2, 2/2, and 0/2.
You also need to include another close bracket because you have a choice inside a choice.

label point_system

NARRATOR
About your points…
choice
“How many points do Kerry Anne have?”{

if (KERRY ANNE =-1){
NARRATOR
You have |bold|-1|reset|/2 KERRY ANNE points.
goto point_system

} elif (KERRY ANNE =-2){
NARRATOR
You have |bold|-2|reset|/2 KERRY ANNE points.
goto point_system

} elif (KERRY ANNE =2){
NARRATOR
You have |bold|2|reset|/2 KERRY ANNE points.
goto point_system

} elif (KERRY ANNE =1){
NARRATOR
You have |bold|1|reset|/2 KERRY ANNE points.
goto point_system

}else{
NARRATOR
You have |bold|0|reset|/2 KERRY ANNE points.
goto point_system

}
}

Alternatively, you can also use character number to show the points without doing if/elif/else and calculating it yourself. Example:

label point_system

NARRATOR
About your points…
choice
“How many points do Kerry Anne have?”{
NARRATOR
You have [CHARACTER NUMBER] KERRY ANNE points.
goto point_system
}

Whichever method works best for you, here’s the thread for the alternative method above, it explains where you can find the character number:

1 Like

i will give it a try now :hugs:

Thankyou again you are an angel :innocent: :revolving_hearts:

Now I can go on and create an even better story.

Again thanks babe :kissing_heart:

1 Like

just one more thing can you go to the next scene after the point score or does it just stay on the screen cause I cant get it to go to the next scene after the points score

it just keeps making you hit the narrator bubble

Maybe thats how it works?

I hope you don’t mind me asking you for help’I really appreciate it :hugs:

Here is a code I wanted to use to unlock a special mission if they have enough points
I have not tried it yet just want to make sure coding is right and where do I place this in the script

label menu

if (KERRY ANNE =10){
NARR
You have enough spy points for a special mission?
choice
“Bonus scene”{

INT. BACK with BASKET CHAIR at layer 1 with HOUSE PLANT 2 at layer 0 with HEART RUG at layer -5 with BLUE COVER at layer -4 with FRAME at layer -3 with FRAME 2 at layer -6 with FALLS COVER at layer -7

volume music 80 0

@zoom on 140 568 to 0% in 0

@overlay 6281078708240384_BASKET CHAIR shifts to 29 124 in zone 1
@overlay 6281078708240384_BASKET CHAIR scales to 0.470 0.470

@overlay 6281078708240384_HOUSE PLANT 2 shifts to 181 138 in zone 1
@overlay 6281078708240384_HOUSE PLANT 2 scales to 0.646 0.646

@overlay 6281078708240384_BLUE COVER shifts to 89 384 in zone 1
@overlay 6281078708240384_BLUE COVER scales to 0.292 0.292

@overlay 6281078708240384_HEART RUG shifts to 19 12 in zone 1
@overlay 6281078708240384_HEART RUG scales to 0.513 0.513

@overlay 6281078708240384_FRAME shifts to 62 360 in zone 1
@overlay 6281078708240384_FRAME scales to 0.410 0.410

@overlay 6281078708240384_FALLS COVER shifts to 195 389 in zone 1
@overlay 6281078708240384_FALLS COVER scales to 0.321 0.321

@overlay 6281078708240384_FRAME 2 shifts to 173 364 in zone 1
@overlay 6281078708240384_FRAME 2 scales to 0.396 0.396

@LADYJJ spot 0.816 339 220 in zone 1 at layer 2
@LADYJJ changes into Ripped Denim

music music_butterfliesbuild

@LADYJJ spot 0.816 170 245 in zone 1 AND LADYJJ faces right

@cut to zone 1
@zoom on 191 366 to 152% in 0
@transition fade in 0.5

} else{
NARR
You don’t have enough spy points to unlock the special mission!
goto menu


thanks

Take out the choice bonus scene.

Just do:

If (KERRIE ANNE=10) {

NARR
You have enough points for the bonus scene!

Bonus scene here

} else {

NARR
Sorry you Dont have enough points for a bonus scene

}

Continue here

1 Like

Oh, because you have the label and goto. If there are only points for Kerry Anne, remove the label point_system and all the goto point_system, because you’re making a loop.
So it would be like (Do the rest for 2, 1 and 0 points):

NARRATOR
About your points…
choice
“How many points do Kerry Anne have?”{

if (KERRY ANNE =-1){
NARRATOR
You have |bold|-1|reset|/2 KERRY ANNE points.

} elif (KERRY ANNE =-2){
NARRATOR
You have |bold|-2|reset|/2 KERRY ANNE points.
.
.


For unlocking the bonus scene, again, you don’t need to have the label and goto, because those who do not have enough points will be stuck in the loop.

If you like, you can include a gem option for those readers who do not have the points to view the bonus scene to view it using gems. Because some readers don’t mind paying gems to view a bonus scene, and you don’t want to be restricting them, but this is up to you if you want to include it!

This is subjective, but I think most authors would place the bonus script at the end of the chapter.

I would code it like this with the gem option:

if (KERRY ANNE = 10){

NARRATOR
You have enough spy points for the Special Mission. Would you like to view it?
choice
“Yes”{
[Insert scene here]

}
“No”{
}
}
else{
NARRATOR
You do not have enough spy points for the Special Mission. Would you like to use gems to view it?
choice (bonus_content)
<GEMS:5 >“Yes”{ (No spaces between “5” and “>”)
[Insert scene here]
}
“No”{
}
}

1 Like

Thanks so much for that I will give it a try :hugs: :smiley:

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