//Yap always changes so it moves from one message to the next.
//MsgBox.FontSize changes font size. 1 is normal size. .5 is half. 2 is twice the size.
//MsgBox.Voice (not implemented yet, but won't ruin anything) chooses the voice you want to come from the text box.
//MsgBox.Msg is the message in the text box.
//To END a conversation, use "!" as the message
//Since global.Name is your character's name, it'll be replaced with eight Ws for text-spacing purposes. ...and yes,
//It NEEDS to be "+ global.Name +"

if global.SQItemB = 15 {
if Yap = 0 {Talk = 1
MsgBox.Msg ="...a love letter?          #Gee, "+global.Name+", I didn't know you cared!        #...nah, just teasing. Of course you care.         #You're always my friend."
}
if Yap = 1 MsgBox.Msg ="...but it's not my letter. It's supposed to go to someone #else in town. ...Charlotte, specifically, if that helps.         #She probably has red hair."

if Yap = 2 MsgBox.Msg ="#Still, thanks for trying anyway, "+global.Name+".        #It's cute."

if Yap = 3 {Talk = 0
MsgBox.Msg = "!"
global.TielLove+= 2
}
} else {

if Yap = 0 {
Talk = 1
if global.TielLove/2 = round(global.TielLove/2) {
MsgBox.Msg = "#"+global.Name+"! How've you been? #What's it like out there in Sierr?"
} else MsgBox.Msg = "#"+global.Name+"! You're back...      #You're not hurt, are you?"
}

if Yap = 1 {
if global.TielLove/2 = round(global.TielLove/2) { MsgBox.Msg = "I know Sierr's big, but don't be scared.        #I've lived in a bigger kingdom for a long time.         #Lots of hills, some monsters, even a castle...         #It was an interesting place."
} else MsgBox.Msg = "Well, things in town are about as quiet as usual.      #Tabitha's okay, but she keeps telling me that I'm #going to help you on your journey.      #I don't know how, but I'll gladly help."
}

if Yap = 2 {
MsgBox.FontSize = 1
MsgBox.Msg = "#So... is there anything you wanted to tell me #before you go, "+global.Name+"?"
MsgBox.Question = 2
if global.SQItemA > 1 MsgBox.QTxt= "I got you a special flower#...nothing" else MsgBox.QTxt= QTxt
MsgBox.QChoose=0
}

if Yap = 3 {
MsgBox.Question = 0
if MsgBox.QChoose=0{
if global.SQItemA < 2 {
if global.Flowas = 0 {MsgBox.Msg= "#...but you don't have any flowers.     #Thanks for offering, anyway..."}
else {MsgBox.Msg = "Oh, "+global.Name+"! That's sweet of you!       #I hope you can collect more when you're #traveling around..."
if global.Flowas > 100 MsgBox.Msg = "Oh, "+global.Name+"...      #You sure get a lot of flowers, don't you?      #You must be really bored... or something.          #Hmhmhmhm!"
if global.Flowas > 500 MsgBox.Msg = global.Name+"!!          #I don't know where I'd keep all of these flowers!       #You're full of surprises, aren't you?"
if global.Flowas > 999 MsgBox.Msg = global.Name+"... I... I...         #I don't know what to say... Are you really #giving me ALL these?        #...I'm... I'm overwhelmed!"
}
global.TielLove += global.Flowas
global.Flowas = 0
}else{
MsgBox.Msg = "Well, "+global.Name+", that's pretty #unusual...          #Thank you, "+global.Name+".          #I wonder where you got it..."
global.TielLove += 10
if global.SQItemA = 5 Yap = 6
global.SQItemA = 0
}

}
else {MsgBox.Msg= "#Ha ha... well, I guess you just wanted to see me.      #I understand."}
}


if Yap = 4 {
global.TielLove += 1
if MsgBox.QChoose = 1 {MsgBox.Msg = "#Well, it's nice to see you again, anyway...      #See you later, "+global.Name+"!"
}else {MsgBox.Msg = "I have to admit, "+global.Name+", you are #sweet sometimes.           #Hmhmhmhm!     #See you around!"}
}

if Yap = 5 {
Talk = 0
MsgBox.Msg = "!"
}

if Yap = 6 {
MsgBox.Msg = "#*gasp* That's... that's a Golden Daffodil!         #I haven't seen one since I was back in my hometown..."
}

if Yap = 7 {
MsgBox.Msg = "When I was younger, my father planted these all over #my home...              #He died trying to save me."
}

if Yap = 8 {
MsgBox.Msg= "#This lovely fragrance just brings back such wonderful #memories, before the wars came to my homeland."
}

if Yap = 9 {
MsgBox.Msg= "Oh, "+global.Name+"...         #Thank you so much.         #I really appreciate it."
global.TielLove += 50
}

if Yap = 10 {
if ds_list_find_index(global.KHDB,"TFLOWR") = -1 MsgBox.Msg = "#A piece of my heart is now yours.        #Please, take it." else {
MsgBox.Msg = "!"
global.SQItemA=0}
}

if Yap = 11 {
with MsgBox {instance_destroy()}
sound_play(ItemGet)
instance_create(Rick.x,Rick.y,ItemBought)
ItemBought.Sig = 9
Yap = 0
Targeted = 0
Rick.visible = 1
Active = 2
alarm[2] = 2
global.TielHeart+=1
global.SQItemA = 0
ds_list_add(global.KHDB,"TFLOWR")
Talk=0
}

}