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
	db TX_COMPRESSED, $29, $3b, $72, $ad, $44, $67, $a1, $41
	db $fd, $eb, $4e, $91, $4a, $72, $10, $e4, $86, $84, $71

	db $00, $ea, $55, $a8, $88, $d0, $63, $cf
	db $1a, $68

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
	db TX_COMPRESSED, $ae, $24, $f4, $18, $14, $56, $16, $bb, $93
	db $5b, $ca, $fa, $16, $54, $91, $2d, $27, $2a, $d0, $5e
	db $a6, $80

LaurelForestCharizardCave_Text_PushedButton:
	db TX_COMPRESSED, $72, $85, $a8, $21, $a4, $24, $f3, $2d
	db $26, $f2, $b6, $ae, $c2, $4f
	db $53, $40

LaurelForestCharizardCaveMom_Text:
	db TX_COMPRESSED, $75, $03, $85, $99, $20, $b3, $68, $d1, $63, $09
	db $1e, $48, $6a, $8f, $82, $82, $35, $76, $43
	db $58, $0a, $b4, $96, $89, $61, $8b, $d1, $a0, $e0, $5a
	db $5b, $cc, $a4, $7d, $cd, $3c

	db $00, $15, $b5, $70, $10, $5a, $8f, $b4, $8b
	db $79, $a2, $64, $d6, $8b, $d2, $66, $5a, $76
	db $c0, $5a, $46, $88, $34, $4b, $5e, $e4, $76, $30
	db $91, $e1, $92, $24, $68, $98, $6b, $e3, $e8, $2f
	db $53, $40

LaurelForestCharizardCaveDad_Text_FirstInteraction:
	db TX_COMPRESSED, $74, $59, $32, $34, $68, $81, $01, $19, $2c
	db $f2, $f0, $c9, $1f, $05, $10, $12, $53

	db $c0, $01, $89, $c2, $19, $e4, $f3, $02, $d5, $a0, $79
	db $37, $92, $7d, $11, $2c, $33, $93, $b8, $90, $be, $7f

	db $00, $bd, $b4, $9a, $e5, $a7, $49, $29, $c6, $91
	db $6f, $20, $6f, $88, $e8, $28, $8a, $86, $fb, $e3, $27
	db $2a, $b5, $95, $85, $08, $96, $93, $95, $6d, $9a

	db $fc, $01, $d4, $e5, $a3, $42, $22, $4e, $33, $a4, $a6
	db $3c, $8a, $86, $fd, $3c

	db $00, $34, $99, $83, $bc, $53, $90, $87, $32, $d3
	db $b6, $f5, $47, $30, $0b, $44, $cc, $0b, $57

	db $e0, $14, $f0

	db $00, $6e, $9d, $b9, $90, $c0, $41, $6a, $3e, $7a, $4f
	db $bc, $08, $2d, $17, $1c, $e8, $42, $a4, $32
	db $72, $ab, $00, $ae, $36, $b4, $b0, $c5, $09, $d5, $e5, $14

	db $a0, $14, $05, $f3, $88, $64, $66, $4b, $1a, $2d
	db $0f, $32, $9d, $19, $0f, $31, $a4, $4c, $86, $a2
	db $00, $59, $b2, $64, $be, $82, $94, $e3, $48, $b9, $61
	db $7b, $23, $e6, $05, $ab, $9b, $2d, $a2, $10, $fb

	db $e0, $0e, $f0, $8c, $85, $a5, $a0, $ff, $1d, $4a, $b5
	db $0f, $6a, $be, $9c, $b0, $c5, $6b, $3d, $52, $81, $6a
	db $c0, $6f, $42, $43, $9a, $4c, $cc, $16, $67, $1f
	db $04, $f0, $8d, $5d, $90, $d7, $29, $c6, $91, $73, $01, $90

	db $fc, $01, $d4, $ab, $51, $12, $11, $03, $27, $31, $f0
	db $4f, $32, $91, $f7, $32, $a0, $b5, $dc, $c7, $f4, $9b, $c9
	db $80, $b0, $cc, $16, $67, $12, $37, $d0, $7d, $c3
	db $ef, $69, $33, $10, $90, $d5, $12, $34, $41, $90, $86
	db $b5, $48, $b5, $99, $39, $b4, $fe, $2b, $6a, $e9, $e0

	db $01, $59, $01, $55, $a0, $bf, $04, $35, $76, $32
	db $72, $f0, $8d, $59, $92, $c6, $4e, $66, $a0, $79, $3a, $78

	db $00, $3a, $8b, $37, $cd, $f5, $66, $b8, $12, $1c, $0e
	db $0f, $5a, $4d, $f9, $c8, $46, $4e, $60, $49, $34, $99
	db $00, $12, $4d, $56, $16, $ae, $24, $35, $44
	db $9b, $dd, $0a, $2e, $20, $2f, $9c, $42, $75, $79

	db $f8, $04, $06, $3f, $a0, $95, $9c, $1d, $e2, $83
	db $23, $d6, $9d, $b9, $6d, $10, $87, $da

	db $50, $0e, $a2, $be, $85, $95, $23, $cc, $1d, $c0, $e1
	db $83, $d6, $18, $a4, $66, $22, $3e, $0a, $20, $24
	db $55, $82, $c2, $fc, $3a, $74, $47, $42, $b1, $93, $9f

	db $00, $75, $84, $04, $16, $a5, $5a, $4b, $96, $19, $c8
	db $5e, $c8, $6a, $24, $b4, $9a, $ce, $69
	db $32, $00, $47, $74, $14, $a8, $76, $9a, $78
	db $1e, $a9, $3b, $66, $0c, $6b, $96, $90, $a0
	db $c0, $25, $a7, $f4, $91, $0c, $b4, $fa, $23, $fb, $93
	db $fb, $ca, $ce, $3e, $0a, $72, $d1, $a2

	db $fc, $01, $d3, $87, $b1, $9e, $9e, $ae, $0e, $e6, $01
	db $5b, $c0, $82, $d7, $e2, $b3, $67, $5a, $41, $c0, $93, $a0
	db $80, $20, $2f, $98, $48, $73, $51, $11, $6b, $09, $39
	db $7b, $51, $1d, $46, $74, $9e
	db $a6, $80

