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_SitrusBerry:
	db SITRUS_BERRY, 3

CastroForest_SmokeBall:
	db SMOKE_BALL, 1

CastroForestFruitTree:
	fruittree 8

CastroForest_Trainer_1:
	trainer EVENT_CASTRO_FOREST_TRAINER_1, SAGE, 4, .before_battle_text, .defeated_text, $0000, .script

.script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	ctxt "A fool woke up the"
	line "mighty Varaneous!"
	
	para "Wait, you saw the"
	line "revival?"
	done

.defeated_text
	ctxt "At least we're"
	line "safe here."
	done

.after_battle_text
	ctxt "Many of us have"
	line "fled Naljo to"
	cont "ensure our safety."
	done

CastroForest_Trainer_2:
	trainer EVENT_CASTRO_FOREST_TRAINER_2, SAGE, 5, .before_battle_text, .defeated_text, $0000, .script

.script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	ctxt "I'm a Naljo"
	line "descendent."

	para "I felt safe until"
	line "I learned that"
	para "Varaneous attacked"
	line "another Naljo"
	cont "descendent."
	done

.defeated_text
	ctxt "How droll."
	done

.after_battle_text
	ctxt "I was raised to"
	line "believe that the"
	para "guardians were"
	line "reasonable."
	
	para "If they are truly"
	line "savages, then I"
	para "never want to"
	line "return to Naljo."
	done

CastroForestRoadBlockNPC:
	ctxt "At the time, this"
	line "is a sacred area."

	para "You are not"
	line "permitted to"
	para "enter at the"
	line "moment."
	done

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_TRAINER, 2, CastroForest_Trainer_1, -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_SAGE, 7, 10, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 8 + PAL_OW_BLUE, PERSONTYPE_TRAINER, 3, CastroForest_Trainer_2, -1
	person_event SPRITE_POKE_BALL, 28, 27, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, CastroForest_SitrusBerry, EVENT_CASTRO_FOREST_ITEM_1
	person_event SPRITE_POKE_BALL, 23, 17, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, CastroForest_SmokeBall, EVENT_CASTRO_FOREST_ITEM_2
	person_event SPRITE_FRUIT_TREE, 19, 34, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, CastroForestFruitTree, -1
