Weird *else fallout, unsure where it's originating from?

I’m having trouble with a section of my code, I keep getting *else fallouts and I’m not sure where they originate from. I’m going to post the section I think is causing the issue here, and hope someone can tell me what I’ve done wrong.

The error I’m getting is:…

Code is in the next post, as it’s too many characters to be put into this one.

My code looks like this:

*label Bullyvenge
*comment only available if bullyvengeplan is true. Zhong Luli's admission that she's the bully is perfect for PC's plan. PC finds a way to sneak back to the dorm (athletics check maybe?) and secrets away the stolen goods. Zhong Luli manages to weasel her way out of it somehow (of screen), but this cements PC as her enemy. goes to meet qin bolin. if wearing_makeup is true, PC has to defend themselves from accusations of theft during the event. if they fail, they are beaten, and succumb to their injuries and die. 
It doesn't take much to sneak back into the dormitory while no one is looking for you. A few moments alone to visit the lavatory was generally allowed, and you took advantage of it to dig your little stash of stolen goods out of your hiding place. The 
*if ((tookZTsewkit <=3) and (tookccmoney = false)) and (tookssqmoney = false)
  majority of the sewing kit.

  *goto bullyvenge_a
*elseif ((tookZTsewkit <=3) and (tookccmoney = true)) and (tookssqmoney = true)
  *set tookZTsewkit 5
  majority of the sewing kit, and 11 taels of silver.

  You pause and consider. You can put all of the money in with the stolen goods, or you could keep some back for yourself. While it'd be difficult for the supervisor to pin the theft on you if you didn't keep all of it, you'd still cause confusion if the missing amounts weren't an exact match.
  *fake_choice
    #[i]I put all of the money in.[/i]
      *set wealth -11

      *goto bullyvenge_a
    #[i]I put some of the money in.[/i]
      *set wealth -5
      After some consideration, you decide that keeping half the money is reasonable. You can easily say that you saved it from your last wages, if anyone asks where you got the money from. It isn't as if anyone requires the servants to account for every tael they spend, either. Tucking away six taels, you put the rest in with the sewing kit.

      *goto bullyvenge_a
    #[i]I only put the sewing kit in.[/i]
      After some consideration, you decide that keeping the money is reasonable. You can easily say that you saved it from your wages, if anyone asks where you got the money from. It isn't as if anyone requires the servants to account for every tael they spend, either. Tucking away all eleven taels, you put the rest in with the sewing kit.

      *goto bullyvenge_a
*elseif ((tookZTsewkit <=3) and (tookccmoney = false)) and (tookssqmoney = true)
  *set tookZTsewkit 5  
  majority of the sewing kit, and 6 taels of silver.
  
  You pause and consider. You can put all of the money in with the stolen goods, or you could keep some back for yourself. While it'd be difficult for the supervisor to pin the theft on you if you didn't keep all of it, you'd still cause confusion if the missing amounts weren't an exact match.
  *fake_choice
    #[i]I put all of the money in.[/i]
      *set wealth -6

      *goto bullyvenge_a
    #[i]I put some of the money in.[/i]
      *set wealth -3
      After some consideration, you decide that keeping half the money is reasonable. You can easily say that you saved it from your last wages, if anyone asks where you got the money from. It isn't as if anyone requires the servants to account for every tael they spend, either. Tucking away three taels, you put the rest in with the sewing kit.

      *goto bullyvenge_a
    #[i]I only put the sewing kit in.[/i]
      After some consideration, you decide that keeping the money is reasonable. You can easily say that you saved it from your wages, if anyone asks where you got the money from. It isn't as if anyone requires the servants to account for every tael they spend, either. Tucking away all six taels, you put the rest in with the sewing kit.

      *goto bullyvenge_a
*elseif ((tookZTsewkit <=3) and (tookccmoney = true)) and (tookssqmoney = false)
  *set tookZTsewkit 5
  majority of the sewing kit, and 5 taels of silver.
    
  You pause and consider. You can put all of the money in with the stolen goods, or you could keep some back for yourself. While it'd be difficult for the supervisor to pin the theft on you if you didn't keep all of it, you'd still cause confusion if the missing amounts weren't an exact match.
  *fake_choice
    #[i]I put all of the money in.[/i]
      *set wealth -5

      *goto bullyvenge_a
    #[i]I put some of the money in.[/i]
      *set wealth -2
      After some consideration, you decide that keeping half the money is reasonable. You can easily say that you saved it from your last wages, if anyone asks where you got the money from. It isn't as if anyone requires the servants to account for every tael they spend, either. Tucking away three taels, you put the rest in with the sewing kit.

      *goto bullyvenge_a
    #[i]I only put the sewing kit in.[/i]
      After some consideration, you decide that keeping the money is reasonable. You can easily say that you saved it from your wages, if anyone asks where you got the money from. It isn't as if anyone requires the servants to account for every tael they spend, either. Tucking away all five taels, you put the rest in with the sewing kit.

      *goto bullyvenge_a
*elseif ((tookZTsewkit >= 4) and (tookccmoney = true)) and (tookssqmoney = true)  
  11 taels of silver you'd tucked away.
  
  You pause and consider. You can put all of the money in with the stolen goods, or you could keep some back for yourself. While it'd be difficult for the supervisor to pin the theft on you if you didn't keep all of it, you'd still cause confusion if the missing amounts weren't an exact match.
  *fake_choice
    #[i]I put all of the money in.[/i]
      *set wealth -11

      *goto bullyvenge_a
    #[i]I put some of the money in.[/i]
      *set wealth -5
      After some consideration, you decide that keeping half the money is reasonable. You can easily say that you saved it from your last wages, if anyone asks where you got the money from. It isn't as if anyone requires the servants to account for every tael they spend, either. Tucking away six taels, you bundle the rest up in a scrap of cloth.

      *goto bullyvenge_a
*elseif ((tookZTsewkit >= 4) and (tookccmoney = false)) and (tookssqmoney = true)
  6 taels of silver you'd tucked away.

  You pause and consider. You can put all of the money in with the stolen goods, or you could keep some back for yourself. While it'd be difficult for the supervisor to pin the theft on you if you didn't keep all of it, you'd still cause confusion if the missing amounts weren't an exact match.
  *fake_choice
    #[i]I put all of the money in.[/i]
      *set wealth -6

      *goto bullyvenge_a
    #[i]I put some of the money in.[/i]
      *set wealth -3
      After some consideration, you decide that keeping half the money is reasonable. You can easily say that you saved it from your last wages, if anyone asks where you got the money from. It isn't as if anyone requires the servants to account for every tael they spend, either. Tucking away three taels, you bundle the rest up in a scrap of cloth.

      *goto bullyvenge_a
