Why does this keep happening?

I’m 100% sure that my character’s KIND points are 0 but this code is still happening! What should I do?

if (KIND > 1){
@VESPA starts talk_agree_happy
VESPA
Oh, don’t worry yourself over it.
You always worry about me!
I think you should go take your break now.
@VESPA starts idle
readerMessage Being nice is the best way to stop suspision.
@SILVIA starts talk_agree_happy
SILVIA
If you say so.
I’ll see you later to help with whatever you need.
@SILVIA starts idle
@SILVIA faces left
@SILVIA walks to upscreen left in zone 1
}

1 Like

Have you tried resetting your points? Tap/click on ‘reset story progress’.

Yep, I’ve reset it a lot!

1 Like

Oh. I don’t know then. Could you show what’s before and after this part?

Did you write an =0 branch?

1 Like

Yep, FYI I have the same problem with all of the other "if (SOMETHING > 1) statements.

INT. JUVIE WELLES BEDROOM - NIGHT

@VESPA changes into VESPA_PJS
@VESPA stands back far left in zone 3 AND VESPA faces left
@VESPA is sleep_lay_uncomfortable_loop
@pan to zone 2
@VESPA is sleep_lay_uncomfortable_awaken
@VESPA is standup_neutral AND VESPA stands upscreen right AND VESPA faces left

@VESPA starts react_scream_horror

@VESPA starts talk_armscrossed_sad_loop
VESPA
I thought they had stopped. These dreams…
And now my hair is wet, again. Why is my hair always wet after these dreams.

@VESPA starts sigh_disappointed
@VESPA starts talk_armscrossed_neutral_loop
VESPA
It’s going to be fine, I’m going to go to school today and nobody’s going to fear me.
I might get a few weird looks and that’s to be expected.
After all, I am the advisor’s daughter.
I’m a Goblin Elf too. The strongest type of magic…
@VESPA starts idle_armscrossed_awkward_loop
@pause for 2
@VESPA starts sigh_disappointed
@VESPA starts talk_neutral_loop
VESPA
And I’m also awake way too early
@VESPA starts think_rubchin
VESPA
(What should I do while I wait for my maid?)

choice
“Read a book.”{
@VESPA starts idle_happy_loop
@KNOWLEDGEABLE +1
readerMessage Books are knowledge and knowledge is power. with messageTitle +1 Knowledgeable!
VESPA
(Can’t hurt to spend some time reading.)

}“Clean my room a bit.”{
@VESPA starts idle_happy_loop
@KIND +1
readerMessage Doing your maid’s job for her, are you? with messageTitle +1 Kind!
VESPA
(The maids honestly have to much to do.)

}“Start yelling for a maid. I don’t want to wait!”{
@VESPA starts scream_angry
VESPA
Silvia! Get over here now.
@ROYAL +1
readerMessage Use you power girl! with messageTitle +1 Royal!
VESPA
(There is no way I am sitting around here bored just to give a maid more time to prepare.)
}

@SILVIA walks to upscreen left
@SILVIA starts talk_agree_happy

    SILVIA
Good morning Miss [FIRSTNAME].
I heard you were...

@SILVIA starts idle
@VESPA starts react_mortified
@pause for a beat
@SILVIA starts talk_neutral_loop

    SILVIA
I'm so sorry, Miss. Did I frighten you?

@SILVIA starts idle
@VESPA starts sigh_disappointed
@pause for a beat
@VESPA starts talk_exhausted

    VESPA
Oh, it's just you Silvia.

@VESPA starts idle
@SILVIA starts talk_sad_serious_loop

    SILVIA
I'm very sorry. I didn't mean to startle you.

if (ROYAL=1){

    SILVIA
I heard to yell for me so I came right away.

}

if (ROYAL=0){

    SILVIA
I was walking past your room and I thought I heard you so I thought you would like me to help you get ready early.

}

    SILVIA
I just thought you would...
Oh, what am I to know?

@SILVIA starts idle_sad_timid_loop
@VESPA starts talk_neutral_loop

    VESPA
What you did is really...

