Goto Scene skipping text

Hey there everyone! Last time I made a post, it was because I had made a very stupid error on my part, so i’m hoping it’s not the same case this time;

I have a goto that skips all the text inbetween the choice itself and goto, this here.

  #Hide until she passes
    *if Stealth > 15
     Jackson pressed himself against the wall, waiting, his breath nothing more than shallow bouts of air every five seconds. [I]Breathe in slow, breathe out slower[/i] he recited the training to himself over and over as the Handler walked by, a keycard dangling from her waist. She turned the corner, her footsteps fading as she continued down the corridor. He was safe, for now. He moved from his spot on the wall and back into the hallway. [i]No more hang ups, I don't have much time..[/i] He continued to the door at end, the yellow door with a keylock. The only other one he'd ever seen with a simple lock. He tried the handle and by the grace of god it clicked, opening with a light squeak [i]YES! FINALLY![/i] Jackson made his way into the new room, the only noticable thing being a large metallic staircase that led up in a near 90 degree angle [i]Alright. Almost there. This has to be the way out.[/i] He approched the stairs, looking over them for only a moment [i]This is it, I'm finally getting out of here, no matter the cost.[/i]
    *goto_scene escapehide
    *else

Any idea why when the choice is selected? It skips the block of text and just goes to the listed scene instead?
Thanks in advance!

Is that how your spacing looks? The indents aren’t right, for starters.

#Hide until she passes
    *if Stealth > 15
        Jackson pressed himself against the wall...
        *goto_scene escapehide
    *else

That would, upon making the choice and passing the Stealth check, display the text, then goto_scene.
If you fail the Stealth check, you just goto_scene.

2 Likes

Yes, @Kesavi, *if statements (and *gotos underneath them) need to be indented:

*if stealth > 15
     Jackson ....
     *goto_scene escapehide
*else

(Also, check that “Stealth” matches your stealth variable? I know that capitalization sometimes makes things funky in variables.)

1 Like

Ah alright, I did have things intended, but I think what it was is they weren’t intended the same/properly and screwed things up. Thanks everyone!

1 Like