/*Dragonian Engine- */
/*Cherlindrea's Altar*/
RoomA = "Lands/StratosCityB.txt"
RoomB = 0
RoomC = 0
RoomD = 0
RoomE = 0
RoomF = 0
RoomG = 0
RoomH = 0

if global.Story < 4{
d3d_set_fog(true,c_white,128,3000)
}else{d3d_set_fog(true,c_gray,2,1000)
BGA.SkyTop=c_gray
BGA.SkyBot=c_orange
BGA.GrndTop=c_gray
}

BGA.Height= 256

CornerAX = 832
CornerAY = 2584
CornerBX = 888
CornerBY = 2928 
z = 0
zHeight = 8
TexNo = 32
Switch = 0
instance_create(832,2584,SuperBlock)
CornerAX = 352
CornerAY = 1424
CornerBX = 824
CornerBY = 2928 
z = 0
zHeight = 8
TexNo = 28
Switch = 0
instance_create(352,1424,SuperBlock)
CornerAX = 896
CornerAY = 1584
CornerBX = 1400
CornerBY = 2928 
z = 0
zHeight = 8
TexNo = 28
Switch = 0
instance_create(896,1584,SuperBlock)
CornerAX = 832
CornerAY = 1584
CornerBX = 888
CornerBY = 1880 
z = 0
zHeight = 8
TexNo = 28
Switch = 0
instance_create(832,1584,SuperBlock)
CornerAX = 832
CornerAY = 2552
CornerBX = 888
CornerBY = 2576 
z = 0
zHeight = 16
TexNo = 32
Switch = 0
instance_create(832,2552,SuperBlock)
CornerAX = 832
CornerAY = 2520
CornerBX = 888
CornerBY = 2544 
z = 0
zHeight = 24
TexNo = 32
Switch = 0
instance_create(832,2520,SuperBlock)
CornerAX = 832
CornerAY = 2488
CornerBX = 888
CornerBY = 2512 
z = 0
zHeight = 32
TexNo = 32
Switch = 0
instance_create(832,2488,SuperBlock)
CornerAX = 832
CornerAY = 2456
CornerBX = 888
CornerBY = 2480 
z = 0
zHeight = 40
TexNo = 32
Switch = 0
instance_create(832,2456,SuperBlock)
CornerAX = 832
CornerAY = 2424
CornerBX = 888
CornerBY = 2448 
z = 0
zHeight = 48
TexNo = 32
Switch = 0
instance_create(832,2424,SuperBlock)
CornerAX = 832
CornerAY = 2392
CornerBX = 888
CornerBY = 2416 
z = 0
zHeight = 56
TexNo = 32
Switch = 0
instance_create(832,2392,SuperBlock)
CornerAX = 832
CornerAY = 2360
CornerBX = 888
CornerBY = 2384 
z = 0
zHeight = 64
TexNo = 32
Switch = 0
instance_create(832,2360,SuperBlock)
CornerAX = 832
CornerAY = 2328
CornerBX = 888
CornerBY = 2352 
z = 0
zHeight = 72
TexNo = 32
Switch = 0
instance_create(832,2328,SuperBlock)
CornerAX = 832
CornerAY = 2776
CornerBX = 888
CornerBY = 2776 
z = 0
zHeight = 72
TexNo = 24
Switch = 0
instance_create(832,2776,SuperBlock)
CornerAX = 800
CornerAY = 2752
CornerBX = 824
CornerBY = 2776 
z = 0
zHeight = 72
TexNo = 28
Switch = 0
instance_create(800,2752,SuperBlock)
CornerAX = 896
CornerAY = 2752
CornerBX = 920
CornerBY = 2776 
z = 0
zHeight = 72
TexNo = 28
Switch = 0
instance_create(896,2752,SuperBlock)
CornerAX = 832
CornerAY = 2296
CornerBX = 888
CornerBY = 2320 
z = 0
zHeight = 80
TexNo = 32
Switch = 0
instance_create(832,2296,SuperBlock)
CornerAX = 832
CornerAY = 2264
CornerBX = 888
CornerBY = 2288 
z = 0
zHeight = 88
TexNo = 32
Switch = 0
instance_create(832,2264,SuperBlock)
CornerAX = 832
CornerAY = 2232
CornerBX = 888
CornerBY = 2256 
z = 0
zHeight = 96
TexNo = 32
Switch = 0
instance_create(832,2232,SuperBlock)
CornerAX = 832
CornerAY = 2200
CornerBX = 888
CornerBY = 2224 
z = 0
zHeight = 104
TexNo = 32
Switch = 0
instance_create(832,2200,SuperBlock)
CornerAX = 784
CornerAY = 2752
CornerBX = 936
CornerBY = 2776 
z = 72
zHeight = 104
TexNo = 28
Switch = 0
instance_create(784,2752,SuperBlock)
CornerAX = 832
CornerAY = 2168
CornerBX = 888
CornerBY = 2192 
z = 0
zHeight = 112
TexNo = 32
Switch = 0
instance_create(832,2168,SuperBlock)
CornerAX = 192
CornerAY = 1584
CornerBX = 344
CornerBY = 2768 
z = 0
zHeight = 112
TexNo = 28
Switch = 0
instance_create(192,1584,SuperBlock)
CornerAX = 352
CornerAY = 2784
CornerBX = 1400
CornerBY = 2928 
z = 0
zHeight = 112
TexNo = 28
Switch = 0
instance_create(352,2784,SuperBlock)
CornerAX = 1408
CornerAY = 1584
CornerBX = 1560
CornerBY = 2776 
z = 0
zHeight = 112
TexNo = 28
Switch = 0
instance_create(1408,1584,SuperBlock)
CornerAX = 352
CornerAY = 1424
CornerBX = 1400
CornerBY = 1576 
z = 0
zHeight = 112
TexNo = 28
Switch = 0
instance_create(352,1424,SuperBlock)
CornerAX = 736
CornerAY = 1912
CornerBX = 984
CornerBY = 2160 
z = 0
zHeight = 120
TexNo = 32
Switch = 0
instance_create(736,1912,SuperBlock)
CornerAX = 184
CornerAY = 2776
CornerBX = 344
CornerBY = 2928 
z = 0
zHeight = 120
TexNo = 28
Switch = 0
instance_create(184,2776,SuperBlock)
CornerAX = 1408
CornerAY = 2784
CornerBX = 1560
CornerBY = 2928 
z = 0
zHeight = 120
TexNo = 28
Switch = 0
instance_create(1408,2784,SuperBlock)
CornerAX = 1408
CornerAY = 1424
CornerBX = 1560
CornerBY = 1576 
z = 0
zHeight = 120
TexNo = 28
Switch = 0
instance_create(1408,1424,SuperBlock)
CornerAX = 192
CornerAY = 1424
CornerBX = 344
CornerBY = 1576 
z = 0
zHeight = 120
TexNo = 28
Switch = 0
instance_create(192,1424,SuperBlock)
CornerAX = 704
CornerAY = 1880
CornerBX = 1016
CornerBY = 1904 
z = 0
zHeight = 144
TexNo = 28
Switch = 0
instance_create(704,1880,SuperBlock)
CornerAX = 992
CornerAY = 1880
CornerBX = 1016
CornerBY = 2192 
z = 0
zHeight = 144
TexNo = 28
Switch = 0
instance_create(992,1880,SuperBlock)
CornerAX = 896
CornerAY = 2168
CornerBX = 1016
CornerBY = 2192 
z = 0
zHeight = 144
TexNo = 28
Switch = 0
instance_create(896,2168,SuperBlock)
CornerAX = 704
CornerAY = 2168
CornerBX = 824
CornerBY = 2192 
z = 0
zHeight = 144
TexNo = 28
Switch = 0
instance_create(704,2168,SuperBlock)
CornerAX = 704
CornerAY = 1880
CornerBX = 728
CornerBY = 2192 
z = 0
zHeight = 144
TexNo = 28
Switch = 0
instance_create(704,1880,SuperBlock)
CornerAX = 896
CornerAY = 2168
CornerBX = 920
CornerBY = 2432 
z = 0
zHeight = 144
TexNo = 28
Switch = 0
instance_create(896,2168,SuperBlock)
CornerAX = 384
CornerAY = 1648
CornerBX = 408
CornerBY = 1672 
z = 0
zHeight = 208
TexNo = 28
Switch = 0
instance_create(384,1648,SuperBlock)
CornerAX = 384
CornerAY = 2720
CornerBX = 408
CornerBY = 2744 
z = 0
zHeight = 208
TexNo = 28
Switch = 0
instance_create(384,2720,SuperBlock)
CornerAX = 1336
CornerAY = 2712
CornerBX = 1360
CornerBY = 2736 
z = 0
zHeight = 208
TexNo = 28
Switch = 0
instance_create(1336,2712,SuperBlock)
CornerAX = 1344
CornerAY = 1648
CornerBX = 1368
CornerBY = 1672 
z = 0
zHeight = 208
TexNo = 28
Switch = 0
instance_create(1344,1648,SuperBlock)
CornerAX = 800
CornerAY = 2200
CornerBX = 824
CornerBY = 2424 
z = 0
zHeight = 144
TexNo = 28
Switch = 0
instance_create(800,2200,SuperBlock)
CornerAX = 832
CornerAY = 2760
CornerBX = 888
CornerBY = 2784 
z = 0
zHeight = 152
TexNo = 0
instance_create(832,2760,DoorBlock)

 
z = 8
CreateDir = 90
instance_create(868,2740,PointA)
z = 152
instance_create(868,2772,DoorA)

if instance_number(CherSaved) != 0{
z = 120
if global.Story < 3 Text = "Scripts/CherInTown.txt"
if global.Story = 3 Text = "Scripts/SaveSab.txt"
if global.Story > 3 Text = "Scripts/CherRuin.txt"
if global.Story = 4 and instance_number(ElphWand) >0 and instance_number(TabNecklace) >0 and instance_number(CherRing) >0 and instance_number(AlmStaff) >0 Text="Scripts/AllAmulets.txt" 
instance_create(868,2036,MapCher)}