choice “Not okay!”{

@VESPA starts idle_armscrossed_angry_loop
@KNOWLEDGEABLE +1
readerMessage You shouldn’t walk into someone’s room without knocking. with messageTitle +1 Knowledgeable!

if (ROYAL = 1){

@VESPA starts talk_argue_defensive
VESPA
I may have yelled for you but it is totally rude to walk into someone’s room without at least knocking first!
Use this as a lesson and don’t do it again!
@VESPA starts idle_armscrossed_neutral_loop
@SILVIA starts talk_armraised_sad
SILVIA
I won’t do it again, miss.
@SILVIA starts idle
}

if (ROYAL = 0){

@VESPA starts talk_accuse_angry
VESPA
Just because you heard noise from my room didn’t mean that you could come in.
I could’ve been sleeping or doing something that I wouldn’t want you to know about!
@VESPA starts idle_armscrossed_neutral_loop
@SILVIA starts talk_armraised_sad
SILVIA
I’m so sorry miss.
I promise I’ll always wait until you call for me or until it’s time for me to wake you.
I’ll always knock first too.
@SILVIA starts idle
}

}“What I asked for.”{

@SILVIA starts idle
@VESPA starts sigh_disappointed
@ROYAL +1
readerMessage A good leader admits to their mistakes. with messageTitle +1 Royal!

if (ROYAL = 2){

@VESPA starts talk_neutral_loop
VESPA
I yelled for you so I should have expected you to walk in here.
Sorry for making you worry.
@VESPA starts idle_armscrossed_neutral_loop
}

if (ROYAL = 1){

@VESPA starts talk_neutral_loop
VESPA
I was making so much noise that I should have expected you to come help me get ready.
Sorry for worrying you.
@VESPA starts idle_armscrossed_neutral_loop
}

}“It’s fine, you just wanted to help.”{

@SILVIA starts idle_happy_loop
@VESPA starts idle_armscrossed_neutral_loop
@KIND +1
readerMessage Sometimes being nice can pay off. with messageTitle +1 Kind!

if (ROYAL = 1){

@VESPA starts talk_agree_happy
VESPA
I called for you and you came to help me.
Thanks for doing your job!
@VESPA starts idle_armscrossed_neutral_loop
@SILVIA starts idle
}

if (ROYAL = 0){

@VESPA starts talk_agree_happy
VESPA
You just thought I was awake and wanted to help.
I’m not going to punish you for it!
@VESPA starts idle_armscrossed_neutral_loop
@SILVIA starts idle
}

}

@SILVIA starts talk_neutral_loop
SILVIA
I would really like a chance to make it up to you.
Is there anything that you would like me to do?
@SILVIA starts idle

@VESPA starts talk_agree_happy
VESPA
Well, there is one thing that you could do…
@VESPA starts idle
@SILVIA starts talk_agree_happy

    SILVIA
What is it, Miss. I would really like to know.

@SILVIA starts idle_happy_loop
@VESPA starts talk_neutral_loop
VESPA
You could…

choice
“take an hour off.”{
@VESPA starts idle_happy_loop
@KIND +1
readerMessage I think you’re a little bit too nice. with messageTitle +1 Kind!
@SILVIA starts talk_confused_mindblown
SILVIA
You can’t actually mean that?
@SILVIA starts idle_happy_loop
@VESPA starts talk_handsopen_happy_loop
VESPA
Of course I can, and I do!
I really feel like you could use a break!
@VESPA starts idle_happy_loop

}“pay extra attention to your duties today.”{
@VESPA starts idle_happy_loop
@ROYAL +1
readerMessage A very dignified response. with messageTitle +1 Royal!
@SILVIA starts talk_neutral_loop
SILVIA
Oh, that would be no problem, miss.
I normally try to do my very best but I’ll make sure to try harder just for you.
@SILVIA starts idle_happy_loop
@VESPA starts talk_neutral_loop
VESPA
That’s all I ask.
@VESPA starts idle_happy_loop

}“pick me up some books from the library this afternoon.”{
@VESPA starts idle_happy_loop
@KNOWLEDGEABLE +1
readerMessage It’ll make her feel better that you actually gave her something to do. with messageTitle +1 Knowledgeable!
@SILVIA starts talk_neutral_loop
SILVIA
I’d be happy to miss!
You’d like your usual genre I take it?
@SILVIA starts idle_happy_loop
@VESPA starts talk_neutral_loop
VESPA
Yes, please.
Thank you very much Silvia.
@VESPA starts idle_happy_loop
}

@SILVIA starts talk_awkward_loop
SILVIA
I hope you don’t mind me asking, but why is your hair wet?
@SILVIA starts idle
readerMessage based on your points…

