/*Dragonian Engine- */
/*Sierr Castle- Upper Floor*/
RoomA = "Lands/SierrCastleA.txt"
RoomB = 0
RoomC = "Lands/IllMount/StartRoom.txt"
RoomD = 0
RoomE = 0
RoomF = 0
RoomG = "Lands/End/Tiel.txt"
RoomH = "Lands/End/Sabrina.txt"

BGA.GrndBot=c_gray

CornerAX = 512
CornerAY = 784
CornerBX = 568
CornerBY = 808 
z = 0
zHeight = 8
TexNo = 28
Switch = 0
instance_create(512,784,SuperBlock)
CornerAX = 512
CornerAY = 752
CornerBX = 568
CornerBY = 776 
z = 0
zHeight = 16
TexNo = 28
Switch = 0
instance_create(512,752,SuperBlock)
CornerAX = 512
CornerAY = 720
CornerBX = 568
CornerBY = 744 
z = 0
zHeight = 24
TexNo = 28
Switch = 0
instance_create(512,720,SuperBlock)
CornerAX = 512
CornerAY = 688
CornerBX = 568
CornerBY = 712 
z = 0
zHeight = 32
TexNo = 28
Switch = 0
instance_create(512,688,SuperBlock)
CornerAX = 512
CornerAY = 656
CornerBX = 568
CornerBY = 680 
z = 0
zHeight = 40
TexNo = 28
Switch = 0
instance_create(512,656,SuperBlock)
CornerAX = 512
CornerAY = 624
CornerBX = 568
CornerBY = 648 
z = 0
zHeight = 48
TexNo = 28
Switch = 0
instance_create(512,624,SuperBlock)
CornerAX = 512
CornerAY = 592
CornerBX = 568
CornerBY = 616 
z = 0
zHeight = 56
TexNo = 28
Switch = 0
instance_create(512,592,SuperBlock)
CornerAX = 512
CornerAY = 816
CornerBX = 568
CornerBY = 824 
z = 0
zHeight = 64
TexNo = 24
Switch = 0
instance_create(512,816,SuperBlock)
CornerAX = 512
CornerAY = 832
CornerBX = 568
CornerBY = 1528 
z = 0
zHeight = 64
TexNo = 28
Switch = 0
instance_create(512,832,SuperBlock)
CornerAX = 480
CornerAY = 592
CornerBX = 504
CornerBY = 872 
z = 0
zHeight = 64
TexNo = 28
Switch = 0
instance_create(480,592,SuperBlock)
CornerAX = 576
CornerAY = 592
CornerBX = 1600
CornerBY = 1536 
z = 0
zHeight = 64
TexNo = 28
Switch = 0
instance_create(576,592,SuperBlock)
CornerAX = 496
CornerAY = 304
CornerBX = 1600
CornerBY = 584 
z = 0
zHeight = 64
TexNo = 28
Switch = 0
instance_create(496,304,SuperBlock)
CornerAX = 1176
CornerAY = 792
CornerBX = 1296
CornerBY = 816 
z = 48
zHeight = 72
TexNo = 28
Switch = 0
instance_create(1176,792,SuperBlock)
CornerAX = 1112
CornerAY = 856
CornerBX = 1136
CornerBY = 976 
z = 48
zHeight = 72
TexNo = 28
Switch = 0
instance_create(1112,856,SuperBlock)
CornerAX = 952
CornerAY = 792
CornerBX = 1072
CornerBY = 816 
z = 48
zHeight = 72
TexNo = 28
Switch = 0
instance_create(952,792,SuperBlock)
CornerAX = 1112
CornerAY = 632
CornerBX = 1136
CornerBY = 752 
z = 48
zHeight = 72
TexNo = 28
Switch = 0
instance_create(1112,632,SuperBlock)
CornerAX = 1176
CornerAY = 696
CornerBX = 1200
CornerBY = 752 
z = 48
zHeight = 72
TexNo = 32
Switch = 0
instance_create(1176,696,SuperBlock)
CornerAX = 1176
CornerAY = 728
CornerBX = 1232
CornerBY = 752 
z = 48
zHeight = 72
TexNo = 32
Switch = 0
instance_create(1176,728,SuperBlock)
CornerAX = 1048
CornerAY = 696
CornerBX = 1072
CornerBY = 752 
z = 48
zHeight = 72
TexNo = 32
Switch = 0
instance_create(1048,696,SuperBlock)
CornerAX = 1016
CornerAY = 728
CornerBX = 1072
CornerBY = 752 
z = 48
zHeight = 72
TexNo = 32
Switch = 0
instance_create(1016,728,SuperBlock)
CornerAX = 1016
CornerAY = 856
CornerBX = 1072
CornerBY = 880 
z = 48
zHeight = 72
TexNo = 32
Switch = 0
instance_create(1016,856,SuperBlock)
CornerAX = 1048
CornerAY = 856
CornerBX = 1072
CornerBY = 912 
z = 48
zHeight = 72
TexNo = 32
Switch = 0
instance_create(1048,856,SuperBlock)
CornerAX = 1176
CornerAY = 856
CornerBX = 1200
CornerBY = 912 
z = 48
zHeight = 72
TexNo = 32
Switch = 0
instance_create(1176,856,SuperBlock)
CornerAX = 1176
CornerAY = 856
CornerBX = 1232
CornerBY = 880 
z = 48
zHeight = 72
TexNo = 32
Switch = 0
instance_create(1176,856,SuperBlock)
CornerAX = 840
CornerAY = 792
CornerBX = 840
CornerBY = 816 
z = 48
zHeight = 72
TexNo = 28
Switch = 0
instance_create(840,792,SuperBlock)
CornerAX = 1112
CornerAY = 1088
CornerBX = 1136
CornerBY = 1088 
z = 48
zHeight = 72
TexNo = 28
Switch = 0
instance_create(1112,1088,SuperBlock)
CornerAX = 1112
CornerAY = 520
CornerBX = 1136
CornerBY = 520 
z = 48
zHeight = 72
TexNo = 28
Switch = 0
instance_create(1112,520,SuperBlock)
CornerAX = 1408
CornerAY = 792
CornerBX = 1408
CornerBY = 816 
z = 48
zHeight = 72
TexNo = 28
Switch = 0
instance_create(1408,792,SuperBlock)
CornerAX = 1112
CornerAY = 568
CornerBX = 1136
CornerBY = 624 
z = 48
zHeight = 80
TexNo = 28
Switch = 0
instance_create(1112,568,SuperBlock)
CornerAX = 1304
CornerAY = 792
CornerBX = 1360
CornerBY = 816 
z = 48
zHeight = 80
TexNo = 28
Switch = 0
instance_create(1304,792,SuperBlock)
CornerAX = 888
CornerAY = 792
CornerBX = 944
CornerBY = 816 
z = 48
zHeight = 80
TexNo = 28
Switch = 0
instance_create(888,792,SuperBlock)
CornerAX = 1112
CornerAY = 984
CornerBX = 1136
CornerBY = 1040 
z = 48
zHeight = 80
TexNo = 28
Switch = 0
instance_create(1112,984,SuperBlock)
CornerAX = 1400
CornerAY = 792
CornerBX = 1400
CornerBY = 816 
z = 48
zHeight = 80
TexNo = 28
Switch = 0
instance_create(1400,792,SuperBlock)
CornerAX = 1112
CornerAY = 528
CornerBX = 1136
CornerBY = 528 
z = 48
zHeight = 80
TexNo = 28
Switch = 0
instance_create(1112,528,SuperBlock)
CornerAX = 1112
CornerAY = 1080
CornerBX = 1136
CornerBY = 1080 
z = 48
zHeight = 80
TexNo = 28
Switch = 0
instance_create(1112,1080,SuperBlock)
CornerAX = 848
CornerAY = 792
CornerBX = 848
CornerBY = 816 
z = 48
zHeight = 80
TexNo = 28
Switch = 0
instance_create(848,792,SuperBlock)
CornerAX = 1368
CornerAY = 792
CornerBX = 1392
CornerBY = 816 
z = 48
zHeight = 88
TexNo = 28
Switch = 0
instance_create(1368,792,SuperBlock)
CornerAX = 1112
CornerAY = 536
CornerBX = 1136
CornerBY = 560 
z = 48
zHeight = 88
TexNo = 28
Switch = 0
instance_create(1112,536,SuperBlock)
CornerAX = 1112
CornerAY = 1048
CornerBX = 1136
CornerBY = 1072 
z = 48
zHeight = 88
TexNo = 28
Switch = 0
instance_create(1112,1048,SuperBlock)
CornerAX = 856
CornerAY = 792
CornerBX = 880
CornerBY = 816 
z = 48
zHeight = 88
TexNo = 28
Switch = 0
instance_create(856,792,SuperBlock)
CornerAX = 544
CornerAY = 160
CornerBX = 1464
CornerBY = 304 
z = 48
zHeight = 96
TexNo = 20
Switch = 0
instance_create(544,160,SuperBlock)
CornerAX = 720
CornerAY = 1256
CornerBX = 1384
CornerBY = 1528 
z = 48
zHeight = 96
TexNo = 20
Switch = 0
instance_create(720,1256,SuperBlock)
CornerAX = 1344
CornerAY = 160
CornerBX = 1432
CornerBY = 312 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(1344,160,SuperBlock)
CornerAX = 1216
CornerAY = 160
CornerBX = 1304
CornerBY = 312 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(1216,160,SuperBlock)
CornerAX = 1088
CornerAY = 160
CornerBX = 1176
CornerBY = 312 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(1088,160,SuperBlock)
CornerAX = 960
CornerAY = 160
CornerBX = 1048
CornerBY = 312 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(960,160,SuperBlock)
CornerAX = 832
CornerAY = 160
CornerBX = 920
CornerBY = 312 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(832,160,SuperBlock)
CornerAX = 704
CornerAY = 160
CornerBX = 792
CornerBY = 312 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(704,160,SuperBlock)
CornerAX = 576
CornerAY = 160
CornerBX = 664
CornerBY = 312 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(576,160,SuperBlock)
CornerAX = 496
CornerAY = 160
CornerBX = 536
CornerBY = 312 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(496,160,SuperBlock)
CornerAX = 1472
CornerAY = 160
CornerBX = 1600
CornerBY = 312 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(1472,160,SuperBlock)
CornerAX = 336
CornerAY = 0
CornerBX = 1760
CornerBY = 152 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(336,0,SuperBlock)
CornerAX = 1608
CornerAY = 0
CornerBX = 1760
CornerBY = 1688 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(1608,0,SuperBlock)
CornerAX = 336
CornerAY = 1536
CornerBX = 1760
CornerBY = 1688 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(336,1536,SuperBlock)
CornerAX = 544
CornerAY = 160
CornerBX = 1464
CornerBY = 312 
z = 96
zHeight = 224
TexNo = 28
Switch = 0
instance_create(544,160,SuperBlock)
CornerAX = 624
CornerAY = 1248
CornerBX = 712
CornerBY = 1528 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(624,1248,SuperBlock)
CornerAX = 752
CornerAY = 1248
CornerBX = 840
CornerBY = 1528 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(752,1248,SuperBlock)
CornerAX = 880
CornerAY = 1248
CornerBX = 968
CornerBY = 1528 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(880,1248,SuperBlock)
CornerAX = 1008
CornerAY = 1248
CornerBX = 1096
CornerBY = 1528 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(1008,1248,SuperBlock)
CornerAX = 1136
CornerAY = 1248
CornerBX = 1224
CornerBY = 1528 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(1136,1248,SuperBlock)
CornerAX = 1264
CornerAY = 1248
CornerBX = 1352
CornerBY = 1528 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(1264,1248,SuperBlock)
CornerAX = 1392
CornerAY = 1248
CornerBX = 1600
CornerBY = 1528 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(1392,1248,SuperBlock)
CornerAX = 720
CornerAY = 1248
CornerBX = 1384
CornerBY = 1528 
z = 96
zHeight = 224
TexNo = 28
Switch = 0
instance_create(720,1248,SuperBlock)
CornerAX = 336
CornerAY = 800
CornerBX = 616
CornerBY = 1528 
z = 56
zHeight = 224
TexNo = 28
Switch = 0
instance_create(336,800,SuperBlock)
CornerAX = 336
CornerAY = 160
CornerBX = 488
CornerBY = 792 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(336,160,SuperBlock)
CornerAX = 1496
CornerAY = 320
CornerBX = 1600
CornerBY = 424 
z = 0
zHeight = 224
TexNo = 28
Switch = 0
instance_create(1496,320,SuperBlock)
CornerAX = 496
CornerAY = 320
CornerBX = 1600
CornerBY = 752 
z = 208
zHeight = 224
TexNo = 28
Switch = 0
instance_create(496,320,SuperBlock)
CornerAX = 1176
CornerAY = 760
CornerBX = 1600
CornerBY = 1240 
z = 208
zHeight = 224
TexNo = 28
Switch = 0
instance_create(1176,760,SuperBlock)
CornerAX = 496
CornerAY = 760
CornerBX = 1072
CornerBY = 1240 
z = 208
zHeight = 224
TexNo = 28
Switch = 0
instance_create(496,760,SuperBlock)
CornerAX = 1080
CornerAY = 856
CornerBX = 1168
CornerBY = 1240 
z = 208
zHeight = 224
TexNo = 28
Switch = 0
instance_create(1080,856,SuperBlock)
CornerAX = 512
CornerAY = 800
CornerBX = 568
CornerBY = 856 
z = 0
zHeight = 240
TexNo = 28
instance_create(512,800,DoorBlock)
CornerAX = 736
CornerAY = 320
CornerBX = 792
CornerBY = 824 
z = 0
zHeight = 136
TexNo = 28
instance_create(736,320,EventBlock)
CornerAX = 624
CornerAY = 800
CornerBX = 728
CornerBY = 824 
z = 0
zHeight = 136
TexNo = 0
instance_create(624,800,EventBlock)
if global.Story = 3 {
CornerAX = 616
CornerAY = 320
CornerBX = 616
CornerBY = 792 
z = 64
zHeight = 128
TexNo = 24
instance_create(616,320,Firewall)}
 
z = 64
instance_create(1128,808,SierrGroundMark)
z = 16
CreateDir = 90
instance_create(540,780,PointA)
z = 240
instance_create(548,836,DoorA)
if global.Story = 3{
z = 224
Switch = 4
Text = "Scripts/Balzoda1.txt"
instance_create(1128,808,CrystalPrison)
z = 64
Switch = 4
Text = "Scripts/Balzoda2.txt"
instance_create(1128,808,CineTiel)
}

if global.Story = 4 and instance_number(ElphWand) >0 and instance_number(TabNecklace) >0 and instance_number(CherRing) >0 and instance_number(AlmStaff) >0{
z = 88
Text = 0
Switch = 11
instance_create(1132,556,CineTiel)
z = 88
Text = 0
Switch =10
instance_create(1388,812,CineTiel)
z = 88
Text = 0
Switch=9
instance_create(876,812,CineTiel)
z = 88
if ds_list_find_index(global.KHDB,"CHIKEN") = -1 Text = "Scripts/Warp1.txt" else Text = "Scripts/Warp2.txt"
Switch = 8
instance_create(1132,1068,CineTiel)
}

if global.Story = 5 {
z = 88
Text = 0
Switch = 11
instance_create(1132,556,CineTiel)
z = 88
Text = 0
Switch =10
instance_create(1388,812,CineTiel)
z = 88
Text = 0
Switch=9
instance_create(876,812,CineTiel)
z = 88
Text = "Scripts/FinalA.txt"
Switch = 15
instance_create(1132,1068,CineTiel)
z = 64
Switch = 16
instance_create(1192,872,CineTiel)
}