*elseif ((tookZTsewkit >= 4) and (tookccmoney = true)) and (tookssqmoney = false)
  5 taels of silver you'd tucked away.
  
  You pause and consider. You can put all of the money in with the stolen goods, or you could keep some back for yourself. While it'd be difficult for the supervisor to pin the theft on you if you didn't keep all of it, you'd still cause confusion if the missing amounts weren't an exact match.
  *fake_choice
    #[i]I put all of the money in.[/i]
      *set wealth -5

      *goto bullyvenge_a
    #[i]I put some of the money in.[/i]
      *set wealth -2
      After some consideration, you decide that keeping half the money is reasonable. You can easily say that you saved it from your last wages, if anyone asks where you got the money from. It isn't as if anyone requires the servants to account for every tael they spend, either. Tucking away three taels, you bundle the rest up in a scrap of cloth.

      *goto bullyvenge_a
*else
  ERROR. tookZTSewkit is ${tookZTsewkit}, tookccmoney is ${tookCCmoney} and took ssqmoney is ${tookSSQmoney}.
  
  *goto bullyvenge_a
*label bullyvenge_a
You tuck these stolen bits and bobs into the small crevice you've made beneath Zhong Luli's section of the shared kang-style bed. @{(reasoning >= bad) Lowering the rice-woven mat, you made certain your own little crevice was empty, your own hidden stash moved carefully to a spot beneath a tree housed in a large red cistern.| You lower the rice-woven mat and check the cubbies, making sure to rifle through the victim's things to make it more obvious.} With a little pep in your step at the idea of a thorough revenge upon your bully, you hurry back to work. 
*page_break
When it's finally too dark to work, your supervisor releases all of you back to the dormitories, your feet aching and your back pained. You're not alone, but you [i]are [/i]viciously happy when you hear 
*if tookZTsewkit <= 3
  Zhou Tian's sharp cry.
  *goto framing1confrontationbegin
*elseif tookccmoney = true
  Cui Chen's punched-out gasp.
  *goto framing1confrontationbegin
*elseif tookssqmoney = true
  Shao Shaoqing's pained exclamation.
  *goto framing1confrontationbegin
*else
  ERROR
  *goto framing1confrontationbegin
*label framing1confrontationbegin
"Where is it!" 

You rush inside to see the chaos has begun.
*if ((tookZTsewkit <= 3) and (tookccmoney = false)) and (tookssqmoney = false)
  Zhou Tian was turning ${pc_his} cubby upside down, tossing clothing and shoes about as if they didn't matter. "[b]Where is it![/b]"
*if ((tookZTsewkit <= 3) and (tookccmoney = true)) and (tookssqmoney = true)
  Zhou Tian was turning ${pc_his} cubby upside down, tossing clothing and shoes about as if they didn't matter. "[b]Where is it![/b]"

  Beside ${pc_him}, Cui Chen was helping Shao Shaoqing search through their cubbies together, both frantic. "They're gone! They're gone!" Shao Shaoqing lamented, teary-eyed. 
*if ((tookZTsewkit <= 3) and (tookccmoney = false)) and (tookssqmoney = true)
  Zhou Tian was turning ${pc_his} cubby upside down, tossing clothing and shoes about as if they didn't matter. "[b]Where is it![/b]"

  Beside ${pc_him}, Cui Chen was helping Shao Shaoqing search through ${pc_his} cubby together, frantic. "They're gone! They're gone!" Shao Shaoqing lamented, teary-eyed. 
*if ((tookZTsewkit <=3) and (tookccmoney = true)) and (tookssqmoney = false)
  Zhou Tian was turning ${pc_his} cubby upside down, tossing clothing and shoes about as if they didn't matter. "[b]Where is it![/b]"

  Beside ${pc_him}, Shao Shaoqing was helping Cui Chen search through ${pc_his} cubby together, frantic. "My savings…" Cui Chen breathed, voice watery. 
*if ((tookZTsewkit = 4) and (tookccmoney = true)) and (tookssqmoney = true)
  Cui Chen was helping Shao Shaoqing search through their cubbies together, both frantic. "They're gone! They're gone!" Shao Shaoqing lamented, teary-eyed. 
*if ((tookZTsewkit = 4) and (tookccmoney = false)) and (tookssqmoney = true)
  Shao Shaoqing was helping Cui Chen search through ${pc_his} cubby together, frantic. "My savings…" Cui Chen breathed, voice watery. 
*if ((tookZTsewkit = 4) and (tookccmoney = true)) and (tookssqmoney = false)
  Shao Shaoqing was helping Cui Chen search through ${pc_his} cubby together, frantic. "My savings…" Cui Chen breathed, voice watery.
*line_break
*line_break
Any guilt you harbored in your heart at the sorrow your actions caused was replaced with vindictiveness when Zhou Tian turned on the room, looking over all of you with a gimlet eye. "Who was it!?" 

*if tookzllmakeup = true
  "My makeup! It's gone too!" Zhong Luli cried, your eyes drawn to the anguish on ${pc_his} face. @{(wearing_makeup = true) Zhong Luli's eyes zero in on your carmine-painted lips and eyes, and widen into dinner plates. "YOU! You stole my rouge! What else did you steal, you thief!"| Zhong Luli's eyes track around the room, trying to find the culprit as if they were painted in red paint."Fess up! Who dares to be a thief in the Imperial Palace!"}

"What is all this noise?!" The Dormitory Supervisor came in, ${pc_his} face stern and drawn. The severe cut of ${pc_his} black uniform accenting the severity of the situation. "What is this about a thief?"

"Supervisor Ban, some
*if ((tookccmoney = true) or (tookssqmoney = true)) and ((tookZTsewkit <= 3) or (tookzllmakeup =  true))
  money and items are
  *goto elseif1
*elseif  (tookccmoney = true) or (tookssqmoney = true)
  money is
  *goto elseif1
*elseif (tookZTsewkit <=3) or (tookzllmakeup =  true)
  items are
  *goto elseif1
*else
  things are
  *goto elseif1
*label elseif1
missing from our cubbies." Cui Chen commented, sleepy voice alert for the first time since you'd met ${pc_him}. "We beg you to investigate." 

Supervisor Ban's sharp fox-like eyes crept around the room, taking in each of your faces. @{(wearing_makeup) You feel a creeping worry crawl up your spine, and wonder if maybe, just maybe you should have been a bit more cautious.| You feel secure knowing you'd been cautious enough to hide any evidence.} Her gaze rests upon Zhong Luli, who was practically turning red with rage. "What is missing?"

