CastroValley_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 1

	dbw 5, .set_fly_flag

.set_fly_flag:
	setflag ENGINE_FLYPOINT_CASTRO_VALLEY
	return

CastroValleyHiddenItem_GoldToken:
	dw EVENT_CASTRO_VALLEY_HIDDENITEM_GOLD_TOKEN
	db GOLD_TOKEN

CastroValleyTownSign:
	db TX_COMPRESSED, $29, $27, $19, $0b, $4b, $be, $82
	db $a7, $85, $d1, $dd, $f4, $e0, $80, $ae, $e5, $86, $a2
	db $53, $40

CastroValleyForestSign:
	db TX_COMPRESSED, $6d, $d4, $5a, $c3, $14, $c2, $b3, $45
	db $d3, $c2, $17, $12, $d7, $a4, $64
	db $e9, $a0

CastroValleyGymSign:
	db TX_COMPRESSED, $07, $2b, $e1, $24, $61, $02
	db $7e, $9e, $16, $39, $ee, $4d, $6e, $30, $4c, $06, $9c
	db $18, $9a, $c0
	db $e9, $e1, $14, $93, $96, $16, $b9, $4c, $d2
	db $66, $9e, $12, $b5, $b5, $67, $0a, $5e, $8c, $86, $be
	db $34, $d0

CastroValleyUnderConstructionSign:
	db TX_COMPRESSED, $73, $93, $26
	db $ba, $78, $4c, $84, $88, $b5, $b4, $cd, $8c, $24
	db $a6, $80

CastroValleyNPC1:
	db TX_COMPRESSED, $75, $19, $d6, $b9, $4d, $cd
	db $79, $c8, $7d, $1b, $3a, $4b, $4c, $b4, $ed

	db $80, $4e, $e6, $6c, $c0, $28, $40
	db $fa, $f6, $dd, $eb, $29, $3c, $cb, $0c, $1d, $f1

	db $00, $dd, $3b, $73, $ad, $32, $a5
	db $c6, $9a

CastroValleyNPC2:
	db TX_COMPRESSED, $29, $26, $b3, $c5, $36, $32, $16, $84, $74
	db $de, $0e, $11, $1b, $c9, $a2, $0c, $92, $d2
	db $6a, $9b, $75, $16, $b0, $c5, $30, $ac, $d1, $7e

	db $00, $ea, $54, $12, $64, $d7, $2a, $4e, $dc, $b4, $98
	db $27, $b5, $67, $32, $11, $93, $9a
	db $5a, $68

CastroValleyNPC3:
	db TX_COMPRESSED, $13, $01, $a7, $07, $3a, $10, $63, $44, $48
	db $d0, $f3, $fa, $bb, $1e, $f6, $6a, $ed, $1c

	db $40, $31, $3c, $53, $5f, $d1, $36, $32, $73
	db $c6, $9a

CastroValleyNPC4:
	db TX_COMPRESSED, $75, $12, $7a, $bc, $cb, $49, $82, $2e
	db $37, $99, $09, $01, $8d, $76, $32, $73, $2d

	db $26, $01, $fd, $22, $06, $12, $41, $92, $c3, $34
	db $8f, $68, $8d, $5d, $be, $64, $b8, $c8, $5f, $11, $d3, $a7

	db $7c, $01, $d4, $48, $44, $1c, $b4, $9c, $59, $92, $f1
	db $3c, $ca, $4f, $44
	db $7a, $9a

CastroValleyNPC5:
	db TX_COMPRESSED, $29, $23, $44, $1a, $09, $4c, $8f, $b4, $ca
	db $5e, $0e, $13, $60, $36, $f7, $a6, $0b
	db $d4, $d0

CastroValley_MapEventHeader::	db 0, 0

.Warps
	db 9
	warp_def $1b, $16, 1, CASTRO_GYM
	warp_def $1b, $1c, 1, CASTRO_MANSION
	warp_def $5, $1d, 1, CASTRO_MART
	warp_def $1d, $4, 2, CASTRO_GATE
	warp_def $f, $15, 1, CASTRO_POKECENTER
	warp_def $1f, $12, 4, CASTRO_DOCK_PATH
	warp_def $1f, $13, 5, CASTRO_DOCK_PATH
	warp_def $f, $b, 1, CASTRO_SUPER_ROD
	warp_def $9, $7, 1, CASTRO_TYROGUE_TRADE

.CoordEvents
	db 0

.BGEvents
	db 7
	signpost 7, 21, SIGNPOST_LOAD, CastroValleyTownSign
	signpost 15, 22, SIGNPOST_JUMPSTD, pokecentersign
	signpost 31, 5, SIGNPOST_LOAD, CastroValleyForestSign
	signpost 29, 23, SIGNPOST_LOAD, CastroValleyGymSign
	signpost 5, 30, SIGNPOST_JUMPSTD, martsign
	signpost 29, 31, SIGNPOST_LOAD, CastroValleyUnderConstructionSign
	signpost 17, 26, SIGNPOST_ITEM, CastroValleyHiddenItem_GoldToken

.ObjectEvents
	db 5
	person_event SPRITE_FISHING_GURU, 19, 23, SPRITEMOVEDATA_00, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, CastroValleyNPC1, -1
	person_event SPRITE_SAGE, 28, 8, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, CastroValleyNPC2, -1
	person_event SPRITE_YOUNGSTER, 8, 20, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, CastroValleyNPC3, -1
	person_event SPRITE_POKEFAN_F, 16, 15, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, CastroValleyNPC4, -1
	person_event SPRITE_ROCKER, 6, 8, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, CastroValleyNPC5, -1

