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:
	ctxt "#mon Gym"
	next "Leader: Ernest"
	nl   ""
	next "The guy with good"
	next "firepower!"
	done

SoutherlyCityBattleBuildingSign:
	ctxt "Battle Building"
	nl   ""
	next "Put your abilit-"
	next "ies to the test!"
	done

SoutherlyCityCitySign:
	ctxt "Gateway to"
	next "Paradise!"
	done

SoutherlyCityPokecenterSign:
	jumpstd pokecentersign

SoutherlyCityAirportSign:
	ctxt "Airport"
	done

SoutherlyCityEspoForestGuard:
	jumptextfaceplayer SoutherlyCityEspoForestBlock_Text

SoutherlyCityEspoForestBlock:
	faceperson PLAYER, UP
	faceplayer
	opentext
	writetext SoutherlyCityEspoForestBlock_Text
	waitbutton
	closetext
	applymovement 0, .move_away
	end

.move_away
	step_right
	step_end

SoutherlyCityEspoForestBlock_Text:
	ctxt "Some weird"
	line "happenings have"

	para "been going on in"
	line "Espo Forest."

	para "I've been told to"
	line "guard the area"
	cont "for now."
	done

SoutherlyCityBridgeGuard:
	jumptextfaceplayer SoutherlyCityBridgeBlock_Text

SoutherlyCityBridgeBlock:
	faceperson PLAYER, LEFT
	opentext
	writetext SoutherlyCityBridgeBlock_Text
	waitbutton
	closetext
	applymovement 0, .move_away
	end

.move_away
	step_down
	step_end

SoutherlyCityBridgeBlock_Text:
	ctxt "The bridge is"
	line "under construction"
	cont "right now."
	done
	
SoutherlyCityRunwayGuard:
	jumptextfaceplayer .text

.text
	ctxt "This is the runway"
	line "for our airport."
	
	para "I can't let you"
	line "pass unless you"
	para "check in with the"
	line "people inside."
	done

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
	ctxt "Southerly City"
	line "was registered!"
	sdone

.want_to_teleport_text
	ctxt "Would you like to"
	line "teleport to"
	cont "Laurel City?"
	done

SoutherlyCityNPC1:
	jumptextfaceplayer .text

.text
	ctxt "The airport has a"
	line "new plane!"

	para "The interiors and"
	line "exteriors are all"
	cont "#mon themed!"
	done

SoutherlyCityNPC2:
	jumptextfaceplayer .text

.text
	ctxt "Every time you"
	line "think you figured"

	para "out the stamina"
	line "challenge, they"

	para "throw you a"
	line "curveball!"

	para "I've been training"
	line "to beat it for"
	cont "years!"
	done

SoutherlyCityNPC3:
	jumptextfaceplayer .text

.text
	ctxt "It's quite tough"
	line "getting across"
	cont "to Naljo."

	para "I'm hoping that"
	line "they'll eventually"
	cont "build a bridge."
	done

SoutherlyCityTyphlosion:
	faceplayer
	opentext
	writetext .text
	cry TYPHLOSION
	waitsfx
	endtext

.text
	ctxt "Typhlosion: Rwar!"
	done

SoutherlyCityTyphlosionTrainer:
	jumptextfaceplayer .text

.text
	ctxt "My Typhlosion is"
	line "my best friend!"

	para "I remember when"
	line "he was a cute"
	cont "little Cyndaquil!"
	done

SoutherlyCity_MapEventHeader ;filler
	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

	;xy triggers
	db 2
	xy_trigger 0, $13, $4, $0, SoutherlyCityEspoForestBlock, $0, $0
	xy_trigger 0, $4, $10, $0, SoutherlyCityBridgeBlock, $0, $0

	;signposts
	db 6
	signpost 17, 14, SIGNPOST_LOAD, SoutherlyCityGymSign
	signpost 7, 18, SIGNPOST_LOAD, SoutherlyCityBattleBuildingSign
	signpost 7, 14, SIGNPOST_LOAD, SoutherlyCityCitySign
	signpost 16, 22, SIGNPOST_READ, SoutherlyCityPokecenterSign
	signpost 26, 12, SIGNPOST_LOAD, SoutherlyCityAirportSign
	signpost 16, 18, SIGNPOST_READ, SoutherlyCityTeleporter

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