*if (tookccmoney = true) and (tookssqmoney = true)
  "Cui Chen and I are missing some taels from our savings, Supervisor Ban. Six taels from mine, and five from Cui Chen's, for a total of eleven taels." Shao Shaoqing managed to say, voice sticky with tears. Cui Chen rested a hand on ${pc_his} shoulder, eyes on the floor.
  *goto elseif2
*elseif (tookccmoney = true)
  "Cui Chen is missing some of ${pc_his} savings. Five Taels, to be specific." Shao Shaoqing stated, words thick with unvoiced anger. Cui Chen rested a hand on ${pc_his} shoulder, eyes on the floor.
  *goto elseif2
*elseif (tookssqmoney = true)
  "Cui Chen and I are missing some taels from our savings, Supervisor Ban. Six taels from mine, and five from Cui Chen's, for a total of eleven taels." Shao Shaoqing managed to say, voice sticky with tears. Cui Chen rested a hand on ${pc_his} shoulder, eyes on the floor.
  *goto elseif2
*else
  *goto elseif2
*label elseif2

*if tookZTsewkit <= 3
  "My sewing kit." Zhou Tian glares, "It was in a small, cloudprint bag. My [i]sister[/i] made that for me." The glare travels, catching each person in the room with ire.
*if tookzllmakeup = true
  "My rouge! My special rouge, it's gone, supervisor Ban!" Zhong Luli whined, stamping ${pc_his} foot in rage. You aren't the only one that crinkles your nose in disgust for the display.
"Something has to be done! Thieves cannot be abided!"

The others mumble agreement with Zhong Luli's declaration, leaving you to sort through your own feelings on the matter.
*fake_choice
  #[i]I cannot hide my hatred for this bully.[/i]
    *set bloodthirst %+low
    A wretched creature like Zhong Luli deserved to have everything ripped from them, and this was just the first step. If it were up to you, you'd rip their whole lives away from them, leave them hanging from a length of white silk. No one crosses you and gets away with it.
  #[i]I worry for a moment that my plan might not be foolproof.[/i]
    *set bravery %-low
    It wasn't impossible for Zhong Luli to try and turn your accusation back on you. @{(tookZTsewkit <= 3) You think of the hidden sewing kit, knowing it wouldn't take much to find. |}@{(wearing_makeup = true) You scratch at the suddenly itchy rouge at the corner of your eyes, wondering if you made a mistake. |}What were you going to do? Your mind raced to plan out your arguments should someone try to accuse you. 
  #[i]The tense situation sent a thrill up your spine.[/i]
    *set chaste %-low
    A new experience, being on this edge. In your father's home, you were the one framed for things, beaten for things. Here you are, about to get revenge on the cruel dog who tried to bite you, and it feels [i]fantastic.[/i] The power of being on top for once sends a heady wave through you. 
Supervisor Ban sighs, and rubs at ${pc_his} forehead, before opening ${pc_his} eyes and casting another look around the room. "Zhong Luli is correct. Thieves cannot be allowed to remain within the Imperial Palace walls. Confess now, and I will consider mercy in your sentencing."

@{(Bravery >= bad) Your teeth itch as you hide your smirk of triumph behind your teeth. Your plan hinges on someone else accusing Zhong Luli, so you remain quiet, awaiting the snap of your trap.| Your teeth itch violently as your breath kicks up. What if no one accuses Zhong Luli? What if you get accused? Had anyone noticed you were missing earlier?} It takes less than a few moments before someone spoke. 

"Was it you, Zhong Luli?" Su Mingzhu demanded, earning ${pc_him} the gaze of everyone in the room. The accused immediately puffed up, eyes wide enough to see the whites all around Zhong Luli's dark irises. Exhaustion had made everyone snippy, however, and so Su Mingzhu glowered right back, "You've picked on nearly everyone in this room. There's no reason not to think it's you."