if (KIND > 1){
@VESPA starts talk_agree_happy
VESPA
Oh, don’t worry yourself over it.
You always worry about me!
I think you should go take your break now.
@VESPA starts idle
readerMessage Being nice is the best way to stop suspision.
@SILVIA starts talk_agree_happy
SILVIA
If you say so.
I’ll see you later to help with whatever you need.
@SILVIA starts idle
@SILVIA faces left
@SILVIA walks to upscreen left in zone 1
}

if (ROYAL > 1){
@VESPA starts talk_neutral_loop
VESPA
It’s none of your business!
If you don’t mind, I would like to get ready by myself this morning.
@VESPA starts idle
readerMessage It really isn’t!
@SILVIA starts talk_neutral_loop
SILVIA
That’s fine. If you need me, I’ll be helping the others clean.
@SILVIA starts idle
@SILVIA faces left
@SILVIA walks to upscreen left in zone 1
}

if (KNOWLEDGEABLE > 1){
@VESPA starts talk_neutral_loop
VESPA
Oh, I just got up so early that I decided to take a shower this morning.
You know, Silvia. I think I can get ready by myself today.
@VESPA starts idle
readerMessage Great excuse!
@SILVIA starts talk_neutral_loop
SILVIA
If you need me for anything please let me know!
@SILVIA starts idle
@SILVIA faces left
@SILVIA walks to upscreen left in zone 1
}

if (KIND=ROYAL){
@VESPA starts talk_neutral_loop
VESPA
Oh, it’s probably just wet from last night.
I took a really late…
Um, shower and it didn’t dry properly.
Also, you can go now. I want to get ready myself.
@VESPA starts idle
readerMessage You seem a little bit unsure of yourself right now…
@SILVIA starts talk_neutral_loop
SILVIA
Umm…ok, miss. If you say so.
(Try to keep a straight face, try to look like you believe it…)
@SILVIA starts idle
@SILVIA faces left
@SILVIA walks to upscreen left in zone 1
}
@VESPA starts sigh_disappointed
VESPA
(Hopefully she bought it.)
@VESPA starts idle
@VESPA faces right
@VESPA walks to screen center in zone 3

It used to be if/elif/elif/else but that wasn’t working either

2 Likes

That’s the whole scene. This is the only place in the story you can gain points so far.

Thanks for that but it gave me an error message.

Also instead of writing the animations like this;
@VESPA starts sigh_disappointed
VESPA
(Hopefully she bought it.)

It’s easier if you just write them like that;
VESPA (sigh_disappointed)
(Hopefully she bought it.)

I used this phrase as an example hehe, in that way you can save more lines and make it less complicated!

1 Like

Can you send me what the error message is?

1 Like

Unexpected expression is the error message.

Also, keep in mind this has to work for the KIND, KNOWLEDGABLE, ROYAL, and all equal branches.

Perhaps remove the lines between your branches, so they’re directly after one another:
if (ROYAL =1){

}else{

}
is an example of what I mean.^

For the first set of branches try changing the second branch to:
}else{
#The dialogue here.
}

You also need to use if/elif/else because it’s not designed to only work with “if”s.

if (ROYAL > KNOWLEDGEABLE) {
if (ROYAL > KIND) {

#This scene is for those who have more Royal points than any other points.

}} elif (KIND > ROYAL) {
if (KIND > KNOWLEDGEABLE) {

#This scene is for for those who have more Kind points than any other points.

}} elif (KNOWLEDGEABLE > ROYAL) {
if (KNOWLEDGEABLE > KIND) {

#This scene is for those with more Knowledgeable points than any other points.

}} elif (ROYAL = KNOWLEDGEABLE) {
if (ROYAL = KIND) {

#This scene is for those who have equal points across the board.

}}

When comparing 3 sets of points or more, you’ll always need to use if/elif/else within if/elif/else. :skull:
It’s annoying so I’ve tried to get the old and easier way back:

3 Likes

So, I tried your code and it seemed to be working and then it just skipped over all of the outcomes completely.

This happed on my first try with the 3 KNOWLEDGABLE 0 everything else combination.

I’m actually pretty new to complex branching, myself (but trying really hard with the help of others occasionally) however, I’m certain Farah, Dara and Tal would be the most experienced people and likely have the answers and solutions you need. :full_moon_with_face:

But if it’s not possible for any readers to have equal points at that stage, you could remove the = branch and it should work.

Ok, thanks!

I am not sure but it maybe because you are not using elif?

For example, here you used if twice. The script will treat these as separate if, not a nested if (probably, if this works the same way as if-elseif-else code in JAVA). You could try doing that.

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