if Yap = 0 {
direction =180
MsgBox.Msg="#Heh heh heh heh...       #I see you've improved since our last encounter..."
Rick.speed = 0
Rick.x = Altar.x-64
Rick.y = Altar.y+96
GameCam.z = 180
speed = 0
x = Altar.x+64
y = Altar.y+96
z = GroundZ
GameCam.x = Altar.x-16
GameCam.y = Altar.y+96
GameCam.direction = point_direction(GameCam.x,GameCam.y,x,y)
}

if Yap = 1 {
MsgBox.Msg = "#I should have expected such a battle from the very #Dragon-slayer I helped out..."
}

if Yap =2{
GameCam.x = x+30*sin((GameCam.direction+270)*pi/180)
GameCam.y = y+30*cos((GameCam.direction+270)*pi/180)
GameCam.z = z+10
MsgBox.Msg = "...however, as the son of Ghidra, this human form just #does not suit me.         #Perhaps, you shall soon know fear..."
}

if Yap =3{
sound_fade(FinalBossA,0,5000)
Focus = 1
Rick.visible = 0
Rick.Talk = 0
MsgBox.Msg = "?."
sprite_index = VerneWings
image_index = 0
image_speed =.5
Mood = 2
Act = 1
MsgBox.Letter= 1
MsgBox.Act = 0
MsgBox.Dist = 0
Yap = 4
alarm[4] = 60
}

if Yap =5{
Focus = 0
MsgBox.Letter= 1
MsgBox.Act = 0
MsgBox.Dist = 0
GameCam.x = Altar.x
GameCam.y = Altar.y+80
GameCam.z = Altar.z+32
DeadSabrina.sprite_index = SabrinaAwake
DeadSabrina.image_index = 0
DeadSabrina.image_speed = .25
GameCam.direction = point_direction(GameCam.x,GameCam.y,DeadSabrina.x,DeadSabrina.y)
Yap = 6
alarm[4] = 60
}


if Yap =7{
Focus = 1
Rick.visible = 0
Rick.Talk = 0
MsgBox.Msg = "?."
Act = 0
visible = 0
MsgBox.Letter= 1
MsgBox.Act = 0
MsgBox.Dist = 0
Yap = 8
alarm[4] = 60
global.CreateZ = z
instance_create(x,y,Balzoda)
GameCam.direction =Balzoda.direction+180
GameCam.x = Balzoda.x+240*sin((GameCam.direction+270)*pi/180)
GameCam.y = Balzoda.y+240*cos((GameCam.direction+270)*pi/180)
GameCam.z = Balzoda.z+64
}

if Yap =9{
Focus = 0
Rick.visible = 0
Rick.Talk = 0
GameCam.x = Altar.x+16
GameCam.y = Altar.y+64
GameCam.z = Altar.z+20
DeadSabrina.image_speed = .5
DeadSabrina.sprite_index = SabrinaScared
GameCam.direction = point_direction(GameCam.x,GameCam.y,Altar.x,Altar.y)
MsgBox.Msg ="No... It can't be...     #It's...            #It's the monster from my nightmares!       #"+global.Name+", keep him away from me!"
}

if Yap =10{
Focus = 0
Rick.visible = 0
Rick.Talk = 0
Balzoda.Act = 0
Balzoda.alarm[10] = 2
Balzoda.alarm[11] = 2
GameCam.direction =Balzoda.direction+180
MsgBox.Msg = "I am Wyverne Balzoda, the Dragonian.        #Your blood WILL awaken the princess' true self...         #YOU WILL DIE!"
sound_loop(FinalBossB)
GameCam.x = Balzoda.x+240*sin((GameCam.direction+270)*pi/180)
GameCam.y = Balzoda.y+240*cos((GameCam.direction+270)*pi/180)
GameCam.z = Balzoda.z+56
}

if Yap =11{
MsgBox.Msg = "!"
Balzoda.alarm[11] = 0
with Balzoda{
alarm [0] = 30
LR = 0
}
MsgBox.Act = 2
Yap = 0
Active = 2
Rick.Auto = 0
Rick.Strafe = 0
Targeted = 0
GameCam.CineMode = 0
instance_destroy()
Rick.visible = 1
sound_volume(FinalBossA,1)
}
