LaurelForestBeach_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 2
	dbw MAPCALLBACK_OBJECTS, .hide_pikachu
	dbw MAPCALLBACK_NEWMAP, .hide_pikachu
	
.hide_pikachu
	setevent EVENT_1
	return

LaurelForestBeachSwitch:
	opentext
	writetext .switch_push_it_text
	yesorno
	sif false
		jumptext .not_pushed_text
	writetext .pushed_text
	playsound SFX_SWITCH_POKEMON
	checkevent EVENT_0
	sif true, then
		changemap LaurelForestBeach_BlockData
		clearevent EVENT_0
	selse
		changemap .no_water_block_data
		setevent EVENT_0
	sendif
	endtext

.switch_push_it_text
	db TX_COMPRESSED, $76, $10, $a7, $f3, $62, $2a, $1d, $b2, $9e

	db $20, $38, $5a, $42, $60, $ee
	db $96, $9a

.not_pushed_text
	db TX_COMPRESSED, $53, $19, $0f, $f1, $59, $cd, $95, $0d, $f1, $1c
	db $69, $a0

.pushed_text
	db TX_COMPRESSED, $6e, $90, $ca, $82, $d7, $72, $4a, $65
	db $2d, $34

.no_water_block_data: INCBIN "maps/blk/LaurelForestBeach_NoWater.blk.lz"

LaurelForestBeachSurskit:
	faceplayer
	cry SURSKIT
	jumptext .text

.text
	db TX_COMPRESSED, $75, $19, $0b, $e7, $30, $58, $5f, $98, $6a
	db $de, $da, $b4, $15, $3c

	db $00, $1d, $4a, $b5, $12, $ad, $42, $4f, $31, $a1, $01
	db $23, $d6, $91, $a2, $21, $21, $59, $fe, $69
	db $32, $02, $d2, $71, $96, $96, $b3, $25, $c1
	db $a1, $eb, $08, $66, $1a, $8b, $96, $18, $21, $a4
	db $25, $53, $e7, $15, $eb, $2a, $51, $21, $7c

	db $fc, $01, $d4, $a8, $24, $c9, $ae, $54, $9d
	db $b7, $99, $d6, $90, $68, $96, $93, $88, $b5, $e9, $39
	db $35, $56, $3c, $9a, $22, $4d, $67
	db $4b, $4d

LaurelForestBeachXatu:
	faceplayer
	cry XATU
	jumptext .text

.text
	db TX_COMPRESSED, $29, $26, $b3, $95, $6a, $26, $c0, $63, $19
	db $1e, $0e, $11, $f1, $93, $31, $67, $4e, $34, $0c, $60
	db $40, $13, $6c, $64, $e6, $21, $3a, $bc
	db $a1, $eb, $4e, $dc, $a8, $d6, $71, $9d, $ef, $4f
	db $2a, $84, $d6, $7a, $da, $d2, $c3, $14, $27, $57, $94, $09, $ac, $f7

	db $c0, $0a, $49, $82, $95, $1a, $ce, $34, $83, $cc, $56
	db $09, $e0, $b4, $b8, $c8, $5f, $7d, $a2, $0e, $c1, $4b
	db $08, $0d, $1e, $63, $48, $83, $24, $b4, $8c, $8a, $43, $27
	db $2f, $22, $d7, $a3, $e5, $37, $32, $d2, $c6, $4e
	db $55, $22, $d6, $68, $46, $0d, $76, $3e, $17, $cc, $96, $8f

	db $00, $28, $31, $95, $9e, $d9, $cb, $48
	db $d0, $f1, $e1, $81, $b3, $7f, $9b, $de, $c0, $41
	db $69, $51, $0c, $f3, $06, $88, $2c, $a2, $13, $ab, $ca

	db $3c, $01, $88, $6a, $30, $63, $5f, $e5, $a4, $e0, $31, $8c
	db $8f, $27, $51, $15, $99, $92, $2b, $e8, $59, $52, $3c
	db $80, $0e, $18, $45, $9b, $26, $4b, $e8, $29, $96
	db $8d, $eb, $0c, $b4, $9c, $43, $23, $32, $58, $d1, $68

	db $f0, $02, $92, $60, $8b, $8e, $54, $15, $a9, $0c, $9c
	db $bc, $12, $46, $43, $de, $9b, $36, $32
	db $72, $a8, $c1, $8d, $60, $a7, $75, $17, $02, $43

	db $e2, $00, $a4, $9c, $64, $2f, $be, $d1, $07, $60, $a0
	db $d0, $f2, $2c, $7d, $ec, $48, $7b, $91, $93, $98, $12
	db $2a, $b0, $cd, $98, $1d, $5f, $96, $90, $b5, $ca

	db $7c, $01, $d6, $10, $10, $5a, $84, $33, $cc, $09, $0f
	db $ef, $02, $0b, $51, $09, $0b, $5d, $cc, $e8, $42
	db $a4, $03, $56, $16, $89, $99, $a4, $cc, $bd, $ea
	db $93, $d6, $19, $69, $38, $b3, $40, $f2, $64, $b4
	db $7a, $9a

