hi
I am making a choice here and it says that there is an error on the line that has the word upset. can you tell me why?
Also is this how you do the loose/gain points?
NARR
Pick one.
choice
“Understanding” {
@speechbubble is 157 273 to 100% with tail_top_left
TAYLOR (sigh_disappointed)
Yeah, I’ve noticed that too.
It’s just getting a little harder that’s all.
@speechbubble reset
@TAYLOR is idle_armscrossed_awkward_loop
@speechbubble is 118 281 to 100% with tail_top_right
JAMES (listen_nod_neutral_loop)
I get that. Well if you want to help let me know.
I’ll be glad to help you.
@speechbubble reset
@speechbubble is 157 273 to 100% with tail_top_left
TAYLOR (talk_awkward_loop)
Thanks.
Is there anything else?
@speechbubble reset
@speechbubble is 118 281 to 100% with tail_top_right
JAMES (talk_armscrossed_neutral_loop)
Nope that is all
@speechbubble reset
@speechbubble is 157 273 to 100% with tail_top_left
TAYLOR (talk_neutral)
Ok. Bye
@speechbubble reset
gain Chose_Understanding
@JAMES +1
}
“Upset”{
@speechbubble is 157 273 to 100% with tail_top_left
TAYLOR (talk_armscrossed_condescending_loop)
Yeah, everything is fine.
Now if you excuse me, I have the next class to get too.
@speechbubble reset
@JAMES is eyeroll_subtle
@speechbubble is 118 281 to 100% with tail_top_right
JAMES (talk_armscrossed_neutral_loop)
Yeah, I guess.
@speechbubble reset
loose Choose_Upset
@JAMES -1
}
if (Choose_Understanding) {
JAMES > = 1
} elif (Choose_upset {
JAMES < = -1
}
1 Like
You’re missing a parentheses where it says “(choose_upset)”. Also, don’t use elif unless you have 3 or more outcomes. Just switch the elif to else.
ok. its also saying the choice upset is missing something
1 Like
Can you send a screenshot of your code that includes the error?
Ok, I think the “loose upset” is causing the error, since it’s not a command. Are you trying to make the reader loose the flag? If you are, I would suggest using points instead of gains.
ok yes thats what im doing. what is the coding for that? do you know?
1 Like
Change line 9848 to:
gain upset
Change the if/else to this:
if (Chose_Understanding) {
@JAMES +1
} else {
@JAMES -1
}
yup fixed that part already thanks
1 Like
Okay, which part do you need help with?
the adding or subtracting parts now from a character .
To add or remove points, you just write
@CHARACTER +1
i have that but its saying an error. i have a screen shot up top
That’s because the if/else is wrong. Do you want to add points if they chose the first option and remove points if they chose the second?
If so, you don’t need the if/else at all because it’s already in the choice.
fixed that already though. still saying the same error
Can you send another ss of your script so I can see what you fixed?
Yes! So basically, instead of saying “gain choose_understanding”, make a character called “understanding” or something, and say @UNDERSTANDING +1. After that, if the reader chooses the choice that makes them loose what would have been the understanding flag, say @UNDERSTANDING -1.
For the if/else statement, just say:
if (UNDERSTANDING = 1) {
JAMES > = 1
}else {
JAMES < = -1
}
The characters that lost the understanding point will have understanding points of 0, while the ones who still have it, will have a score of 1, giving them different outcomes. I like the point system better than flags because you can always reset it. To set the score back to 0, just code @UNDERSTANDING = 0. I think that’s basically it.
Dara also explains this, so you might understand it better checking this out: