if ds_list_find_index(global.KHDB,global.CurrentRoom+string(8)) = -1{
if Yap=0 MsgBox.Msg="Hello, there!           #Just like my brothers, I've got a quiz for you!            #I call it the Incendia Quiz!"

if Yap=1{
if global.Story>3{
MsgBox.Msg="...since you already know Verne's deepest, darkest #secret, I'll let you do it... for 20 Ryubies.          #Wanna take my quiz?"
MsgBox.Question=2
MsgBox.QChoose=0
MsgBox.QTxt="Sure#No"
}else MsgBox.Msg="...but you're not ready.         #If your journey reaches a turning point, then you #can come back for my quiz."
}

if Yap=2{
if global.Story>3{
if MsgBox.QChoose=0 {
if global.Cash>= 20 {MsgBox.Msg="#Good! Let's ask some questions!"
global.Cash-=20
MsgBox.QChoose=3
}else MsgBox.Msg="That's nowhere near enough money to play...          #Come back when you can afford it!      #Got it, kid?"
} else Yap=18
MsgBox.Question=0
}else MsgBox.Msg="!"
}

if Yap=3{
if MsgBox.QChoose=3{MsgBox.Msg="#Now, here's your first question...            #How much do Twelkin Buns cost per box?"
MsgBox.QTxt = "A. 20 Ryubies#B. 40 Ryubies#C. 60 Ryubies#D. 80 Ryubies"
MsgBox.Question=4
MsgBox.QChoose =0
}else MsgBox.Msg="!"
}

if Yap=4{if MsgBox.QChoose=0 MsgBox.Msg="#That's right! ...but you can sell them for higher.            #That's the beauty of them!" else Yap=17
MsgBox.Question=0
}

if Yap=5{
MsgBox.Msg="Next question...             #What's the play that they've been rehearsing up in #Central Town?"
MsgBox.QTxt = "A. Thumbelina#B. The Little Mermaid#C. The Tinder Box#D. The Snow Queen"
MsgBox.Question=4
MsgBox.QChoose =0
}

if Yap=6{if MsgBox.QChoose=2 MsgBox.Msg="That's right! ...though they really had to change quite #a few scenes.         #You've seen it, right?" else Yap=17
MsgBox.Question=0}

if Yap=7{
MsgBox.Msg="#No, that's not the next question... THIS is!           #What color is Ghidra, the King of the Dragons?"
MsgBox.QTxt = "A. Red#B. Black#C. Green#D. Brown"
MsgBox.Question=4
MsgBox.QChoose =0
}

if Yap=8{if MsgBox.QChoose=1 MsgBox.Msg="#Yeah, I know, black's not a color according to several #artists, but you're right!" else Yap=17
MsgBox.Question=0}

if Yap=9{
MsgBox.Msg="Next question...          #There was a Fairian that came before the lovely #Princess Sabrina.            #Who was the previous Fairian?"
MsgBox.QTxt = "A. Queen Luminesca#B. Yura#C. Elsaba#D. Cherlindrea"
MsgBox.Question=4
MsgBox.QChoose =0
}

if Yap=10{if MsgBox.QChoose=3 MsgBox.Msg="#Yeah... she's human now, but she was the Fairian #before the princess..." else Yap=17
MsgBox.Question=0}

if Yap=11{
MsgBox.Msg="Second-to-last question!         #...you know that painting of you and your father #back in Gaius?          #...who painted that?"
MsgBox.QTxt = "A. Charlotte#B. Tiel#C. Tabitha#D. That old lady by the bar"
MsgBox.Question=4
MsgBox.QChoose =0
}

if Yap=12{if MsgBox.QChoose=1 MsgBox.Msg="Yeah, she's a talented painter.          #I hear that she likes making paintings in pairs...        #You know, brother-and-sister paintings.          #...and you just happen to get the other ones." else Yap=17
MsgBox.Question=0}

if Yap=13{
MsgBox.Msg="Okay, last question...         #What is the name of Princess Sabrina's alleged #mother? Not her real mother, her alleged one..."
MsgBox.QTxt = "A. Yura#B. Luminesca#C. Gwendolyn#D. Lynsdaughter"
MsgBox.Question=4
MsgBox.QChoose =0
}

if Yap=14{if MsgBox.QChoose=2 MsgBox.Msg="#...I bet you didn't know that, did you? You just had #to guess it yourself." else Yap=17
MsgBox.Question=0}

if Yap=15{
MsgBox.Msg="#For your reward, you can now carry more bombs!         #Go out there, and blow some more stuff up!"
}

if Yap=16 {MsgBox.Msg="!"
BomBag.BombsMax+=30
BomBag.Bombs+=30
ds_list_add(global.KHDB,global.CurrentRoom+string(8))
sound_play(ItemGet)
}
if Yap=17 MsgBox.Msg="Eeeeeeeehhhhh!!          #Wrong answer!           #Thanks for the cash, though..."
if Yap=18 MsgBox.Msg="If you want to try your luck, come back #anytime.         #Okay?"
if Yap=19 MsgBox.Msg="!"
}else{
if Yap=0 MsgBox.Msg="Congratulations on clearing my quiz!        #Hopefully you've done the rest of the quizzes...       #Right?"
if Yap=1 MsgBox.Msg="!"
}