*if (tookZLLmakeup = true)
  *if (wearing_makeup = true)
    "Are you forgetting that I had something stolen too?!" Zhong Luli demands, stamping ${pc_his} foot childishly. You can't help the huff of amusement from escaping your nose, only to startle when your bully's finger snaps up and points at your face. "$!{surname} $!{given_name} is the thief, I'm sure of it!"

    "Hah?!" You exclaim, an unspoken demand for this accusation to be explained. "Zhong Luli has lost their mind!"

    "And it's just a coincidence that my rouge is missing and suddenly you start wearing it?!" Zhong Luli sneers, crossing ${pc_his} arms over ${pc_his} chest, as those present turn to take in the crimson smeared at the corner of your ${pc_eyetype} eyes and along the inside of your lips. "Supervisor Ban, search $!{surname} $!{given_name}'s things! I'm sure you'll find the stolen goods!"

    "I am no theif!" You lie, the outrage on your face mistaken for hurt honor, rather than for the fear it actually is. 

    "Enough!" Supervisor Ban snapped, silencing the outbreak of whispering that had started at your declaration. "$!{pc_Hon_Higher}, bring out your belongings and money. Do not hide any, or this supervisor will assume you are in fact the thief."

    Without any real choice in the matter, you push through the gawping crowd and pull your things from your cubby, dropping them onto the table in the room, and glowering. Supervisor Ban searches through your belongings, and finds your 'savings'. 
    *if (wealth >= 1) and (wealth <=10)
      "${Wealth} taels," Supervisor Ban comments, raising an eyebrow. You swallow, and consider your next words carefully.

      "Supervisor Ban, the missing taels total
      *if (tookccmoney = true) and (tookssqmoney = true)
        eleven. 
        *goto elseif3
      *elseif (tookccmoney = true)
        five. 
        *goto elseif3
      *elseif (tookssqmoney = true)
        six. 
        *goto elseif3
      *label elseif3
      I have been saving my wages since I arrived, and before even-" You speak over Shao Shaoqing's exclamation that so had ${pc_he} and Cui Chen, ", and so it only makes sense that I would have ${wealth} taels to my name! This is not admition of guilt! Supervisor Ban, this lowly one begs justice for this false accusation. Please, earch everyone's things equally. Even more so, search for secret hidey-holes as any sneak-thief will surely not hide their stolen gains in the open!"

      *if reasoning <= bad
        You carefully don't freeze as the words leave your lips, remembering then that you had failed to remove your own stolen gains from beneath the kang-style bed you all share. In your mind's eye, you can see the lotus-stamped tin sitting in that small hole you'd created. Panic raged through you like a wildfire.

      *if reasoning > bad
        You rest assured that your own stash of stolen goods resides in the red cistern in the courtyard. The sharp teeth of your trap will soon snap shut and you cannot help how your eyes dart to Zhong Luli, hoping to see some panic on ${pc_his} face.

      "Fine." Supervisor Ban snaps, and you assume ${pc_he} @{pc_singular is|are} unhappy to have to perform extra work. "Su Mingzhu, pull up the rice-matting of the bed. Zhou Tian, bring out everything from the cubbies. Keep them in seperate piles so that we know whose cubby held what."

      After some shuffling, Supervisor Ban sneers, 
      *if reasoning <= bad
        turning to you and holding up the lotus tin, that Su Mingzhu just found in the hole beneath your bed, in ${pc_his} left hand. In ${pc_his} right hand, ${pc_he} @{pc_singular holds|hold}
        *if ((tookccmoney = true) or (tookssqmoney = true))
          jingling taels, wrapped in cloth, @{(tookZTsewkit <=3) and,|}
        *if  (tookZTsewkit <= 3)
          the cloud-embroidered sewing kit,
        that had been hidden beneath Zhong Luli's bed, and his eyes snap from you to Zhong Luli.

        "It would seem we have [i]two[/i] thieves in our midst. Zhong Luli, $!{surname} $!{given_name}, report to the courtyard. You are sentenced to flogging, seventy five hits each, delivered by Eunuch Zhao." Eunuch Zhao was a man twice as broad as you were, and with arms as large around as your head. Fear doused your body like a dive into a december lake. Seventy five hits… that was no joke.

        "What! No, I'm no thief! I didn't do this-!" Zhong Luli protested, even as Su Mingzhu stepped forward to drag ${pc_him} to the courtyard. You feel a hand on your own shoulder and stumble towards it yourself.
        *goto FailedFramingTheft
      *if reasoning > bad
        turning to Zhong Luli with contempt written on ${pc_his} face. In ${pc_his} right hand, ${pc_he} @{pc_singular holds|hold}
        *if ((tookccmoney = true) or (tookssqmoney = true))
          jingling taels, wrapped in cloth, @{(tookZTsewkit <=3) and,|}
        *if  (tookZTsewkit <= 3)
          the cloud-embroidered sewing kit,
        that had been hidden beneath Zhong Luli's bed.

        "It would seem we have discovered our thief. Zhong Luli, report to the courtyard. You are sentenced to flogging, seventy five hits delivered by Eunuch Zhao." Eunuch Zhao was a man twice as broad as you were, and with arms as large around as your head. Seventy five hits… that was no joke, and if done improperly could perhaps cripple Zhong Luli for life.

        "What! No, I'm no thief! I didn't do this-!" Zhong Luli protested, even as Su Mingzhu stepped forward to drag ${pc_him} to the courtyard. You watch as ${pc_he} @{pc_singular is|are} dragged out into the courtyard. Soon, the night rings with the sounds of ${pc_his} screams of pain. 
        *fake_choice
          #[i]Music to my ears.[/i]
            *set bloodthirst %+low
            *goto MeetQinBolin
          #[i]Guilt rises in my throat, and sleep doesn't come easy.[/i]
            *set scheming %-low
            *goto MeetQinBolin
          #[i]I sleep easy, knowing justice has been done.[/i]
            *set bloodthirst %-low
            *goto MeetQinBolin
          #[i]One enemy down.[/i]
            *set scheming %+low
            *goto MeetQinBolin
  *else ((((((THIS IS WHERE THE ERROR SHOWS UP)))))
    *comment This is if you're *NOT* wearing the makeup, but you HAVE stolen it.
    *todo Figure out why the hell the else is falling out. Something is wrong with it, not sure what. 
    Zhong Luli's eyes track around the room, trying to find the culprit as if they were painted in red paint."Fess up! Who dares to be a thief in the Imperial Palace!"

    "What is all this noise?!" The Dormitory Supervisor came in, ${pc_his} face stern and drawn. The severe cut of ${pc_his} black uniform accenting the severity of the situation. "What is this about a thief?"

    "Supervisor Ban, some
    *if ((tookccmoney = true) or (tookssqmoney = true)) and ((tookZTsewkit <= 3) or (tookzllmakeup =  true))
      money and items are
      *goto elseif4
    *elseif  (tookccmoney = true) or (tookssqmoney = true)
      money is
      *goto elseif4
    *elseif (tookZTsewkit <=3) or (tookzllmakeup =  true)
      items are
      *goto elseif4
    *else
      things are
      *goto elseif4
    *label elseif4
    missing from our cubbies." Cui Chen commented, sleepy voice alert for the first time since you'd met ${pc_him}. "We beg you to investigate." 

    Supervisor Ban's sharp fox-like eyes crept around the room, taking in each of your faces. @{(reasoning <= bad) You feel a creeping worry crawl up your spine, and wonder if maybe, just maybe you should have been a bit more cautious.| You feel secure knowing you'd been cautious enough to hide any evidence.} Her gaze rests upon Zhou Tian, who was practically turning red with rage. "What is missing?"

    *if (tookccmoney = true) and (tookssqmoney = true)
      "Cui Chen and I are missing some taels from our savings, Supervisor Ban. Six taels from mine, and five from Cui Chen's, for a total of eleven taels." Shao Shaoqing managed to say, voice sticky with tears. Cui Chen rested a hand on ${pc_his} shoulder, eyes on the floor.
      *goto elseif5
    *elseif (tookccmoney = true)
      "Cui Chen is missing some of ${pc_his} savings. Five Taels, to be specific." Shao Shaoqing stated, words thick with unvoiced anger. Cui Chen rested a hand on ${pc_his} shoulder, eyes on the floor.
      *goto elseif5
    *elseif (tookssqmoney = true)
      "Cui Chen and I are missing some taels from our savings, Supervisor Ban. Six taels from mine, and five from Cui Chen's, for a total of eleven taels." Shao Shaoqing managed to say, voice sticky with tears. Cui Chen rested a hand on ${pc_his} shoulder, eyes on the floor.
      *goto elseif5
    *else
      *goto elseif5
    *label elseif5

    *if tookZTsewkit <= 3
      "My sewing kit." Zhou Tian glares, "It was in a small, cloudprint bag. My [i]sister[/i] made that for me." The glare travels, catching each person in the room with ire.

    Zhong Luli stamped ${pc_his} feet, crossing ${pc_his} arms. "Something has to be done! Thieves cannot be abided!"

