Having Trouble With "Increasing Indent Not Allowed"

Hi, I am a long time reader of the forums but a first time poster. Usually able to work problems in my code out on my own by looking at what other people have posted. This one unfortunately has me totally lost. Here is the section of my code giving me trouble:

*label choose_disciplines
But the curse of your Clan wasn't the only thing you inherited. ${sire} also taught you to harness the arts and magicks that your Blood granted you. You learned to...
*choice
   *if sire = "Antoine"
       *hide_reuse #Sharpen a sixth sense that lets me peer past the veil into the world beyond ours, sensing the presence of the dead, their Passions, and how close they are to the land of the living.
           *set has_auspex "true"
           *set ghosts_auspex "true"
           *set discipline_count + 1
           Hecata Oblivion Text Here
           *if (discipline_count = 2)
               *return
       *hide_reuse #Summon an inner strength that allows me to take a hit— enduring great harms and sustaining blows that would kill even some unprotected Kindred.
           *set has_fortitude "true"
           *set discipline_count + 1
           Hecata Fortitude Text Here
           *if (discipline_count = 2)
               *return
       *hide_reuse #Control and commune with the spirits of the dead, harnessing their souls and pulling them through the Shroud to obtain their secrets and command them as servants, as well as cursing the living with the decaying effects of death.
           *set has_oblivion "true"
           *set ghosts_oblivion "true"
           *set discipline_count + 1
           Hecata Oblivion Text Here
           *if (discipline_count = 2)
               *return
   *if sire = "Castelle"
       *hide_reuse #Peer into the future, and into the intents and minds of others, and predict the actions and perceive the auras of those around me in fractured glimpses of what could be.
           *set has_auspex "true"
           *set mad_auspex "true"
           *set discipline_count + 1
           Malkavian Auspex Text Here
           *if (discipline_count = 2)
               *return
       *hide_reuse #Wield the darkness in the recesses of my mind against others, addling their minds, bending them to my will, and haunting them with their worst fears.
           *set has_dominate "true"
           *set mad_dominate "true"
           *set discipline_count + 1
           Malkavian Dominate Text Here
           *if (discipline_count = 2)
               *return
       *hide_reuse #Conceal myself from a world that loathes me, turning invisible and totally silencing myself to pass by unnoticed.
           *set has_obfuscate "true"
           *set mad_obfuscate "true"
           *set discipline_count + 1
           Malkavian Obfuscate Text Here
           *if (discipline_count = 2)
               *return

I want my player to be able to select two of the three options, and after having selected two, be redirected out of the “choose_disciplines” subroutine and back to where they were before, hence the “return”. I don’t want my player to be able to select the same option twice, which I’m using “hide_reuse” for, and I don’t want them to be able to select more than two, which is what I’m using the “discipline_count” variable for: in theory it’s supposed to send the player to the “return” command once the count hits 2. Players will have different Disciplines available depending who they chose their Sire to be, hence the “if_sire” command. There are six in total but I’ve only included two here for brevity.

Runthroughs with this code go fine until you actually select a choice. Then I get hit with this error:

My indents look fine to me, but I’m sure there’s something I’m missing. Thanks so much for the help :slight_smile:

If you are using *choice, each choice text body must ultimately end with a *finish, *goto, *goto_scene or *ending command (I think *return should also work, but I’ve never tried it). From what I can see from your code, if you have only selected one discipline, discipline_count will be 1 and there is no way for it to leave the choice body.

I don’t have access to all your code, and I don’t usually use gosub for something so complex, so this might be completely off, but try this.

*label choose_disciplines
But the curse of your Clan wasn't the only thing you inherited. ${sire} also taught you to harness the arts and magicks that your Blood granted you. You learned to...
*fake_choice
   *if sire = "Antoine"
       *hide_reuse #Sharpen a sixth sense that lets me peer past the veil into the world beyond ours, sensing the presence of the dead, their Passions, and how close they are to the land of the living.
           *set has_auspex "true"
           *set ghosts_auspex "true"
           *set discipline_count + 1
           Hecata Oblivion Text Here
       *hide_reuse #Summon an inner strength that allows me to take a hit— enduring great harms and sustaining blows that would kill even some unprotected Kindred.
           *set has_fortitude "true"
           *set discipline_count + 1
           Hecata Fortitude Text Here
       *hide_reuse #Control and commune with the spirits of the dead, harnessing their souls and pulling them through the Shroud to obtain their secrets and command them as servants, as well as cursing the living with the decaying effects of death.
           *set has_oblivion "true"
           *set ghosts_oblivion "true"
           *set discipline_count + 1
           Hecata Oblivion Text Here
   *if sire = "Castelle"
       *hide_reuse #Peer into the future, and into the intents and minds of others, and predict the actions and perceive the auras of those around me in fractured glimpses of what could be.
           *set has_auspex "true"
           *set mad_auspex "true"
           *set discipline_count + 1
           Malkavian Auspex Text Here
       *hide_reuse #Wield the darkness in the recesses of my mind against others, addling their minds, bending them to my will, and haunting them with their worst fears.
           *set has_dominate "true"
           *set mad_dominate "true"
           *set discipline_count + 1
           Malkavian Dominate Text Here
       *hide_reuse #Conceal myself from a world that loathes me, turning invisible and totally silencing myself to pass by unnoticed.
           *set has_obfuscate "true"
           *set mad_obfuscate "true"
           *set discipline_count + 1
           Malkavian Obfuscate Text Here
*if (discipline_count = 2)
    *return
*else
  *goto choose_disciplines
1 Like

Wound up sticking those last four lines of code at the end of each choice individually, and it worked like a charm. Thanks for letting me pick your brain!!

1 Like