CastroForest_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

CastroForest_GoldToken:
	dw EVENT_CASTRO_FOREST_HIDDENITEM_GOLD_TOKEN
	db GOLD_TOKEN

CastroForest_EmeraldEgg:
	dw EVENT_CASTRO_FOREST_HIDDENITEM_EMERALD_EGG
	db EMERALD_EGG

CastroForest_Trainer_1:
	trainer EVENT_CASTRO_FOREST_TRAINER_1, SAGE, 4, .before_battle_text, .defeated_text

	db TX_COMPRESSED, $15, $d2, $02, $81, $c2, $34, $88, $9d, $06
	db $37, $b0, $e9, $e6, $03, $f7, $b4, $e0, $65
	db $85, $51, $91, $0d, $2c, $e0, $5a, $5c, $46, $e0, $76, $0b
	db $d4, $d0

.before_battle_text
	db TX_COMPRESSED, $ae, $60, $10, $f6, $54, $15, $23, $8d, $08, $96, $93
	db $79, $f1, $f2, $9b, $05, $01, $c6, $af, $48, $61, $69, $1c
	
	db $40, $37, $d1, $df, $e0, $20, $b5, $11, $b5, $4b, $49
	db $bc, $b3, $06, $18, $36, $f6
	db $96, $9a

.defeated_text
	db TX_COMPRESSED, $ae, $e7, $4f, $51, $72, $a3, $2e
	db $37, $91, $b8, $1c, $49, $ac
	db $fd, $4d

CastroForest_Trainer_2:
	trainer EVENT_CASTRO_FOREST_TRAINER_2, SAGE, 5, .before_battle_text, .defeated_text

	db TX_COMPRESSED, $75, $2a, $d4, $45, $e8, $d0, $79, $96
	db $17, $95, $9f, $46, $60, $c7, $2d, $3b, $72, $d2
	db $60, $39, $6b, $57, $91, $e9, $11, $2a, $35
	db $9b, $cb, $3d, $40, $49, $aa, $fa, $7e
	
	db $00, $eb, $09, $69, $30, $53, $56, $72, $d6, $d7, $41
	db $3c, $8d, $06, $de, $4d, $1f, $96, $93, $24
	db $74, $00, $86, $0c, $6b, $95, $69, $2e, $58
	db $5e, $59, $db, $4b, $24, $b0, $c0, $7e, $f6, $9c, $0f
	db $a9, $a0

.before_battle_text
	db TX_COMPRESSED, $74, $59, $36, $03, $f7, $b4, $e0
	db $5e, $c9, $a1, $93, $26, $4c, $97

	db $e0, $0e, $a6, $07, $db, $88, $dc, $0e, $34, $4b, $1f
	db $5e, $75, $3a, $7a, $b2, $1e, $65, $a7
	db $6c, $00, $38, $d5, $e9, $0c, $2d, $22, $6d, $de, $b2, $a4, $79
	db $7b, $48, $1b, $49, $ae, $03, $f7, $b4, $e0
	db $55, $64, $d0, $c9, $93, $26, $4b
	db $f5, $34

.defeated_text
	db TX_COMPRESSED, $62, $1a, $a6, $56, $1e, $f7
	db $d4, $d0

CastroForestRoadBlockNPC:
	db TX_COMPRESSED, $ae, $e5, $a4, $e5, $8d, $f3, $fc, $b4, $8d
	db $0f, $0d, $13, $62, $35, $95, $9e, $66, $ac, $f7

	db $c0, $1c, $a1, $6a, $6a, $ce, $10
	db $36, $f0, $83, $5b, $e3, $bb, $3c, $cb
	db $08, $03, $25, $9a, $e6, $dc, $b4
	db $9b, $cf, $85, $f3, $25
	db $fa, $9a

CastroForest_MapEventHeader:: db 0, 0

.Warps
	db 6
	warp_def $1d, $23, 1, CASTRO_GATE
	warp_def $1d, $22, 1, CASTRO_GATE
	warp_def $b, $8, 2, ROUTE_62_GATE
	warp_def $1d, $c, 1, CASTRO_FOREST_GATE_SOUTH
	warp_def $1d, $d, 1, CASTRO_FOREST_GATE_SOUTH
	warp_def $a, $8, 2, ROUTE_62_GATE

.CoordEvents
	db 0

.BGEvents
	db 2
	signpost 2, 5, SIGNPOST_ITEM, CastroForest_GoldToken
	signpost 27, 24, SIGNPOST_ITEM, CastroForest_EmeraldEgg

.ObjectEvents
	db 6
	person_event SPRITE_SAGE, 9, 25, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 8 + PAL_OW_BLUE, PERSONTYPE_GENERICTRAINER, 2, CastroForest_Trainer_1, -1
	person_event SPRITE_SAGE, 7, 10, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 8 + PAL_OW_BLUE, PERSONTYPE_GENERICTRAINER, 3, CastroForest_Trainer_2, -1
	person_event SPRITE_SAGE, 22, 13, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 8 + PAL_OW_BLUE, PERSONTYPE_TEXTFP, 2, CastroForestRoadBlockNPC, EVENT_RIJON_SECOND_PART
	person_event SPRITE_POKE_BALL, 28, 27, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 3, SITRUS_BERRY, EVENT_CASTRO_FOREST_ITEM_SITRUS_BERRIES
	person_event SPRITE_POKE_BALL, 23, 17, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 1, SMOKE_BALL, EVENT_CASTRO_FOREST_ITEM_SMOKE_BALL
	person_event SPRITE_FRUIT_TREE, 19, 34, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_FRUITTREE, 0, 8, -1