Code continued in the next post, because it’s too many characters.

Second bout of code:


    The others mumble agreement with Zhong Luli's declaration, leaving you to sort through your own feelings on the matter.
    *fake_choice
      #[i]I cannot hide my hatred for this bully.[/i]
        *set bloodthirst %+low
        A wretched creature like Zhong Luli deserved to have everything ripped from them, and this was just the first step. If it were up to you, you'd rip their whole lives away from them, leave them hanging from a length of white silk. No one crosses you and gets away with it.
      #[i]I worry for a moment that my plan might not be foolproof.[/i]
        *set bravery %-low
        It wasn't impossible for Zhong Luli to try and turn your accusation back on you. @{(tookZTsewkit <= 3) You think of the hidden sewing kit, knowing it wouldn't take much to find. |}What were you going to do? Your mind raced to plan out your arguments should someone try to accuse you. 
      #[i]The tense situation sent a thrill up your spine.[/i]
        *set chaste %-low
        A new experience, being on this edge. In your father's home, you were the one framed for things, beaten for things. Here you are, about to get revenge on the cruel dog who tried to bite you, and it feels [i]fantastic.[/i] The power of being on top for once sends a heady wave through you. 
    Supervisor Ban sighs, and rubs at ${pc_his} forehead, before opening ${pc_his} eyes and casting another look around the room. "Zhong Luli is correct. Thieves cannot be allowed to remain within the Imperial Palace walls. Confess now, and I will consider mercy in your sentencing."

    @{(Bravery >= bad) Your teeth itch as you hide your smirk of triumph behind your teeth. Your plan hinges on someone else accusing Zhong Luli, so you remain quiet, awaiting the snap of your trap.| Your teeth itch violently as your breath kicks up. What if no one accuses Zhong Luli? What if you get accused? Had anyone noticed you were missing earlier?} It takes less than a few moments before someone spoke. 

    "Was it you, Zhong Luli?" Su Mingzhu demanded, earning ${pc_him} the gaze of everyone in the room. The accused immediately puffed up, eyes wide enough to see the whites all around Zhong Luli's dark irises. Exhaustion had made everyone snippy, however, and so Su Mingzhu glowered right back, "You've picked on nearly everyone in this room. There's no reason not to think it's you."

    *page_break
    "How dare you accuse me of this?!" Zhong Luli demands, stamping ${pc_his} foot childishly. You can't help the huff of amusement from escaping your nose, only to startle when your bully's finger snaps up and points at your face. "$!{surname} $!{given_name} is the thief, I'm sure of it!"

    "Hah?!" You exclaim, an unspoken demand for this accusation to be explained. "Zhong Luli has lost ${pc_his} mind!"

    "You've had it out for me! $!{surname} $!{given_name} has some sort of grudge against this servant, and ${pc_he} hate this servant!" Zhong Luli sneers, crossing ${pc_his} arms over ${pc_his} chest, as those present turn to see your response. "Supervisor Ban, search $!{surname} $!{given_name}'s things! I'm sure you'll find the stolen goods!"

    "I am no theif!" You lie, the outrage on your face mistaken for hurt honor, rather than for the fear it actually is. "If I have a grudge against you, Zhong Luli, it has been [i]earned[/i] with behavior like this!"

    "Enough!" Supervisor Ban snapped, silencing the outbreak of whispering that had started at your declaration. "$!{pc_Hon_Higher}, bring out your belongings and money. Do not hide any, or this supervisor will assume you are in fact the thief."

    "This is unjust! Supervisor Ban, this servant begs you, search everyone's things, at least! This bias is too much!" You demand, putting aggreived tears in the corner of your eyes.

    "Fine!" Supervisor Ban declares, waving ${pc_his} hand to scatter you all into pulling your things from the cubbies, dropping them into piles around the room, and glowering. Supervisor Ban searches through your collective belongings, taking yours first, and finds your 'savings'. 
    *if (wealth >= 1) and (wealth <=10)
      "${Wealth} taels," Supervisor Ban comments, raising an eyebrow. You swallow, and consider your next words carefully.

      "Supervisor Ban, the missing taels total
      *if (tookccmoney = true) and (tookssqmoney = true)
        eleven. 
        *goto elseif6
      *elseif (tookccmoney = true)
        five. 
        *goto elseif6
      *elseif (tookssqmoney = true)
        six. 
        *goto elseif6
      *label elseif6
      I have been saving my wages since I arrived, and before even-" You speak over Shao Shaoqing's exclamation that so had ${pc_he} and Cui Chen, ", and so it only makes sense that I would have ${wealth} taels to my name! This is not admition of guilt, and my savings was in the open! Supervisor Ban,this lowly one begs you search for secret hidey-holes as any sneak-thief will surely not hide their stolen gains in the open like this!"

      *if reasoning <= bad
        You carefully don't freeze as the words leave your lips, remembering then that you had failed to remove your own stolen gains from beneath the kang-style bed you all share. In your mind's eye, you can see the lotus-stamped tin sitting in that small hole you'd created. Panic raged through you like a wildfire.

      *if reasoning > bad
        You rest assured that your own stash of stolen goods resides in the red cistern in the courtyard. The sharp teeth of your trap will soon snap shut and you cannot help how your eyes dart to Zhong Luli, hoping to see some panic on ${pc_his} face.
      *page_break
      "Fine." Supervisor Ban snaps, and you assume ${pc_he} @{pc_singular is|are} unhappy to have to perform extra work. "Su Mingzhu, pull up the rice-matting of the bed. Zhou Tian, help ${pc_him}."

      After some shuffling, Supervisor Ban sneers, 
      *if (reasoning <= bad)
        turning to you and holding up the lotus tin you failed to hide, that Su Mingzhu just found in the hole beneath your bed, in ${pc_his} left hand. In ${pc_his} right hand, ${pc_he} @{pc_singular holds|hold}
        *if ((tookccmoney = true) or (tookssqmoney = true))
          jingling taels, wrapped in cloth, @{(tookZTsewkit <=3) and,|}
        *if  (tookZTsewkit <= 3)
          the cloud-embroidered sewing kit,
        that had been hidden beneath Zhong Luli's bed, and his eyes snap from you to Zhong Luli.

        "It would seem we have [i]two[/i] thieves in our midst. Zhong Luli, $!{surname} $!{given_name}, report to the courtyard. You are sentenced to flogging, seventy five hits each, delivered by Eunuch Zhao." Eunuch Zhao was a man twice as broad as you were, and with arms as large around as your head. Fear doused your body like a dive into a december lake. Seventy five hits… that was no joke.

        "What! No, I'm no thief! I didn't do this-!" Zhong Luli protested, even as Su Mingzhu stepped forward to drag ${pc_him} to the courtyard. You feel a hand on your own shoulder and stumble towards it yourself.
        *goto FailedFramingTheft
      *if (reasoning > bad)
        turning to Zhong Luli with contempt written on ${pc_his} face. In ${pc_his} right hand, ${pc_he} @{pc_singular holds|hold}
        *if ((tookccmoney = true) or (tookssqmoney = true))
          jingling taels, wrapped in cloth, @{(tookZTsewkit <=3) and,|}
        *if  (tookZTsewkit <= 3)
          the cloud-embroidered sewing kit,
        that had been hidden beneath Zhong Luli's bed.

        "It would seem we have discovered our thief. Zhong Luli, report to the courtyard. You are sentenced to flogging, seventy five hits delivered by Eunuch Zhao." Eunuch Zhao was a man twice as broad as you were, and with arms as large around as your head. Seventy five hits… that was no joke, and if done improperly could perhaps cripple Zhong Luli for life.

        "What! No, I'm no thief! I didn't do this-!" Zhong Luli protested, even as Su Mingzhu stepped forward to drag ${pc_him} to the courtyard. You watch as ${pc_he} @{pc_singular is|are} dragged out into the courtyard. Soon, the night rings with the sounds of ${pc_his} screams of pain. 
        *fake_choice
          #[i]Music to my ears.[/i]
            *set bloodthirst %+low
            *goto MeetQinBolin
          #[i]Guilt rises in my throat, and sleep doesn't come easy.[/i]
            *set scheming %-low
            *goto MeetQinBolin
          #[i]I sleep easy, knowing justice has been done.[/i]
            *set bloodthirst %-low
            *goto MeetQinBolin
          #[i]One enemy down.[/i]
            *set scheming %+low
            *goto MeetQinBolin
  *goto MeetQinBolin            