LaurelForestBeachWartortle:
	faceplayer
	cry WARTORTLE
	checkevent EVENT_POKEONLY_BEAT_WARTORTLE
	sif true
		jumptext .already_beaten_text
	opentext
	writetext .before_battle_text
	writecode VAR_BATTLETYPE, BATTLETYPE_TRAP
	loadwildmon WARTORTLE, 22
	startbattle
	reloadmapafterbattle
	setevent EVENT_POKEONLY_BEAT_WARTORTLE
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $02, $81, $f2, $90

	db $20, $05, $c0, $c6, $b8, $81, $91, $93, $88, $0b, $e6, $12
	db $1b, $c2, $1a, $b9, $69, $db, $88, $b5, $e9, $39
	db $35, $4f, $eb, $29, $19, $0e, $5a, $4d, $67
	db $f0, $0f, $82, $8a, $cf, $59, $4c, $4e
	db $a1, $e5, $66, $64, $98, $35, $de, $c0
	db $e0, $aa, $d6, $68, $11, $a8, $41, $ad, $1c

	db $40, $3a, $24, $c3, $59, $bf, $ca, $93, $b7, $35
	db $66, $f0, $20, $b5, $32, $11, $93, $98, $93, $59, $d2

	db $80, $61, $1d, $c0, $e1, $84, $7c, $14, $56, $7a, $ca
	db $5e, $20, $6a, $81, $5c, $04, $16, $9c, $3d, $8a
	db $cd, $52, $02, $b5, $82
	db $e3, $4f, $10

.after_battle_text
	db TX_COMPRESSED, $53, $19, $0f, $f1, $d3, $87, $b1, $09, $d5, $9f

	db $80, $09, $96, $91, $71, $fd, $52, $38, $86, $96, $72
	db $c2, $f2, $2f, $41, $40, $b5, $70, $38, $47, $c1
	db $2a, $ab, $41, $4c, $16, $17, $e1, $03, $54, $09
	db $3d, $4d

.already_beaten_text
	db TX_COMPRESSED, $75, $2c, $3d, $cc, $04, $16, $bf, $11, $7a
	db $09, $e0, $b5, $70, $38, $47, $c1, $4a, $b4, $17
	db $1a, $68

LaurelForestBeachFruitTree:
	checkevent EVENT_POKEONLY_FRUIT_TREE_2_DEAD
	sif true
		jumptext .dead_tree_text
	opentext
	writetext .last_berry_text
	giveitem ORAN_BERRY, 1
	writetext .picked_berry_text
	playwaitsfx SFX_ITEM
	waitbutton
	setevent EVENT_POKEONLY_FRUIT_TREE_2_DEAD
	checkevent EVENT_POKEONLY_PIKACHU_IN_PARTY
	closetext
	sif false
		end
	checkcode VAR_FACING
	sif =, DOWN
		moveperson 7, 6, 13
	appear 7
	faceperson 7, PLAYER
	faceperson PLAYER, 7
	cry PIKACHU
	showtext .pikachu_comments_text
	disappear 7
	end

.dead_tree_text
	db TX_COMPRESSED, $29, $23, $44, $b5, $99, $ca, $82, $4a
	db $63, $dc, $ac, $35, $4d, $20, $28, $f8, $56
	db $6a, $84, $8d, $6b, $19, $a2, $9e
	db $0a, $68

.last_berry_text
	db TX_COMPRESSED, $29, $23, $44, $b5, $99, $cd, $10, $20, $f5, $68
	db $7b, $3a, $fe, $f2, $79, $a7

	db $80, $01, $49, $35, $9e, $28, $12, $1c, $76, $bd
	db $23, $c2, $46, $b5, $82, $9d, $3c, $2f, $f1, $f1, $f2, $9b
	db $55, $a8, $95, $1f, $7b, $04, $0d, $95, $28, $3b
	db $e2, $0e, $60

.picked_berry_text
	db TX_COMPRESSED, $e1, $1b, $2a, $47, $99, $69, $38, $24, $6b, $58, $2e
	db $34, $d0

.pikachu_comments_text
	db TX_COMPRESSED, $29, $23, $44, $12, $35, $ac, $14, $e8, $42, $a4
	db $87, $b2, $7d, $1b, $23, $0b, $48

	db $e2, $00, $49, $ab, $8e, $a5, $a4, $64, $52, $95
	db $1b, $cc, $e9, $26, $43, $15, $9d, $d9, $af

	db $c0, $31, $ce, $f1, $4e, $84, $2a, $53, $00
	db $ad, $e7, $c2, $b3
	db $e3, $4f, $10

LaurelForestBeach_MapEventHeader:: db 0, 0

.Warps
	db 2
	warp_def 1, 8, 1, LAUREL_FOREST_POKEMON_ONLY
	warp_def 2, 8, 2, LAUREL_FOREST_POKEMON_ONLY

.CoordEvents
	db 0

.BGEvents
	db 1
	signpost 15, 7, SIGNPOST_READ, LaurelForestBeachSwitch

.ObjectEvents
	db 6
	person_event SPRITE_SURSKIT, 10, 11, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, LaurelForestBeachSurskit, -1
	person_event SPRITE_XATU, 16, 13, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, LaurelForestBeachXatu, -1
	person_event SPRITE_WARTORTLE, 14, 10, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, LaurelForestBeachWartortle, -1
	person_event SPRITE_FRUIT_TREE, 15, 6, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, LaurelForestBeachFruitTree, -1
	person_event SPRITE_POKE_BALL, 12, 15, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_PURPLE, PERSONTYPE_ITEMBALL, 1, GIANT_ROCK, EVENT_POKEONLY_GOT_ROCK_1
	person_event SPRITE_PIKACHU, 16, 7, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, PAL_OW_YELLOW, PERSONTYPE_SCRIPT, 0, ObjectEvent, EVENT_1

