Im trying to remeber choice


#1

I was trying to do a remember choice but I got this :sweat_smile:


#2

You need the name of the choice, or the name of the gained label.

if (gained label){
add text and other options in this bracket
}
OR
if (choice name is " choice option"){
text in here
}
elif (choice name is " other choice option"){
text in here
}

They are cap sensitive, so if one option is Cat, you need to add if (choice name is “Cat”)
If you do it like this if (choice name is “cat”)…
It won’t work lol


#3

I don’t understand… :sweat_smile::cry:


#4

It’s alright, PM me and I could write out the script for you.


#5

If i want to name the choice how do i do that?


#6

#7

When you create a choice, you can have the decision to name it or not…

SARAH (talk_think)
Should I go shopping?
choice (shopping_orno)
“Yes!”{
add text here
}
“No, study instead”{
add text here
}

^ That is the method without gains.

Basically, just put the name of the choice in parenthesis wherever the choice is located in your script.


#8


#9

You should get rid of choice_name MESS_OR_NICE.

If you would like to name your choice, at the beginning of the choice, where the options are put in parenthesis the name you wish to name your choice.

choice (mess_or_nice).

You can’t name the choice at the end of the options, you name it before you list the options.


#10

I did and now it says unexpected IF: if


#11

Screenshot it?


#14

If you add caps, or any sort of text characters to your choice name, you need to include it in the if, elif, else options as well.


#15

Your problem might be that, when you named the choice MESS_OR_NICE.

In the if parenthesis, you added MESS OR NICE.
As I said earlier, the coding is cap and character sensitive.
Which means, try to change it to
if (MESS_OR_NICE is " choice option "){

}


#16


#17

Yeah, change line 376 to…
if (mess_or_nice is “Mess with Him”) {
add your text here
}

But also, you added the choice name in the wrong place,

You need to add choice (mess_or_nice)
Where the choice is in the script, not where the consequences of the choice is.


#18

Like this:

choice (mess_or_nice)
“Option 1” {
SCRIPT goes here
} “Option 2” {
ANOTHER SCRIPT goes here
}

then later on in the episode, this is what you add

if (mess_or_nice is “Option 1”) {
SCRIPT goes here
} else {
ANOTHER SCRIPT goes here
}


#19

It still says the same thing and I am confused of where to add the choice name
My choice started on the next line after the name


#20

Refer to AndreaH’s template for you, that’s where you would add the choice name! Adding the choice name after the options, won’t name the choice. :slight_smile:


#21

Thanks


#22

Glad I was able to help! :slight_smile: