CaperCity_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 1

	dbw 5, .set_fly_flag

.set_fly_flag
	setflag ENGINE_FLYPOINT_CAPER_CITY
	return

CaperCityCitySign:
	db TX_COMPRESSED, $29, $27, $2c, $35, $12, $5a, $76, $f1
	db $53, $c2, $de, $d5, $a0, $91, $1a, $26, $4d, $73
	db $69, $e1, $54, $91, $d9, $c5, $7d, $d2, $29, $1d
	db $d3, $40

CaperCityLabSign:
	db TX_COMPRESSED, $e1, $58, $70, $f4, $75, $d5, $2c, $53, $1f, $55
	db $d3, $40

CaperCityNPC1:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $e1, $58, $70, $f4, $75, $d5, $29, $d1, $83, $1a
	db $1e, $19, $25, $a4, $68, $96, $1a, $89

	db $c4, $01, $49, $db, $8f, $e9, $20, $d1
	db $35, $e0, $72, $be, $12, $4e, $4c, $83, $69, $1c

	db $40, $03, $c3, $70, $24, $e8, $28, $34, $44, $9c
	db $d7, $96, $60, $c6, $b3, $cc, $07, $2b, $e1
	db $22, $a1, $0b, $0e, $06, $84, $05, $74, $f0

	db $00, $a7, $81, $27, $8a, $6f, $50, $19
	db $af, $61, $af, $9e, $62, $46, $8b, $0a, $c7, $a4
	db $f5, $34

CaperCityNPC2:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $75, $32, $12, $53, $22, $cd, $90, $f2, $41, $89, $b3
	db $78, $10, $5a, $9b, $73, $7b, $da, $78

	db $00, $28, $0f, $e5, $49, $35, $9c, $c8
	db $f2, $f0, $20, $b5, $19, $0b, $e7, $30, $58, $5f, $a5

	db $01, $4f

	db $00, $01, $57, $d2, $fb, $f4, $f0

	db $00, $62, $d2, $7d, $1d, $30, $1c, $21, $83, $1a
	db $de, $49, $ea, $f3, $03, $84, $1d
	db $fa, $9a

CaperCityRoute70Block:
	checkevent EVENT_CAPER_SHOVELING_SNOW
	sif true
		end
	checkcode VAR_XCOORD
	sif =, 12, then
		spriteface 0, RIGHT
		spriteface 4, LEFT
	selse
		faceplayer
	sendif
	opentext 	
	writetext .text
	closetext
	checkcode VAR_XCOORD
	sif =, 12
		applymovement 0, .walk_down
	end

.walk_down
	step_down
	step_end

.text
	db TX_COMPRESSED, $74, $59, $10, $90, $83, $1f, $46, $4e
	db $5e, $41, $03, $54, $58, $f9, $4d, $c2, $06, $af
	
	db $00, $6e, $93, $24, $74, $59, $32, $12, $1f, $e0
	db $ed, $e4, $24, $2d, $77, $31, $59, $c4, $6e, $07, $2c
	db $2a, $b9, $0c, $11, $a8, $bf
	db $53, $c4

CaperCityRoute71Block:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $6f, $b6, $ca, $60, $5a, $be

	db $20, $0a, $48, $d1, $06, $88, $b3, $de, $f4
	db $13, $d6, $91, $92, $0d, $93

	db $e2, $01, $d1, $64, $b5, $82, $19, $39, $84, $0d, $cb
	db $0b, $cf, $84, $18, $e5, $86, $22, $c2, $22, $0e
	db $d5, $60, $b0, $bf, $19, $5e, $b2, $a4, $32, $73
	db $c6, $9a

CaperCityMartSignpost:
	jumpstd martsign

CaperCityPokecenterSignpost:
	jumpstd pokecentersign

CaperCity_MapEventHeader:: db 0, 0

.Warps: db 5
	warp_def 9, 33, 1, CAPER_MART
	warp_def 7, 5, 1, ACQUA_EXITCHAMBER
	warp_def 9, 7, 1, CAPER_HOUSE
	warp_def 9, 17, 1, CAPER_POKECENTER
	warp_def 5, 26, 1, ILKS_LAB

.CoordEvents: db 1
	xy_trigger 0, 8, 12, $0, CaperCityRoute70Block, $0, $0

.BGEvents: db 4
	signpost 5, 10, SIGNPOST_LOAD, CaperCityCitySign
	signpost 7, 22, SIGNPOST_LOAD, CaperCityLabSign
	signpost 9, 18, SIGNPOST_READ, CaperCityPokecenterSignpost
	signpost 9, 34, SIGNPOST_READ, CaperCityMartSignpost

.ObjectEvents: db 4
	person_event SPRITE_YOUNGSTER, 3, 11, SPRITEMOVEDATA_WANDER, 2, 2, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, CaperCityNPC1, -1
	person_event SPRITE_BUG_CATCHER, 12, 9, SPRITEMOVEDATA_WANDER, 2, 2, -1, -1, PAL_OW_YELLOW, PERSONTYPE_SCRIPT, 0, CaperCityNPC2, -1
	person_event SPRITE_TEACHER, 8, 13, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, 8, PERSONTYPE_SCRIPT, 0, CaperCityRoute70Block, EVENT_CAPER_SHOVELING_SNOW
	person_event SPRITE_YOUNGSTER, 15, 31, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, CaperCityRoute71Block, EVENT_MET_ILK