*else
  *comment this is if you DID NOT steal Zll's makeup AT ALL. 
  Zhong Luli's eyes track around the room, trying to find the culprit as if they were painted in red paint."Fess up! Who dares to be a thief in the Imperial Palace!"

  "What is all this noise?!" The Dormitory Supervisor came in, ${pc_his} face stern and drawn. The severe cut of ${pc_his} black uniform accenting the severity of the situation. "What is this about a thief?"

  "Supervisor Ban, some
  *if ((tookccmoney = true) or (tookssqmoney = true)) and ((tookZTsewkit <= 3) or (tookzllmakeup =  true))
    money and items are
    *goto elseif7
  *elseif  (tookccmoney = true) or (tookssqmoney = true)
    money is
    *goto elseif7
  *elseif (tookZTsewkit <=3) or (tookzllmakeup =  true)
    items are
    *goto elseif7
  *else
    things are
    *goto elseif7
*label elseif7
missing from our cubbies." Cui Chen commented, sleepy voice alert for the first time since you'd met ${pc_him}. "We beg you to investigate." 

Supervisor Ban's sharp fox-like eyes crept around the room, taking in each of your faces. @{(reasoning <= bad) You feel a creeping worry crawl up your spine, and wonder if maybe, just maybe you should have been a bit more cautious.| You feel secure knowing you'd been cautious enough to hide any evidence.} Her gaze rests upon Zhou Tian, who was practically turning red with rage. "What is missing?"

*if (tookccmoney = true) and (tookssqmoney = true)
  "Cui Chen and I are missing some taels from our savings, Supervisor Ban. Six taels from mine, and five from Cui Chen's, for a total of eleven taels." Shao Shaoqing managed to say, voice sticky with tears. Cui Chen rested a hand on ${pc_his} shoulder, eyes on the floor.

  *goto elseif8
*elseif (tookccmoney = true)
  "Cui Chen is missing some of ${pc_his} savings. Five Taels, to be specific." Shao Shaoqing stated, words thick with unvoiced anger. Cui Chen rested a hand on ${pc_his} shoulder, eyes on the floor.

  *goto elseif8
*elseif (tookssqmoney = true)
  "Cui Chen and I are missing some taels from our savings, Supervisor Ban. Six taels from mine, and five from Cui Chen's, for a total of eleven taels." Shao Shaoqing managed to say, voice sticky with tears. Cui Chen rested a hand on ${pc_his} shoulder, eyes on the floor.

  *goto elseif8
*else

  *goto elseif8
*label elseif8
@{(tookZTsewkit <= 3) "My sewing kit." Zhou Tian glares, "It was in a small, cloudprint bag. My [i]sister[/i] made that for me." The glare travels, catching each person in the room with ire.|}

Zhong Luli stamped ${pc_his} feet, crossing ${pc_his} arms. "Something has to be done! Thieves cannot be abided!"

The others mumble agreement with Zhong Luli's declaration, leaving you to sort through your own feelings on the matter.
*fake_choice
  #[i]I cannot hide my hatred for this bully.[/i]
    *set bloodthirst %+low
    A wretched creature like Zhong Luli deserved to have everything ripped from them, and this was just the first step. If it were up to you, you'd rip their whole lives away from them, leave them hanging from a length of white silk. No one crosses you and gets away with it.
  #[i]I worry for a moment that my plan might not be foolproof.[/i]
    *set bravery %-low
    It wasn't impossible for Zhong Luli to try and turn your accusation back on you. @{(tookZTsewkit <= 3) You think of the hidden sewing kit, knowing it wouldn't take much to find. |}What were you going to do? Your mind raced to plan out your arguments should someone try to accuse you. 
  #[i]The tense situation sent a thrill up your spine.[/i]
    *set chaste %-low
    A new experience, being on this edge. In your father's home, you were the one framed for things, beaten for things. Here you are, about to get revenge on the cruel dog who tried to bite you, and it feels [i]fantastic.[/i] The power of being on top for once sends a heady wave through you. 
