if Yap = 0 {
Focus = 1
alarm[4] =90
MsgBox.Msg ="?."
MsgBox.Act =1
MsgBox.Dist =0
direction = 285
GameCam.direction = 90
speed = 8
GameCam.x = 512
GameCam.y = 640
GameCam.z = 240
Yap =1
Rick.Auto = 1
Rick.ShieldUp = 2
MsgBox.Letter = 1
global.SaveRoom = global.CurrentRoom
}

if Yap = 2 {
alarm[4] =90
direction = 225
speed = 4
ZSpeed = -1
MsgBox.Letter = 1
Rick.ShieldUp = 2
Yap = 3
}

if Yap = 4 {
alarm[4] =90
direction = point_direction(x,y,Rick.x,Rick.y)
speed = (point_distance(x,y,Rick.x,Rick.y)-40)/90
ZSpeed = ((Rick.z-z)+32)/90
Yap =5
MsgBox.Letter = 1
}

if Yap = 6 {
speed = 0
ZSpeed = 0
Yap = 7
alarm[4] =15
MsgBox.Letter = 1
Rick.ShieldUp = 2
}

if Yap = 8 {
MsgBox.Act =0
Focus = 0
MsgBox.Msg="Wow... Mama was right.   #This IS the place. It's so beautiful.   #...and you must be the boy I'm looking for...         #right?"}

if Yap = 9 {
GameCam.x = Rick.x+128
GameCam.y = Rick.y-132
GameCam.direction = point_direction(GameCam.x,GameCam.y,Rick.x,Rick.y)
Rick.Talk = 1
MsgBox.Msg="#Huh?      #What are you?"
}

if Yap = 10 {
Rick.Talk = 0
GameCam.x = x+64
GameCam.y = y+144
GameCam.direction= point_direction(GameCam.x,GameCam.y,x,y)
GameCam.z = 64
MsgBox.Msg="Oh, sorry.     #I'm Pipi, a humble little fairy.    #What's your name?"
}

if Yap = 11 MsgBox.Msg="#..."+global.Name+"?       #That's unusual."

if Yap = 12 {
GameCam.z = 32
GameCam.x = Rick.x+192
GameCam.y = Rick.y+64
GameCam.direction= point_direction(GameCam.x,GameCam.y,(x+Rick.x)/2,(y+Rick.y)/2)
MsgBox.Msg= "Anyway, mama said that your father was once a #Dragon-slayer.        #...and she thinks that means you know how to face #monsters... or something."
}

if Yap = 13 MsgBox.Msg= "All I know is that she wants you to know that someone #named Tabitha has been captured, and you must save #her."

if Yap = 14 {
GameCam.x = Rick.x+128
GameCam.y = Rick.y-132
GameCam.direction = point_direction(GameCam.x,GameCam.y,Rick.x,Rick.y)
GameCam.z =38
Rick.Talk = 1
MsgBox.Msg="#Tabitha?#...that weird old lady that Tiel's been living with?"
}

if Yap = 15 {
Rick.Talk = 0
GameCam.z =62
GameCam.x = x+32
GameCam.y = y+120
GameCam.direction= point_direction(GameCam.x,GameCam.y,x,y)
MsgBox.Msg="I don't know. Mama just said that you should save #Tabitha, and she's stuck somewhere in Gaius Shrine.     #That's not far from here, is it?"
}

if Yap = 16 MsgBox.Msg="Oh, and Mama told me to give you something...   #If you're going traveling, I think you'll need something #to defend yourself with...     #...now, let's see..."

if Yap = 17 {
GameCam.x = Rick.x+32
GameCam.y = Rick.y-128
GameCam.z = 32
GameCam.direction = point_direction(GameCam.x,GameCam.y,Rick.x,Rick.y)
MsgBox.Msg="?."
MsgBox.Act =1
MsgBox.Dist =0
MsgBox.Letter = 1
alarm[4] = 15
Yap =18
}

if Yap = 19 {global.CreateZ= Rick.z+8
sound_play(ItemGet)
instance_create(Rick.x,Rick.y,LineLight)
instance_create(Rick.x,Rick.y,LineLight)
instance_create(Rick.x,Rick.y,LineLight)
instance_create(Rick.x,Rick.y,LineLight)
instance_create(Rick.x,Rick.y,LineLight)
instance_create(Rick.x,Rick.y,LineLight)
instance_create(Rick.x,Rick.y,LineLight)
instance_create(Rick.x,Rick.y,LineLight)
instance_create(Rick.x,Rick.y,LineLight)
instance_create(Rick.x,Rick.y,LineLight)
instance_create(Rick.x,Rick.y,LineLight)
instance_create(Rick.x,Rick.y,LineLight)
alarm[4] = 30
Yap =20
Rick.ShieldUp = 1
MsgBox.Letter = 1
}

if Yap = 21 {
MsgBox.Act =0
MsgBox.Msg= "Here you go! One fresh shield!      #I hear if you hold the C key, you can hold it up.     #...I also hear that pushing the C key lets you talk to #people."
}

if Yap = 22 {
GameCam.z =62
GameCam.x = x+32
GameCam.y = y+120
GameCam.direction= point_direction(GameCam.x,GameCam.y,x,y)
Rick.ShieldUp = 0
MsgBox.Msg= "#Well, do you like it?    #I've been practicing that spell for centuries!"}

if Yap = 23 MsgBox.Msg= "...anyway, there have been a few monsters wandering #about the land. I don't know why, but they seem a bit #more frequent than I remember.       #There were even a few in the Fountain of Fairies!"

if Yap = 24 {
GameCam.x= Rick.x-64
GameCam.y= Rick.y-16
GameCam.z= 40
GameCam.direction = 0
MsgBox.Msg= "Well, I guess all you gotta do now is jump over that #little hill, and be on your way...      #That involves pressing the Z key, right?"}

if Yap = 25 {
GameCam.x = Rick.x+32
GameCam.y = Rick.y-128
GameCam.z = 32
GameCam.direction = point_direction(GameCam.x,GameCam.y,x,y)
MsgBox.Msg= "By the way... I heard something from Yura, my #mama...       #She said if you want to look forward, either stand still #for a second, or press Shift, whatever that means..."}

if Yap = 26 {
MsgBox.Msg= "...or, you could open up the pause menu and press D if #that helps you any...            #It has something to do with camera movement. #I don't know what that means."}

if Yap = 27 {
MsgBox.Msg= "#...you know, you don't talk much.     #I guess I'd better go now."}

if Yap = 28 {
MsgBox.Msg= "!"
ZSpeed = 6
speed = 4
}