LaurelForestCharizardCave_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

LaurelForestCharizardCaveButton1:
	checkevent EVENT_0
	sif true
		jumptext LaurelForestCharizardCave_Text_AlreadyPushed
	opentext
	writetext LaurelForestCharizardCave_Text_PushedButton
	waitbutton
	closetext
	playsound SFX_STRENGTH
	changemap BANK(LaurelForestCharizardCaveButton1_BlockData), LaurelForestCharizardCaveButton1_BlockData
	reloadmappart
	waitsfx
	setevent EVENT_0
	end

LaurelForestCharizardCaveButton2:
	checkevent EVENT_0
	sif false
		jumptext LaurelForestCharizardCave_Text_AlreadyPushed
	opentext
	writetext LaurelForestCharizardCave_Text_PushedButton
	waitbutton
	closetext
	playsound SFX_STRENGTH
	changemap BANK(LaurelForestCharizardCaveButton2_BlockData), LaurelForestCharizardCaveButton2_BlockData
	reloadmappart
	waitsfx
	clearevent EVENT_0
	end

LaurelForestCharizardCaveCharmander:
	faceplayer
	cry CHARMANDER
	waitsfx
	jumptext .text

.text
	ctxt "That was close,"
	line "thank goodness!"

	para "I was saved!" 
	done

LaurelForestCharizardCaveMom:
	faceplayer
	cry CHARIZARD
	waitsfx
	jumptext LaurelForestCharizardCaveMom_Text

LaurelForestCharizardCaveDad:
	faceplayer
	cry CHARIZARD
	waitsfx
	faceplayer
	checkevent EVENT_POKEONLY_CHARIZARD_MOVED_BOULDER
	sif true
		jumptext LaurelForestCharizardCaveDad_Text_AfterMovedBoulder
	opentext
	writetext LaurelForestCharizardCaveDad_Text_FirstInteraction
	waitbutton
	closetext
	applymovement 4, .move_dad_to_boulder
	applymovement 8, .move_boulder
	disappear 8
	playsound SFX_STRENGTH
	earthquake 80
	applymovement 4, .move_dad_back
	setevent EVENT_POKEONLY_CHARIZARD_MOVED_BOULDER
	closetext
	end

.move_dad_to_boulder
	jump_step_right
	step_up
	step_up
	step_left
	step_left
	step_left
	step_left
	step_up
	turn_head_left
	step_end

.move_boulder
	step_right
	step_up
	fast_jump_step_left
	step_38
	step_end

.move_dad_back
	step_right
	step_right
	step_right
	step_right
	step_down
	step_down
	step_down
	jump_step_left
	turn_head_down
	step_end

LaurelForestCharizardCave_Item_CuroShard:
	db CURO_SHARD, 1

LaurelForestCharizardCaveNPC5_Item_MiningPick:
	db MINING_PICK, 3

LaurelForestCharizardCaveNPC6:
	jumpstd smashrock

LaurelForestCharizardCaveBoulder:
	jumptext .text

.text
	ctxt "A heavy boulder"
	line "blocks the way."
	done

LaurelForestCharizardCave_Text_PushedButton:
	ctxt "You pushed the"
	line "button."
	done

LaurelForestCharizardCaveMom_Text:
	ctxt "I often question"
	line "how my partner"
	para "wants to raise our"
	line "child<...>"

	para "but you must"
	line "understand that"
	para "this is tradition"
	line "in his family."
	done

LaurelForestCharizardCaveDad_Text_FirstInteraction:
	ctxt "I'm disappointed"
	line "in my son<...>"

	para "He needed outside"
	line "help to get home,"

	para "rather than just"
	line "simply swimming"
	cont "across the water."

	para "I guess he can't"
	line "swim<...>"

	para "and it's good that"
	line "we found out."

	para "<...>"

	para "What do you mean,"
	line "you're looking"
	cont "for Curo Shards?"

	para "Some scientists"
	line "chained us down"
	para "recently just to"
	line "dig out a tunnel."

	para "Of course, I was"
	line "able to break out"
	para "alone and free my"
	line "partner just fine."

	para "I was hoping my"
	line "child would manage"
	para "to free himself,"
	line "and show his inner"
	cont "strength, but<...>"

	para "Anyway, putting"
	line "parenting aside<...>"

	para "I remember one of"
	line "them going on and"
	para "on about how he"
	line "lost some shard,"

	para "so maybe it's in"
	line "that tunnel?"

	para "I blocked it off"
	line "to keep my son"
	cont "from exploring."

	para "If you want to go"
	line "down there and"
	para "play with<...>"
	line "whatever those"
	para "human scums made,"
	line "be my guest."

	para "I'll clear it for"
	line "you, because only"
	para "someone as strong"
	line "as I can."
	done

