/*Dragonian Engine- */
/*Central Town Shop*/
RoomA = "Lands/SierrTown.txt"
RoomB = 0
RoomC = 0
RoomD = 0
RoomE = 0
RoomF = 0
RoomG = 0
RoomH = 0
  
instance_create(0,0,ShoppingPresence)

CornerAX = 0
CornerAY = 0
CornerBX = 600
CornerBY = 984 
z = 0
zHeight = 8
TexNo = 44
Switch = 0
instance_create(0,0,SuperBlock)
CornerAX = 296
CornerAY = 288
CornerBX = 320
CornerBY = 568 
z = 0
zHeight = 16
TexNo = 12
Switch = 0
instance_create(296,288,SuperBlock)
CornerAX = 160
CornerAY = 296
CornerBX = 288
CornerBY = 320 
z = 0
zHeight = 16
TexNo = 16
Switch = 0
instance_create(160,296,SuperBlock)
CornerAX = 160
CornerAY = 536
CornerBX = 288
CornerBY = 560 
z = 0
zHeight = 16
TexNo = 16
Switch = 0
instance_create(160,536,SuperBlock)
CornerAX = 160
CornerAY = 368
CornerBX = 184
CornerBY = 504 
z = 0
zHeight = 24
TexNo = 12
Switch = 0
instance_create(160,368,SuperBlock)
CornerAX = 160
CornerAY = 368
CornerBX = 184
CornerBY = 504 
z = 40
zHeight = 56
TexNo = 12
Switch = 0
instance_create(160,368,SuperBlock)
CornerAX = 160
CornerAY = 512
CornerBX = 184
CornerBY = 512 
z = 0
zHeight = 64
TexNo = 16
Switch = 0
instance_create(160,512,SuperBlock)
CornerAX = 160
CornerAY = 360
CornerBX = 184
CornerBY = 360 
z = 0
zHeight = 64
TexNo = 16
Switch = 0
instance_create(160,360,SuperBlock)
CornerAX = 584
CornerAY = 368
CornerBX = 600
CornerBY = 384 
z = 0
zHeight = 72
TexNo = 44
Switch = 0
instance_create(584,368,SuperBlock)
CornerAX = 584
CornerAY = 416
CornerBX = 600
CornerBY = 432 
z = 0
zHeight = 72
TexNo = 44
Switch = 0
instance_create(584,416,SuperBlock)
CornerAX = 600
CornerAY = 392
CornerBX = 600
CornerBY = 408 
z = 0
zHeight = 72
TexNo = 24
Switch = 0
instance_create(600,392,SuperBlock)
CornerAX = 160
CornerAY = 360
CornerBX = 184
CornerBY = 512 
z = 64
zHeight = 80
TexNo = 12
Switch = 0
instance_create(160,360,SuperBlock)
CornerAX = 584
CornerAY = 368
CornerBX = 600
CornerBY = 432 
z = 72
zHeight = 88
TexNo = 12
Switch = 0
instance_create(584,368,SuperBlock)
CornerAX = 0
CornerAY = 0
CornerBX = 600
CornerBY = 120 
z = 0
zHeight = 96
TexNo = 44
Switch = 0
instance_create(0,0,SuperBlock)
CornerAX = 0
CornerAY = 128
CornerBX = 152
CornerBY = 824 
z = 0
zHeight = 96
TexNo = 44
Switch = 0
instance_create(0,128,SuperBlock)
CornerAX = 608
CornerAY = 0
CornerBX = 792
CornerBY = 984 
z = 0
zHeight = 96
TexNo = 44
Switch = 0
instance_create(608,0,SuperBlock)
CornerAX = 0
CornerAY = 832
CornerBX = 600
CornerBY = 984 
z = 0
zHeight = 96
TexNo = 44
Switch = 0
instance_create(0,832,SuperBlock)
CornerAX = 0
CornerAY = 0
CornerBX = 792
CornerBY = 984 
z = 96
zHeight = 144
TexNo = 12
Switch = 0
instance_create(0,0,SuperBlock)
CornerAX = 584
CornerAY = 392
CornerBX = 600
CornerBY = 408 
z = 0
zHeight = 112
TexNo = 12
instance_create(584,392,DoorBlock)

 
z = 8
CreateDir = 180
instance_create(572,404,PointA)
z = 112
instance_create(596,404,DoorA)
z = 8
Text = "Scripts/ShopKeeperA.txt"
instance_create(276,428,MapOlLady)
if global.Story = 1{
z = 8
Switch=5
Text = "Scripts/SabrinaA.txt"
instance_create(356,428,CineTiel)
}

z = 16
Switch = 1
instance_create(316,524,StoreItem)

z = 16
if instance_number(Powder) = 0 Switch = 8 else {if instance_number(Bottle) = 0 Switch = 4 else Switch = 5}
instance_create(316,452,StoreItem)

z = 16
Switch = 2
instance_create(316,380,StoreItem)

z = 16
if instance_number(ABasket) = 0 Switch = 0 else Switch = 10
instance_create(316,316,StoreItem)