if Yap = 0 {
GameCam.x = x+96*sin((GameCam.direction+270)*pi/180)
GameCam.y = y+96*cos((GameCam.direction+270)*pi/180)
GameCam.z = z+12
MsgBox.Msg="#Hello, "+global.Name+"!" 
Mood = 0
}

if Yap = 1 {
Focus = 1
GameCam.direction =Rick.direction+225
if GameCam.direction > 360 GameCam.direction = direction-360
Rick.visible = 1
Rick.Talk = 1
GameCam.x = Rick.x+96*sin((GameCam.direction+270)*pi/180)
GameCam.y = Rick.y+96*cos((GameCam.direction+270)*pi/180)
MsgBox.Msg = "#Verne! What are you doing here?"
}

if Yap =2{
Focus = 0
GameCam.direction =direction+180
Rick.Talk = 0
GameCam.x = Rick.x
GameCam.y = Rick.y
GameCam.z = Rick.z+24
MsgBox.Msg = "I've noticed what you've been doing in these shrines.      #You're pretty good with a sword. You know how to #use your wonderful toys. ...and you're not that bad #when it comes to little puzzles."
}

if Yap =3{
CamZSp = (z+10-GameCam.z)/60
GameCam.speed = point_distance(GameCam.x,GameCam.y,x+32*sin((GameCam.direction+270)*pi/180),y+32*cos((GameCam.direction+270)*pi/180))/60
alarm[3] = 60
Mood = 1
sound_loop(BadVerneBGM)
MsgBox.Msg = "However...      #do you know how hard it was to get those old ladies #in there, and to recruit my brothers to keep them #there?"
}

if Yap =4{
GameCam.direction =Rick.direction+192
Rick.Talk = 1
GameCam.x = Rick.x+64*sin((GameCam.direction+270)*pi/180)
GameCam.y = Rick.y+64*cos((GameCam.direction+270)*pi/180)
GameCam.z = Rick.z+10
Rick.Talk = 1
CamZSp = 0
GameCam.speed = 0
alarm[3] = 0
MsgBox.Msg = "#What?"
}

if Yap =5{
GameCam.direction =direction+192
GameCam.x = x+48*sin((GameCam.direction+270)*pi/180)
GameCam.y = y+48*cos((GameCam.direction+270)*pi/180)
Rick.Talk = 0
MsgBox.Msg = "I thought it would be amusing to challenge you to #face my brothers...       #Apparently, that didn't work out so well.      #After all, you're still alive."
}

if Yap =6{
GameCam.direction =direction+180
GameCam.x = x+10*sin((GameCam.direction+270)*pi/180)
GameCam.y = y+10*cos((GameCam.direction+270)*pi/180)
GameCam.z = z+10
MsgBox.Msg = "#I guess I should make the challenge more interesting...           #it will be, soon enough..."
}

if Yap =7{
MsgBox.Msg = "Now, if you excuse me, "+global.Name+", I'm headed #to the castle. There's a certain princess I want to get #aquainted with."
}

if Yap =8{
GameCam.x = Rick.x+2*sin((GameCam.direction+270)*pi/180)
GameCam.y = Rick.y+2*cos((GameCam.direction+270)*pi/180)
GameCam.direction = Rick.direction
GameCam.z =z+24
sprite_index = VerneWings
image_index = 0
image_speed =.5
Mood = 2
MsgBox.Act = 0
MsgBox.Dist = 0
MsgBox.Msg = "?."
MsgBox.Letter = 1
Yap = 9
alarm[4] = 30
}

if Yap =10{
ZSpeed = 4
z = z+1
Targeted =0
Mood = 2
sprite_index = VerneFlapD
image_speed =.5
Rick.visible = 1
alarm[4] = 30
Yap = 11
GameCam.CineMode = 0
global.Story += 1
MsgBox.Letter = 1
}

if Yap =12{
MsgBox.Msg = "!"
Focus = 0
if global.CurrentRoom = "Lands/Beach.txt" {direction = point_direction(x,y,-2936,1468)
sound_loop(WetlandBGM)
}
if global.CurrentRoom = "Lands/Canyon.txt" {direction = point_direction(x,y,5872,1468)
sound_loop(DesertBGM)}
if global.CurrentRoom = "Lands/StratosRoadB.txt" {direction = point_direction(x,y,1468,5872)
sound_loop(WindBGM)}
Rick.Auto = 0
speed = 4
Active = 2
ZSpeed = 1
alarm[2] = 2
}