SoutherlyCity_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 1

	dbw 5, .set_fly_flag

.set_fly_flag
	setflag ENGINE_FLYPOINT_SOUTHERLY_CITY
	return

SoutherlyCityGymSign:
	db TX_COMPRESSED, $07, $2b, $e1, $24, $61, $02
	db $7e, $9e, $16, $39, $ee, $4d, $6e, $30, $5c, $b2, $1a
	db $2c, $4d, $60
	db $74, $f0, $8a, $49, $ce, $5a, $05, $2a, $1d, $a6, $72, $10
	db $e6, $9e, $16, $03, $59, $88, $0d, $46, $be
	db $34, $d0

SoutherlyCityBattleBuildingSign:
	db TX_COMPRESSED, $12, $db, $be, $9c, $12, $68, $7d, $c8, $c9
	db $c8, $9a, $c0
	db $e9, $e1, $70, $b5, $70, $10, $5a, $5c, $d5, $63, $e8, $ec
	db $0d, $3c, $21, $9a, $25, $86, $5a, $4e, $59, $a2, $f8
	db $d3, $40

SoutherlyCityCitySign:
	db TX_COMPRESSED, $61, $6d, $9d, $5a, $0a, $58
	db $69, $e1, $70, $ea, $f7, $23, $41, $f1
	db $a6, $80

SoutherlyCityAirportSign:
	db TX_COMPRESSED, $ac, $6b, $10, $15
	db $dd, $34

SoutherlyCityEspoForestBlock:
	faceperson PLAYER, UP
	scall SoutherlyCityEspoForestGuard
	applymovement PLAYER, .move_away
	end

.move_away
	step_right
	step_end

SoutherlyCityEspoForestGuard:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $50, $17, $ce, $54, $63, $5e
	db $5e, $4e, $88, $10, $64, $19, $39, $44, $4e, $83
	db $18, $05, $66, $64, $9c, $84, $64, $e6, $04, $90, $64
	db $78, $5c, $81, $01, $8a, $61, $59, $a2

	db $fc, $01, $d3, $01, $c5, $66, $64, $96, $1e, $e6, $58
	db $5e, $e5, $ad, $5e, $65, $a4, $e6, $ac
	db $f5, $56, $01, $5c, $20, $6a
	db $f5, $34

SoutherlyCityBridgeBlock:
	faceperson PLAYER, LEFT
	scall SoutherlyCityBridgeGuard
	applymovement PLAYER, .move_away
	end

.move_away
	step_down
	step_end

SoutherlyCityBridgeGuard:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $29, $27, $15, $ac, $79, $e4, $e0
	db $d0, $f3, $44, $c9, $ae, $32, $12, $22, $d6, $d3, $36, $30
	db $91, $52, $c7, $ca, $6e, $10, $35
	db $7a, $9a
	
SoutherlyCityRunwayGuard:
	db TX_COMPRESSED, $29, $23, $44, $1a, $25, $a4, $e2, $da, $25, $5a
	db $09, $ec, $02, $b8, $16, $97, $34, $6b, $10, $15, $df
	
	db $80, $3a, $8c, $e9, $29, $93, $a7, $70, $10, $5a
	db $78, $46, $a1, $11, $a2, $74, $d0, $88, $08, $2d
	db $00, $65, $26, $ca, $94, $19, $25, $43, $b4, $cb, $49
	db $bc, $20, $c2, $23, $a7, $06, $44, $0f, $27
	db $ea, $68

SoutherlyCityTeleporter:
	opentext
	farwritetext FarText_BillsTeleportationSystem
	checkevent EVENT_REGISTERED_SOUTHERLY
	sif false, then
		writetext .registered_city_text
		setevent EVENT_REGISTERED_SOUTHERLY
	sendif
	writetext .want_to_teleport_text
	yesorno
	closetext
	sif true
		warp LAUREL_POKECENTER, 5, 5
	end

.registered_city_text
	db TX_COMPRESSED, $50, $16, $ad, $26, $be, $82, $8d, $a3, $b0
	db $4f, $55, $a8, $8b, $3e, $46, $8b, $35, $9e, $78
	db $d3, $c4

.want_to_teleport_text
	db TX_COMPRESSED, $6e, $16, $bb, $98, $08, $2d, $4e, $8d, $48, $e5
	db $85, $eb, $3e, $98, $80, $ae, $e5
	db $85, $56, $3e, $b4, $b3, $ec, $6d, $1d, $82, $a5
	db $a6, $80

SoutherlyCityNPC1:
	db TX_COMPRESSED, $29, $27, $34, $6b, $10, $15, $dc, $4e, $a2
	db $6b, $c4, $3a, $a0, $8e, $e9, $0f

	db $88, $02, $92, $70, $64, $b3, $58, $c2, $b4, $4d, $26
	db $5e, $3a, $76, $cd, $63, $0a, $d1, $35, $67, $37, $bd
	db $54, $0e, $57, $c2, $49, $69, $37, $cf, $3c
	db $69, $a0

SoutherlyCityNPC2:
	db TX_COMPRESSED, $17, $03, $1a, $c1, $4b, $1b, $e7, $01, $05
	db $a7, $ad, $23, $22, $94, $04, $16, $98
	db $0c, $06, $03, $e5, $a5, $9e, $60, $5a, $b9, $69
	db $37, $91, $7a, $f8, $c9, $b1, $94, $ef, $7a, $64, $e4
	db $fe, $02, $d2, $60, $a5, $a5, $61, $aa, $02, $0b, $53
	db $5e, $65, $a5, $83, $1a, $bd, $ef, $78

	db $80, $74, $c0, $71, $59, $99, $25, $af, $46, $41, $93
	db $97, $ac, $31, $59, $ed, $c1, $dc, $c0, $2b
	db $54, $08, $f5, $68
	db $e3, $4d

SoutherlyCityNPC3:
	db TX_COMPRESSED, $75, $78, $a0, $b3, $68, $76, $72, $c2, $d7, $29
	db $7b, $93, $bb, $19, $39, $9a, $ca, $c2, $84
	db $2a, $b0, $c0, $7e, $f6, $9c, $0f

	db $80, $3a, $2c, $89, $08, $81, $93, $99, $69, $db
	db $7a, $d2, $60, $9c, $3d, $86, $0c, $64, $b6, $b7, $bd
	db $04, $a9, $5b, $43, $ee, $66, $c5, $6b, $1e, $79, $3f
	db $53, $40

SoutherlyCityTyphlosion:
	faceplayer
	opentext
	writetext .text
	cry TYPHLOSION
	endtext

.text
	db TX_COMPRESSED, $28, $10, $84, $f4, $28, $18, $48, $e3, $1c, $95, $6a, $f8
	db $d3, $40

SoutherlyCityTyphlosionTrainer:
	db TX_COMPRESSED, $15, $05, $0a, $04, $21, $3d, $0a, $06, $12, $41
	db $a1, $e7, $c1, $45, $66, $8b, $98, $2c, $66, $4c, $f1

	db $00, $ea, $2c, $df, $37, $d5, $9a, $e5, $49, $32
	db $3c, $93, $95, $6a, $26, $c6, $5a, $b3
	db $55, $d1, $dd, $f4, $e3, $68, $22, $67, $45, $9b, $43, $ef
	db $1a, $68

SoutherlyCity_MapEventHeader:: db 0, 0

.Warps
	db 7
	warp_def $7, $6, 1, SOUTHERLY_HOUSE2
	warp_def $7, $b, 1, SOUTHERLY_HOUSE
	warp_def $7, $16, 1, SOUTHERLY_BATTLE_HOUSE
	warp_def $11, $6, 1, SOUTHERLY_MART
	warp_def $11, $a, 1, SOUTHERLY_GYM
	warp_def $1b, $8, 1, SOUTHERLY_AIRPORT
	warp_def $f, $14, 1, SOUTHERLY_POKECENTER

.CoordEvents
	db 2
	xy_trigger 0, $13, $4, $0, SoutherlyCityEspoForestBlock, $0, $0
	xy_trigger 0, $4, $10, $0, SoutherlyCityBridgeBlock, $0, $0

.BGEvents
	db 6
	signpost 17, 14, SIGNPOST_LOAD, SoutherlyCityGymSign
	signpost 7, 18, SIGNPOST_LOAD, SoutherlyCityBattleBuildingSign
	signpost 7, 14, SIGNPOST_LOAD, SoutherlyCityCitySign
	signpost 16, 22, SIGNPOST_JUMPSTD, pokecentersign
	signpost 26, 12, SIGNPOST_LOAD, SoutherlyCityAirportSign
	signpost 16, 18, SIGNPOST_READ, SoutherlyCityTeleporter

.ObjectEvents
	db 8
	person_event SPRITE_LASS, 26, 15, SPRITEMOVEDATA_00, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_TEXTFP, 0, SoutherlyCityNPC1, -1
	person_event SPRITE_BLACK_BELT, 8, 24, SPRITEMOVEDATA_00, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_TEXTFP, 0, SoutherlyCityNPC2, -1
	person_event SPRITE_FISHER, 28, 23, SPRITEMOVEDATA_00, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_TEXTFP, 0, SoutherlyCityNPC3, -1
	person_event SPRITE_COOLTRAINER_F, 9, 7, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_OW_BROWN, PERSONTYPE_TEXTFP, 0, SoutherlyCityTyphlosionTrainer, -1
	person_event SPRITE_TYPHLOSION, 9, 8, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, SoutherlyCityTyphlosion, -1
	person_event SPRITE_OFFICER, 33, 6, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_OW_GREEN, PERSONTYPE_TEXTFP, 0, SoutherlyCityRunwayGuard, -1
	person_event SPRITE_OFFICER, 18, 4, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, SoutherlyCityEspoForestGuard, -1
	person_event SPRITE_OFFICER, 4, 17, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, SoutherlyCityBridgeGuard, -1

