#NAME Ancient Sphinx

#DISABLEEXIT

#LEAVEONEEXIT

#NOWANDER

#ENEMYIGNORE

#DIALOGUE
{
  #TEXT PUNY MORTAL! You dare disturb my rest?
  
  #OPTION Sorry bro.
  {
    #TEXT But I am a most generous god. If you solve my three riddles, not only will I let you live but I will give you my most precious treasure. However, if you fail just one, you die!

    #OPTION Wow what a deal.
    {
      #TEXT Are you ready?

      #OPTION Aight.
      {
        #TEXT You're driving a bus. At the 1st stop, 3 people get on. 2nd stop, 2 people leave, 3 people get on. 3rd stop, 2 people leave, 1 person gets on. 4th stop, 4 people leave, 2 people get on. Last stop, 2 people leave. How many people are left on the bus?

        #OPTION None
        {
          #TEXT ARE YOU EVEN TRYING? You're wrong, buster!
          
          #OPTION Oh no
          {
            #SPAWNENEMY -64 128 Salamander
            #SPAWNENEMY   0 128 Lamia
            #SPAWNENEMY  64 128 Harpy
            #SPAWNENEMY -64  64 Salamander
            #SPAWNENEMY   0  64 Lamia
            #SPAWNENEMY  64  64 Harpy
            #SPAWNENEMY -64   0 Salamander
            #SPAWNENEMY   0   0 Lamia
            #SPAWNENEMY  64   0 Harpy
            #END
          }
        }
        #OPTION 1
        {
          #TEXT WRONG WRONG WRONG! You are WRONG! You lose!
          
          #OPTION Oh no
          {
            #SPAWNENEMY -64 128 Salamander
            #SPAWNENEMY   0 128 Lamia
            #SPAWNENEMY  64 128 Harpy
            #SPAWNENEMY -64  64 Salamander
            #SPAWNENEMY   0  64 Lamia
            #SPAWNENEMY  64  64 Harpy
            #SPAWNENEMY -64   0 Salamander
            #SPAWNENEMY   0   0 Lamia
            #SPAWNENEMY  64   0 Harpy
            #END
          }
        }
        #OPTION 2
        {
          #TEXT Incorrectomundo!
          
          #OPTION Oh no
          {
            #SPAWNENEMY -64 128 Salamander
            #SPAWNENEMY   0 128 Lamia
            #SPAWNENEMY  64 128 Harpy
            #SPAWNENEMY -64  64 Salamander
            #SPAWNENEMY   0  64 Lamia
            #SPAWNENEMY  64  64 Harpy
            #SPAWNENEMY -64   0 Salamander
            #SPAWNENEMY   0   0 Lamia
            #SPAWNENEMY  64   0 Harpy
            #END
          }
        }
        #OPTION -1
        {
          #TEXT Wrong! How could there even be negative people on a bus... wait. Oh I told that one wrong. Ok, uh, I guess I'll give it to you then. Next riddle.
          
          #OPTION Ok
          {
            #TEXT You are poisoned. Lined up in order are red, green, and blue bottles. One has the antidote, the others have even more poison. The red bottle is not next to the antidote and the blue bottle is definitely poison. Which one do you drink?

            #OPTION Red Bottle
            {
              #TEXT Congratulations. But now it is time for the most sinister of all riddles: the knights and knaves problem! Tremble, mortal!

              #OPTION Ok
              {
                #TEXT Susan says "Bartholomew is a liar". Bartholomew says "Susan and I are telling the truth". Who is lying?

                #OPTION Susan
                {
                  #TEXT You're wrong, I win, you DIE!
          
                  #OPTION Oh no
                  {
            #SPAWNENEMY -64 128 Salamander
            #SPAWNENEMY   0 128 Lamia
            #SPAWNENEMY  64 128 Harpy
            #SPAWNENEMY -64  64 Salamander
            #SPAWNENEMY   0  64 Lamia
            #SPAWNENEMY  64  64 Harpy
            #SPAWNENEMY -64   0 Salamander
            #SPAWNENEMY   0   0 Lamia
            #SPAWNENEMY  64   0 Harpy
                    #END
                  }
                }
                #OPTION Bartholomew
                {
                  #TEXT Wro- Wait you got them all right. Uh. Ok.

                  #OPTION Where's my treasure?
                  {
                    #TEXT I gotta confess, I don't really have a treasure.

                    #OPTION What a surprise.
                    {
                      #TEXT Here, I have some materials. You're a wizard, right? I'm sure you can use them.

                      #OPTION Yeah that sounds good.
                      {
                        #TEXT Very well. Now leave me PUNY MORTAL! I grow tired of riddles and games.

                        #GIVEMATERIAL 1 * A
                        #GIVEMATERIAL 1 * A
                        #GIVEMATERIAL 1 * B
                        #GIVEMATERIAL 1 * B
                        #GIVEMATERIAL 1 * C
                        #GIVEMATERIAL 1 * C
                        #GIVEMATERIAL 1 * D
                        #GIVEMATERIAL 1 * D
                        #GIVEMATERIAL 1 * F
                        #GIVEMATERIAL 1 * F
						
						#SETFLAG MERRY_LEARNED_RIDDLES 1

                        #END
                      }
                    
                    }
                  }
                }
                #OPTION Both
                {
                  #TEXT You lose, have fun DYING!
          
                  #OPTION Oh no
                  {
            #SPAWNENEMY -64 128 Salamander
            #SPAWNENEMY   0 128 Lamia
            #SPAWNENEMY  64 128 Harpy
            #SPAWNENEMY -64  64 Salamander
            #SPAWNENEMY   0  64 Lamia
            #SPAWNENEMY  64  64 Harpy
            #SPAWNENEMY -64   0 Salamander
            #SPAWNENEMY   0   0 Lamia
            #SPAWNENEMY  64   0 Harpy
                    #END
                  }
                }
                #OPTION The one with the marketing degree
                {
                  #TEXT That's not even a real answer! Get lost. GET DEAD!
          
                  #OPTION Oh no
                  {
            #SPAWNENEMY -64 128 Salamander
            #SPAWNENEMY   0 128 Lamia
            #SPAWNENEMY  64 128 Harpy
            #SPAWNENEMY -64  64 Salamander
            #SPAWNENEMY   0  64 Lamia
            #SPAWNENEMY  64  64 Harpy
            #SPAWNENEMY -64   0 Salamander
            #SPAWNENEMY   0   0 Lamia
            #SPAWNENEMY  64   0 Harpy
                    #END
                  }
                }
              }
            }
            #OPTION Green Bottle
            {
              #TEXT You're wrong, I win, you DIE!
          
              #OPTION Oh no
              {
            #SPAWNENEMY -64 128 Salamander
            #SPAWNENEMY   0 128 Lamia
            #SPAWNENEMY  64 128 Harpy
            #SPAWNENEMY -64  64 Salamander
            #SPAWNENEMY   0  64 Lamia
            #SPAWNENEMY  64  64 Harpy
            #SPAWNENEMY -64   0 Salamander
            #SPAWNENEMY   0   0 Lamia
            #SPAWNENEMY  64   0 Harpy
                #END
              }
            }
            #OPTION Blue Bottle
            {
              #TEXT I said that one was definitely poison! What is wrong with you?
          
              #OPTION Oh no
              {
            #SPAWNENEMY -64 128 Salamander
            #SPAWNENEMY   0 128 Lamia
            #SPAWNENEMY  64 128 Harpy
            #SPAWNENEMY -64  64 Salamander
            #SPAWNENEMY   0  64 Lamia
            #SPAWNENEMY  64  64 Harpy
            #SPAWNENEMY -64   0 Salamander
            #SPAWNENEMY   0   0 Lamia
            #SPAWNENEMY  64   0 Harpy
                #END
              }
            }
            #OPTION All of them
            {
              #TEXT What are you, stupid? That's three poisons and one antidote! You're still 
              #NEWLINE double poisoned. WRONG!!!
          
              #OPTION Oh no
              {
            #SPAWNENEMY -64 128 Salamander
            #SPAWNENEMY   0 128 Lamia
            #SPAWNENEMY  64 128 Harpy
            #SPAWNENEMY -64  64 Salamander
            #SPAWNENEMY   0  64 Lamia
            #SPAWNENEMY  64  64 Harpy
            #SPAWNENEMY -64   0 Salamander
            #SPAWNENEMY   0   0 Lamia
            #SPAWNENEMY  64   0 Harpy
                #END
              }
            }
          }
        }
      }
    }
  }
}