LaurelForestCharizardCave_Text_AlreadyPushed:
	db TX_COMPRESSED, $29, $27, $15, $b5, $76, $12, $44, $ea, $26, $f4
	db $0b, $cb, $3d, $c8, $28, $ac, $cc, $90, $43, $48, $49, $e7
	db $d4, $d0

LaurelForestCharizardCaveDad_Text_AfterMovedBoulder:
	db TX_COMPRESSED, $29, $26, $83, $89, $69, $fd, $22, $23, $fa
	db $09, $e5, $67, $34, $84, $08, $21, $93, $99, $a4
	db $ca, $a1, $1b, $69, $3b, $1b, $3f, $8a, $da, $ba, $78

	db $00, $14, $93, $05, $35, $67, $04, $34, $84, $8c, $9c
	db $bc, $f8, $28, $1c, $30, $40, $85, $8c, $9c, $cb
	db $08, $0b, $49, $ce, $8d, $f1, $df, $e3, $ed, $32
	db $97, $b0, $69, $76, $93, $5c, $b4, $e9, $23
	db $a0, $15, $6a, $20, $86, $90, $93, $cc, $56, $0a, $3e
	db $09, $e0, $d4, $49, $86, $da, $4d, $7e

	db $00, $dc, $e5, $43, $ef, $62, $91, $98
	db $87, $ad, $27, $12, $12, $05, $7a, $af
	db $a6, $01, $5f, $42, $1c, $f4, $64, $38, $1c, $20, $5a
	db $5b, $d8, $6b, $e3, $e8, $29, $c8, $46, $4e
	db $55, $60, $15, $98, $31, $af
	db $d4, $d0

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

LaurelForestCharizardCaveButton2_BlockData: INCBIN "maps/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, 0, 0, LaurelForestCharizardCaveCharmander, -1
	person_event SPRITE_DRAGON, 6, 7, SPRITEMOVEDATA_WANDER, 0, 0, -1, -1, PAL_OW_RED, 0, 0, LaurelForestCharizardCaveMom, -1
	person_event SPRITE_DRAGON, 5, 12, SPRITEMOVEDATA_WANDER, 0, 0, -1, -1, PAL_OW_RED, 0, 0, LaurelForestCharizardCaveDad, -1
	person_event SPRITE_POKE_BALL, 20, 34, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_PURPLE, 1, 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, 1, 0, LaurelForestCharizardCaveNPC5_Item_MiningPick, EVENT_LAUREL_POKEMONONLY_MININGPICKS
	person_event SPRITE_ROCK, 8, 3, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_BROWN, 0, 0, LaurelForestCharizardCaveNPC6, -1
	person_event SPRITE_BOULDER, 2, 9, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_BROWN, 0, 0, LaurelForestCharizardCaveBoulder, EVENT_POKEONLY_CHARIZARD_MOVED_BOULDER

