Error: chapter_1 line 160: It is illegal to fall out of a *choice statement; you must *goto or *finish before the end of the indented block

There seems to be a problem with my *label leftrightroom set up in connection with this goto problem. I have no idea how to fix it, I’ve tried to post a snippet of the code, I hope it’s correct and can help someone figure out how to uh… help me?

The error starts here

     #Frown. You regret it.
      *if (mainstat = "frenzy")
       *set control %-10
       *set frenzy_c -1
      *if (mainstat = "control")
       *set control %+5
       *set control_c -1
      Staring at the damage, you swallow thickly. It had felt so good... almost [i]too good.[/i] The force it hit the wall with still 
      reverberated through your head, heavy as the discomfited knot in your gut.


      You shouldn't have done it. You were just - just -
    

      It was time to do something else. You look away from the damage, unable to stand it any longer as your eyes look to the open archways. 
      Havens away from this room.

      *goto leftrightroom

This code connects with this setup here

  *label leftrightroom
  *fake_choice
   *disable_reuse #Go left.
    *set counter +1
    *goto bathroom
   *disable_reuse #Go right.
    *set counter +1
    *goto closet

This is nested in a fake choice within another fake choice, which I’m wondering if that might be the problem? But I just don’t see why, when I keep pouring over my gotos to make sure they head to the right spot. I’ll post the full code here, but it’s a bit long I fear.

