Label being ignored?

I’m having trouble with labels… I think. I’m not actually getting an error but for some reason my code isn’t picking up a label about 200 lines later. I don’t know if I should share my code since it’s over 200 lines of code that again isn’t getting any errors.

My code looks like this basically like this

*line_break
We of course, as always, leave the choice up to you, young spark.
*choice
    #Be born to Noble parents
        We are sure you will be a wonderful child.
        *set upbringing "Nobility"
        *set Charisma +10
        *set Performance +10
        *goto BirthCyranon
    #Be born to Servant parents
        We are sure you will be a wonderful child.
        *set upbringing "Servants"
        *set Stealth +10
        *set Charisma +10
        *goto BirthCyranon
    #Be born to Merchant parents
        We are sure you will be a wonderful child.
        *set upbringing "Merchants"
        *set History +10
        *set Charisma +10
        *goto BirthCyranon
    #Be born to Performer parents
        We are sure you will be a wonderful child.
        *set upbringing "Performers"
        *set Performance +10
        *set History +10
        *goto BirthCyranon
    #Be born to Military parents
        We are sure you will be a wonderful child.
        *set upbringing "Military"
        *set Melee +10
        *set Ranged +10
        *goto BirthCyranon  

then roughly 200 lines later i have

*label BirthCyranon
    *if (upbringing = "Noble") and (race = "Human")
        You come into this world a bloody, screaming mess. 
        *line_break

I don’t know how to better describe it, but what I can say is that after any of the “be born” scenes and the line says “We are sure you will be a wonderful child” it goes to “Next Chapter” and just ends. If I move the BirthCyranon label closer it still ignores the label and then reads another label called UpbringingRakashan instead. Any help would be appreciated, even if I need to share the full code let me know, I was hesitant to do so because it’s over 200 lines and I didn’t want to just post a huge swath of code to the forum.

  1. I don’t think 200 lines would do anything to the forum.
  2. So essentially every choice goes to *label BirthCyranon and then goes to the next chapter?

For what I see, the part you showed doesn’t show any page_break or choice.

If the IF condition checks, there’s just a line of text and a line_break
If it doesn’t, there’s no else or anything. so it’s impossible to determine what’s going on there.

The problem though seems to be happening at or after the *label BirthCyranon all the choices leading there shouldn’t be needed to see the problem.

It’s never reaching *label BirthCyranon is the issue, it seems to not be able to read that it’s anywhere in the code and even if i moved it closer it just seems to ignore it all together and just goes to “next chapter” which hasn’t even been written yet.

Edit: I did see one error I made and I’ll fix that real quick and see if that fixes it.

Edit again: Lol I solved it, I had it searching for *if (upbringing = “Noble”) instead of *if (upbringing = “Nobility”). Once i fixed that it found what it was looking for!

1 Like
*label BirthCyranon
    This text should be shown after you pick any choice
    *if (upbringing = "Noble") and (race = "Human")
        You come into this world a bloody, screaming mess. 
        *line_break

What happens when you put something in that label?
What else has that label? Beside one if and no else?

1 Like

Consider using number variables for this, (1 = noble, 2 = merchants etc.) because you will have this problem over and over.

2 Likes

Booleans are also a good idea, like is_merchant, is_noble and such.