Supervisor Ban sighs, and rubs at ${pc_his} forehead, before opening ${pc_his} eyes and casting another look around the room. "Zhong Luli is correct. Thieves cannot be allowed to remain within the Imperial Palace walls. Confess now, and I will consider mercy in your sentencing."

@{(Bravery >= bad) Your teeth itch as you hide your smirk of triumph behind your teeth. Your plan hinges on someone else accusing Zhong Luli, so you remain quiet, awaiting the snap of your trap.| Your teeth itch violently as your breath kicks up. What if no one accuses Zhong Luli? What if you get accused? Had anyone noticed you were missing earlier?} It takes less than a few moments before someone spoke. 

"Was it you, Zhong Luli?" Su Mingzhu demanded, earning ${pc_him} the gaze of everyone in the room. The accused immediately puffed up, eyes wide enough to see the whites all around Zhong Luli's dark irises. Exhaustion had made everyone snippy, however, and so Su Mingzhu glowered right back, "You've picked on nearly everyone in this room. There's no reason not to think it's you."

*page_break
"How dare you accuse me of this?!" Zhong Luli demands, stamping ${pc_his} foot childishly. You can't help the huff of amusement from escaping your nose, only to startle when your bully's finger snaps up and points at your face. "$!{surname} $!{given_name} is the thief, I'm sure of it!"

"Hah?!" You exclaim, an unspoken demand for this accusation to be explained. "Zhong Luli has lost ${pc_his} mind!"

"You've had it out for me! $!{surname} $!{given_name} has some sort of grudge against this servant, and ${pc_he} hate this servant!" Zhong Luli sneers, crossing ${pc_his} arms over ${pc_his} chest, as those present turn to see your response. "Supervisor Ban, search $!{surname} $!{given_name}'s things! I'm sure you'll find the stolen goods!"

"I am no theif!" You lie, the outrage on your face mistaken for hurt honor, rather than for the fear it actually is. "If I have a grudge against you, Zhong Luli, it has been [i]earned[/i] with behavior like this!"

"Enough!" Supervisor Ban snapped, silencing the outbreak of whispering that had started at your declaration. "$!{pc_Hon_Higher}, bring out your belongings and money. Do not hide any, or this supervisor will assume you are in fact the thief."

"This is unjust! Supervisor Ban, this servant begs you, search everyone's things, at least! This bias is too much!" You demand, putting aggreived tears in the corner of your eyes.

"Fine!" Supervisor Ban declares, waving ${pc_his} hand to scatter you all into pulling your things from the cubbies, dropping them into piles around the room, and glowering. Supervisor Ban searches through your collective belongings, taking yours first, and finds your 'savings'. 
*if (wealth >= 1) and (wealth <=10)
  "${Wealth} taels," Supervisor Ban comments, raising an eyebrow. You swallow, and consider your next words carefully.

  "Supervisor Ban, the missing taels total
  *if (tookccmoney = true) and (tookssqmoney = true)
    eleven. 
    *goto elseif9
  *elseif (tookccmoney = true)
    five. 
    *goto elseif9
  *elseif (tookssqmoney = true)
    six. 
    *goto elseif9
*label elseif9
I have been saving my wages since I arrived, and before even-" You speak over Shao Shaoqing's exclamation that so had ${pc_he} and Cui Chen, ", and so it only makes sense that I would have ${wealth} taels to my name! This is not admition of guilt, and my savings was in the open! Supervisor Ban,this lowly one begs you search for secret hidey-holes as any sneak-thief will surely not hide their stolen gains in the open like this!"

*if reasoning <= bad
  You carefully don't freeze as the words leave your lips, remembering then that you had failed to remove your own stolen gains from beneath the kang-style bed you all share. In your mind's eye, you can see the lotus-stamped tin sitting in that small hole you'd created. Panic raged through you like a wildfire.

*if reasoning > bad
  You rest assured that your own stash of stolen goods resides in the red cistern in the courtyard. The sharp teeth of your trap will soon snap shut and you cannot help how your eyes dart to Zhong Luli, hoping to see some panic on ${pc_his} face.
*page_break
"Fine." Supervisor Ban snaps, and you assume ${pc_he} @{pc_singular is|are} unhappy to have to perform extra work. "Su Mingzhu, pull up the rice-matting of the bed. Zhou Tian, help ${pc_him}."

After some shuffling, Supervisor Ban sneers, turning to Zhong Luli with contempt written on ${pc_his} face. In ${pc_his} right hand, ${pc_he} @{pc_singular holds|hold}
*if ((tookccmoney = true) or (tookssqmoney = true))
  jingling taels, wrapped in cloth, @{(tookZTsewkit <=3) and,|}
*if  (tookZTsewkit <= 3)
  the cloud-embroidered sewing kit,
that had been hidden beneath Zhong Luli's bed.

"It would seem we have discovered our thief. Zhong Luli, report to the courtyard. You are sentenced to flogging, seventy five hits delivered by Eunuch Zhao." Eunuch Zhao was a man twice as broad as you were, and with arms as large around as your head. Seventy five hits… that was no joke, and if done improperly could perhaps cripple Zhong Luli for life.

"What! No, I'm no thief! I didn't do this-!" Zhong Luli protested, even as Su Mingzhu stepped forward to drag ${pc_him} to the courtyard. You watch as ${pc_he} @{pc_singular is|are} dragged out into the courtyard. Soon, the night rings with the sounds of ${pc_his} screams of pain. 
*fake_choice
  #[i]Music to my ears.[/i]
    *set bloodthirst %+low
    *goto MeetQinBolin
  #[i]Guilt rises in my throat, and sleep doesn't come easy.[/i]
    *set scheming %-low
    *goto MeetQinBolin
  #[i]I sleep easy, knowing justice has been done.[/i]
    *set bloodthirst %-low
    *goto MeetQinBolin
  #[i]One enemy down.[/i]
    *set scheming %+low
    *goto MeetQinBolin