*fake_choice
 #Smash the pyramid.
  *set passive %-10
  *set frenzy_c +2

  You can't stand it any longer. [i]Tick. Tick. Tickticktick -[/i] 


  A surge of energy possesses your body as you hurl yourself forward. Off the bed into a stumbling stupor you steel yourself 
  against and power through to get to that desk. The horrible source of that awful, repetitive drone. Not for one seond -


  Not one second longer will you let it go on. 


  You grab it with an almost maniacal fervor, feel the grimace twisting your features. For such a small device, it is a heavy 
  weight in your shoulder. The ticking stops beneath your grip but it's not enough, it can't be enough. You swirl around in a 
  frenzy, the device creaking ominously as you make contact with the harsh wall across from you.

  *fake_choice
   #Throw it.
    *set control %-5
    *set frenzy_c +1
    You hardly think about it as you rear back your arm, swing forward with all the force you can muster, and [i]let it go.[/i] The rush of 
    watching it cut the ten foot distance like one is exhilerating. A gasp catches in your throat as it hits the wall, expecting an explosion of bits 
    and pieces that... never comes.


    Rather the device hits the wall with cracked boom.


    After a couple beats pass you peek up from the makeshift shield of your elbow. The device isn't shattered at all. Rather, the pointed end of the 
    pyramid had lodged itself deep within the stone, leaving the surrounding area concaved and splintering outward with cracks.


    A dent in the otherwise pristine room that you're locked inside.

    *choice
     #Smile. It was a small but gratifying victory.
      *set control %-5
      *set frenzy_c +1
      All the muscles in your face feel taught as a wide grin splits it in half. You stare at the damage you wrought and dig your teeth into your lower 
      lip as you feel your hands tingle with the force you'd wreaked upon the poor focus of your ire.


      That stupid tick was finally gone, and you'd been the one to get rid of it. 

      
      Feeling triumphant, you decide it's time to explore. You look up, trying to decide between which archway to go through.

      *goto leftrightroom
     #Frown. You regret it.
      *if (mainstat = "frenzy")
       *set control %-10
       *set frenzy_c -1
      *if (mainstat = "control")
       *set control %+5
       *set control_c -1
      Staring at the damage, you swallow thickly. It had felt so good... almost [i]too good.[/i] The force it hit the wall with still 
      reverberated through your head, heavy as the discomfited knot in your gut.


      You shouldn't have done it. You were just - just -
    

      It was time to do something else. You look away from the damage, unable to stand it any longer as your eyes look to the open archways. 
      Havens away from this room.

      *goto leftrightroom
   #Don't. You can't bring yourself to.
    *set control %+5
    *set control_c +1
    With all the righteous, thrumming fury to can muster you reel you hard back, teeth gritted as you imagine the strength 
    rushing into your slighted grip. The focus of your ire smashing against the stone and shattered at your own hand -


    ...


    .....


    Nothing. Trembling in a nonexistent breeze, your arm drops. The device thunks loudly against the stone floor, It's feeble, 
    clicking arm clinking dimly before it rolls onto it's face, unable to emit any noise. With a deep exhale, you steady one hand 
    against your temple as if to ward of the dull throb threatening to grow.

    
    It's probably best to do something else. Your eyes flicker up, between the archways again.

    *goto leftrightroom
   #Stop yourself.
    *set control %+10
    *set control_c +2
    It's easy as you hold the device prisoner. The inanimate body completely at the mercy of your grip. It's even easier to 
    picture the messy aftermath. The promise of it's violent eruption making your fingertips tingle yet, your muscles twitching 
    as if daring to seek the gratification without your approval.


    And yet, what would you gain from it? You don't know what purpose the device served, if it was important or not. Why did you get to decide?


    You're surprised a little by yourself when you spin around and place the device back on the plain desk, gleaming with cleanlinesss. One finger 
    pressed delicately against the device's arm, coming to terms with it's existence as you felt along the thin metal needle that had nearly ticked 
    you into insanity only moments ago. It struggled againt the strength of your fingers. You let go. 


    [i]Tick![/i]


    Was it even louder now?


    [i]Tick![/i]

    With a sigh, you decide it's best to distract yourself from the stupid device until you forget about it. Time to see what's in those rooms.

    *goto leftrightroom
 #Actually, you want to explore.
  *set timid %-10

  Everything was so strange. 
  
  
  Why was that thing ticking? Why were you in this room, what were in those [i]other[/i] rooms? Again you look at the odd, clicking pyramid. 
  The strangers could be back at any moment, but you'd waited a while already. What could go wrong just by walking around a bit?


  You ignore the drag of the soft bed as you scoot close to it's edge and peek over, expecting a cliff. Only to bet met with the 
  smooth floor gray floor. Gingerly pressing the pad of your foot against it, you gasp at it's chilled stone texture. Sucking in a 
  breath, you push yourself up.


  And go stumbling.
  
  
  The yelp that escapes you as your body weight comes falling down on your shoulders alarms yourself, your legs completely unused to carrying 
  yourself as the floor teeters dangerously closer in your vision. Intense fear of the tough blugdeon you imagine hitting it to be 
  drives you forward, through your stumbling until you catch yourself.


  It's okay. You're okay. You take a second to adjust as you suare your feet and take another tentative step forward. 

  *label leftrightroom
  *fake_choice
   *disable_reuse #Go left.
    *set counter +1
    *goto bathroom
   *disable_reuse #Go right.
    *set counter +1
    *goto closet
 #Just lie back down.
  *set passive %+10

  *gosub liedownfirst


  Finally, you exhale. Your energy and diligence fading out of you with it. 


  Without further thought on the matter, you lie down. Curling up on your side with a grimace at the softness proffered by the 
  plush bed. Trying not to feel like you'll sink through the softness into some black abyss, you begin to feel you mind calm. One 
  moment without confusion.


  That's all you want. 

  *goto firstarrival
 #You're too overwhelmed to leave the bed.
  *set timid %+10

  *gosub liedownfirst


  It did not work. Fear coiled and uncoiled restlessly inside of you, threatening to rip through the soft skin of your stomach. Run. [i]Hide.[/i]


  You do neither, you can't. After everything, the fear, confusion, and pain, you simply can't. The very thought sends a tremble 
  through you. So you don't, you look down and before you know it your arms are a protective shield around your head as you curl 
  up into yourself. It seems... wrong, to try and emulate the intense pressure of the cage you escaped from. But it was all you 
  could do try and contain the anxiousness running rampant in your mind.


  Eventually, it even begins to fade.

  *goto firstarrival

You can remove implicit control flow in your startup file to fix this error. You can read more about it here:

1 Like

Ah, I see, thank you so much for your input. It was my understanding that by including this I could use *if and *else statements easier, and if i remove it, they will give me errors. Is there no way to use those freely without the implicit control flow?

EDIT: I’ve actually fully read through your link and think I see now what I need to do, tysm :relaxed:

3 Likes

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.