LaurelForestCharizardCave_Text_AlreadyPushed:
	ctxt "The button has al-"
	line "ready been pushed."
	done

LaurelForestCharizardCaveDad_Text_AfterMovedBoulder:
	ctxt "These humans may"
	line "be annoying and"
	cont "pathetic, but<...>"

	para "They are pushing"
	line "my offspring to"
	para "the limit, much"
	line "further than I"
	para "was pushed by my"
	line "own father."

	para "We will keep"
	line "the honorable"
	para "bloodline of our"
	line "family going"
	cont "forever."
	done

LaurelForestCharizardCaveButton1_BlockData: INCBIN "maps/blk/LaurelForestCharizardCaveButton1_BlockData.blk.lz"

LaurelForestCharizardCaveButton2_BlockData: INCBIN "maps/blk/LaurelForestCharizardCaveButton2_BlockData.blk.lz"

LaurelForestCharizardCave_MapEventHeader:: db 0, 0

.Warps: db 7
	warp_def 17, 9, 4, LAUREL_FOREST_POKEMON_ONLY
	warp_def 5, 3, 7, LAUREL_FOREST_CHARIZARD_CAVE
	warp_def 3, 7, 4, LAUREL_FOREST_CHARIZARD_CAVE
	warp_def 3, 37, 3, LAUREL_FOREST_CHARIZARD_CAVE
	warp_def 23, 22, 6, LAUREL_FOREST_CHARIZARD_CAVE
	warp_def 14, 10, 5, LAUREL_FOREST_CHARIZARD_CAVE
	warp_def 27, 5, 2, LAUREL_FOREST_CHARIZARD_CAVE

.CoordEvents: db 0

.BGEvents: db 5
	signpost 1, 27, SIGNPOST_READ, LaurelForestCharizardCaveButton1
	signpost 9, 37, SIGNPOST_READ, LaurelForestCharizardCaveButton2
	signpost 15, 37, SIGNPOST_READ, LaurelForestCharizardCaveButton1
	signpost 21, 27, SIGNPOST_READ, LaurelForestCharizardCaveButton1
	signpost 21, 23, SIGNPOST_READ, LaurelForestCharizardCaveButton2

.ObjectEvents: db 7
	person_event SPRITE_CHARMANDER, 14, 14, SPRITEMOVEDATA_WANDER, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, LaurelForestCharizardCaveCharmander, -1
	person_event SPRITE_DRAGON, 6, 7, SPRITEMOVEDATA_WANDER, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, LaurelForestCharizardCaveMom, -1
	person_event SPRITE_DRAGON, 5, 12, SPRITEMOVEDATA_WANDER, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, LaurelForestCharizardCaveDad, -1
	person_event SPRITE_POKE_BALL, 20, 34, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_PURPLE, PERSONTYPE_ITEMBALL, 0, LaurelForestCharizardCave_Item_CuroShard, EVENT_LAUREL_POKEMONONLY_CUROSHARD_CHARIZARD
	person_event SPRITE_POKE_BALL, 24, 4, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, LaurelForestCharizardCaveNPC5_Item_MiningPick, EVENT_LAUREL_POKEMONONLY_MININGPICKS
	person_event SPRITE_ROCK, 8, 3, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_BROWN, PERSONTYPE_SCRIPT, 0, LaurelForestCharizardCaveNPC6, -1
	person_event SPRITE_BOULDER, 2, 9, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_BROWN, PERSONTYPE_SCRIPT, 0, LaurelForestCharizardCaveBoulder, EVENT_POKEONLY_CHARIZARD_MOVED_BOULDER