*else ((((((THIS IS WHERE THE ERROR SHOWS UP)))))
    *comment This is if you're *NOT* wearing the makeup, but you HAVE stolen it.
    *todo Figure out why the hell the else is falling out. Something is wrong with it, not sure what. 
    Zhong Luli's eyes track around the room, trying to find the culprit as if they were painted in red paint."Fess up! Who dares to be a thief in the Imperial Palace!"

    "What is all this noise?!" The Dormitory Supervisor came in, ${pc_his} face stern and drawn. The severe cut of ${pc_his} black uniform accenting the severity of the situation. "What is this about a thief?"

    "Supervisor Ban, some
    *if ((tookccmoney = true) or (tookssqmoney = true)) and ((tookZTsewkit <= 3) or (tookzllmakeup =  true))
      money and items are
      *goto elseif4

Your *else statement lacks a *goto or *finish command and the code goes directly into another *if command.

I believe this is why you are getting this error. Others, who are better at scripting than I can confirm or shoot down my theory here.

The problem comes with

*if (wealth >= 1) and (wealth <=10)

If wealth is anything other than that, the code has nowhere to go before the *else shows up. Insert a *goto at the same indent level as that if statement (just before the *else that’s crashing) so the code knows where to go if wealth is less than one or over ten, and you should be fine.

2 Likes

THIS WOULD ALSO EXPLAIN WHY ITS NOT TRIGGERING THE WEALTH STUFF! ah, thank you so much! I appreciate it so much! I’m gonna check it right now and see if that fixes it!

1 Like

No worries. I’ve had to figure out similar issues so many times with my own game…it’s given me lots of practice spotting the missing goto. :slight_smile:

It’s good that you got the error because you spotted something that should have triggered, but if you want to able to fall out of *if statements without cluttering things up with *else and *label everywhere, I can recommend using Implicit Control Flow.

1 Like

Does this work? Shouldn’t low be a number? I.e

*set bloodthirst %+10

Or something like that?

I think this is actually a good example of why Dan has always been wary of Implicit Control Flow. The error message here wasn’t just an annoyance requiring extra lines of cluttery code to meet the requirements of *else – it was a red indicator light for the fact that the game as currently coded has nothing for players with “wealth” outside a certain narrow range. For an amateur coder like me, that’s a useful function, which is why I’ve never gone ICF myself.

2 Likes

@Nocturnal_Stillness If low is a number then this would work. I assume the startup file has:

*create low 5

Perhaps Niki wanted a way of altering the stat balance on a game-wide scale, or wanted to be able to dynamically change difficulties. You can do whatever maths you want with the %+, like this example from my WIP:

*set volatility %+ (10 * scandal)

@Havenstone It’s definitely a “user beware” kind of feature, I agree. I recently got an infinite loop bug by doing something similar to what you describe. My main reason for using it is that it opens up a lot more inline variation and alteration without cluttered code. Compare:

John was 
*if size = 4
	*set johnimpression %+ 5
	@{superlative stupendously|very} tall
	*if supersmell
		and odorous
		*goto odorous
	*label odorous
	*goto size
*elseif size = 1
	*set johnimpression %- 5
	@{superlative incredibly|very} small
	*goto size
*else
	about as tall as you
	*if (cindypresent)
		or Cindy
		*goto expected
	*label expected
	expected
	*goto size
*label size
for his age.

With this:

John was 
*if size = 4
	*set johnimpression %+ 5
	@{superlative stupendously|very} tall
	*if supersmell
		and odorous
*elseif size = 1
	*set johnimpression %- 5
	@{superlative incredibly|very} small
*else
	about as tall as you
	*if (cindypresent)
		or Cindy
	expected
for his age.

The same code is eight lines shorter, much more readable and quick to write, and there’s less chance of introducing errors with misspelt labels or misdirected gotos.

5 Likes

Absolutely. Though it’s worth noting that QT will only punish you for leaving out a *goto size label in that example…it doesn’t force you to use a goto/label after an *if unless there’s an elseif/else involved. So even without switching on ICF, you could get by just fine with:

John was 
*if size = 4
	*set johnimpression %+ 5
	@{superlative stupendously|very} tall
	*if supersmell
		and odorous
	*goto size
*elseif size = 1
	*set johnimpression %- 5
	@{superlative incredibly|very} small
	*goto size
*else
	about as tall as you
	*if (cindypresent)
		or Cindy
	expected
	*goto size
*label size
for his age.

which is a mere four lines longer than the ICF-on version, and considerably more readable than the eight-line monstrosity of your first example. :slight_smile:

Of course you could condense it even more by using a “multi”-replace for the internal ifs:

John was 
*if size = 4
	*set johnimpression %+ 5
	@{superlative stupendously|very} tall @{supersmall and odorous|} 

which uses even fewer lines, and is very quick to write if you’ve got a macro that serves you multireplace. Not sure I’d call it more readable, though–that would definitely vary with the beholder. In general “readability” doesn’t seem to me an obvious or universal advantage of multireplace, even with its standard use case where you’re not leaving one or more empty sets…it can be quite readable once you’ve practiced enough that your brain picks up quickly on the pipe, but it won’t be for everyone.

Personally, I’d be inclined to go with the ICF-off version as shown above, for the same reason I still use *fake_choice solely for its original function of flavor-text choices: on my scans of my own code, it helps me quickly skim through the flavor text (which will not have a goto/label, whether it comes in a fake_choice or following a lone if) to focus on choices or if/elses that actually branch the story or affect stats, which will have more commands around them, generally including a goto/label.

1 Like

I use them a bit but I’m not a big fan of having half-empty multireplaces, though I guess I don’t have a very good reason why. Just feels like a cludge. I agree, none of these inline variations make for readable prose per se, but once you get into the flow of it you can write them quite easily even if it takes a moment to figure out what’s happening when you read back.

1 Like

I’m curious what you mean about this.

You can find out more about how I set this up here:

To be frank, I’m wary of Implicit Control Flow too. I’m really not a good enough coder to be able to find these errors on my own, and to not have that warning there, it’s worrisome. And while ICF is helpful, I feel like the worry is that it could cause game-breaking bugs without my knowing about it.

I just found out that these exist and are useful, so I’m not super afraid to use them.

1 Like

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