JaeruCity_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 1

	dbw 5, .set_fly_flag

.set_fly_flag
	setflag ENGINE_FLYPOINT_JAERU_CITY
	return

JaeruCityHiddenItem:
	dw EVENT_JAERU_CITY_HIDDENITEM_GOLD_TOKEN
	db GOLD_TOKEN

JaeruCityPokecenterSign:
	jumpstd pokecentersign

JaeruCityMartSign:
	jumpstd martsign

JaeruCityCitySign:
	ctxt "The impossible to"
	next "pronounce city."
	done

JaeruCityGymSign:
	ctxt "#mon Gym"
	next "Leader: Sparky"
	nl ""
	next "The Trainer that"
	next "shocks everybody!"
	done

JaeruCityNPC1:
	jumptextfaceplayer .text

.text
	ctxt "Sparky lost his"
	line "edge, see for"
	cont "yourself."
	done

JaeruCityNPC2:
	jumptextfaceplayer .text

.text
	ctxt "They sell some of"
	line "the best beer"
	cont "right here!"
	done

JaeruCityNPC3:
	jumptextfaceplayer .text

.text
	ctxt "If you go north,"
	line "you'll end up at"
	cont "the Rijon League."
	done

JaeruCity_MapEventHeader ;filler
	db 0, 0

;warps
	db 6
	warp_def $5, $20, 4, JAERU_GATE
	warp_def $19, $4, 4, ROUTE_60_GATE
	warp_def $1f, $1e, 1, JAERU_GYM
	warp_def $1b, $f, 1, JAERU_POKECENTER
	warp_def $1b, $15, 1, JAERU_MART
	warp_def $1d, $7, 1, JAERU_GUARD_SUPPLIER

	;xy triggers
	db 0

	;signposts
	db 5
	signpost 27, 16, SIGNPOST_READ, JaeruCityPokecenterSign
	signpost 27, 22, SIGNPOST_READ, JaeruCityMartSign
	signpost 23, 27, SIGNPOST_LOAD, JaeruCityCitySign
	signpost 31, 27, SIGNPOST_LOAD, JaeruCityGymSign
	signpost 16, 15, SIGNPOST_ITEM, JaeruCityHiddenItem

	;people-events
	db 3
	person_event SPRITE_YOUNGSTER, 26, 28, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_OW_YELLOW, PERSONTYPE_SCRIPT, 0, JaeruCityNPC1, -1
	person_event SPRITE_PHARMACIST, 30, 21, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, JaeruCityNPC2, -1
	person_event SPRITE_LASS, 25, 10, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, JaeruCityNPC3, -1
