LaurelForestMain_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

LaurelForestMain_Trainer_1:
	trainer EVENT_LAUREL_FOREST_MAIN_TRAINER_1, BUG_CATCHER, 3, .before_battle_text, .battle_won_text

	db TX_COMPRESSED, $15, $05, $1f, $0b, $ef, $82, $99, $09, $a0, $94
	db $c7, $ba, $77, $1f, $39, $7a, $a4, $71, $f0
	db $4a, $95, $b5, $cc, $07, $2b, $e1, $24, $48, $5f, $3f

	db $00, $74, $44, $59, $ee, $7f, $1d, $44, $e8, $31
	db $bd, $b1, $06, $ca, $ce, $e2, $47, $91, $93
	db $90, $02, $3b, $ac, $9c, $c0, $2b, $96, $93
	db $7d, $e1, $92, $5a, $4e, $60, $15, $9a, $2f
	db $d4, $d0

.before_battle_text
	db TX_COMPRESSED, $6e, $1a, $bf, $10, $18, $fe, $90, $14, $56, $d7, $28
	db $7a, $c3, $19, $db, $65, $31, $26, $b3
	db $e3, $4d

.battle_won_text
	db TX_COMPRESSED, $75, $78, $a6, $ce, $42, $1c, $c1, $1d, $d6
	db $4d, $eb, $0c, $b5, $e8, $c9, $f9, $61, $0f
	db $1a, $68

LaurelForestMain_Trainer_2:
	trainer EVENT_LAUREL_FOREST_MAIN_TRAINER_2, BUG_CATCHER, 4, .before_battle_text, .battle_won_text

	db TX_COMPRESSED, $62, $fd, $3c, $11, $d4, $a8, $24, $c9, $ae, $0f
	db $07, $99, $35, $de, $8c, $91, $02, $0d, $91, $9a
	db $15, $74, $f0, $b9, $69, $39, $80, $56, $68, $bf

	db $00, $75, $8d, $3a, $35, $23, $96, $19, $c9
	db $db, $cf, $82, $89, $d2, $65, $10, $24, $88, $0b
	db $e6, $a9, $7a, $b3, $8a, $da, $e6, $03, $95, $f0, $93
	db $d4, $d0

.before_battle_text
	db TX_COMPRESSED, $29, $23, $44, $c0, $2b, $34, $5c, $69, $07
	db $97, $ac, $30, $e9, $db, $32, $66, $18, $31
	db $90, $06, $0d, $2e, $d2, $6b, $99, $0d, $44, $ab, $57, $94
	db $7d, $e6, $89, $63, $ec, $b4, $98, $28, $8b, $d5, $d9
	db $e4, $06, $f7, $b2, $d2, $71, $5b, $43, $ee, $46, $4e
	db $5e, $a8, $2b, $52, $81, $24, $b4, $ed, $c6, $47, $60, $b8
	db $d3, $40

.battle_won_text
	db TX_COMPRESSED, $29, $27, $19, $09, $11, $6b, $69, $9b, $18
	db $48, $f0, $85, $85, $5e, $ab, $e8, $28, $86, $75, $67
	db $90, $0f, $85, $17, $03, $84, $b4, $9c, $e8, $59, $de
	db $bc, $ad, $ae, $51, $36, $ad, $05, $4f
	db $05, $34

LaurelForestMainMagikarpWorshipper:
	db TX_COMPRESSED, $76, $4e, $82, $96, $90, $a0, $e5, $49
	db $0b, $cd, $13, $26, $b4, $5e, $93, $32, $d2
	db $60, $2d, $6d, $1c, $10, $1b, $32, $58, $f7, $b0, $38
	db $3d, $69, $39, $a4, $64, $66, $4b, $98, $0d, $09
	db $54, $fe, $82, $82, $35, $08

	db $f0, $07, $28, $5a, $2e, $39, $4e, $34, $8b, $9d, $1a, $91
	db $bd, $69, $38, $b3, $45, $fe, $02, $0b, $53, $21
	db $54, $40, $dc, $68, $99, $35, $a2, $f4, $99

	db $f0, $01, $21, $73, $09, $d8, $3c, $5d
	db $c6, $9a

LaurelForestMainClefairy:
	opentext
	writetext .text
	yesorno
	closetext
	sif false
		end
	clearevent EVENT_POKEONLY_CATERPIE_IN_PARTY
	clearevent EVENT_POKEONLY_MOTHERBUTTERFREE_IN_PARTY
	clearevent EVENT_POKEONLY_PIKACHU_IN_PARTY
	setevent EVENT_POKEONLY_FIRE_OUT
	backupcustchar
	backupsecondpokemon
	setflag ENGINE_POKEMON_MODE
	setflag ENGINE_USE_TREASURE_BAG
	writecode VAR_MOVEMENT, PLAYER_NORMAL
	callasm .heal_first_partymon
	warp LAUREL_FOREST_POKEMON_ONLY, 3, 56
	blackoutmod LAUREL_FOREST_POKEMON_ONLY
	end

.heal_first_partymon
	xor a
	ld [wCurPartyMon], a
	ld [wPokeonlyMainSpecies], a
	jpba HealPartyMon

.text
	db TX_COMPRESSED, $29, $27, $1b, $7a, $78, $68, $d6, $0a, $54, $12, $53
	db $1e, $e9, $dc, $04, $16, $a0, $8d, $42, $29, $e0

	db $00, $a0, $c9, $98, $e6, $00
	text_from_ram wPartyMonNicknames
	db TX_COMPRESSED
	db $78, $64, $45, $9e, $e6
	db $96, $9a

LaurelForestMain_MapEventHeader:: db 0, 0

.Warps
	db 7
	warp_def $3, $4, 4, LAUREL_FOREST_GATES
	warp_def $3, $5, 5, LAUREL_FOREST_GATES
	warp_def $21, $4, 9, LAUREL_FOREST_GATES
	warp_def $21, $5, 1, LAUREL_FOREST_GATES
	warp_def $1, $10, 1, TRAINER_HOUSE
	warp_def $0, $22, 1, TRAINER_HOUSE
	warp_def $3, $1f, 8, LAUREL_FOREST_GATES

.CoordEvents
	db 0

.BGEvents
	db 0

.ObjectEvents
	db 5
	person_event SPRITE_FAIRY, 4, 37, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, 0, PERSONTYPE_SCRIPT, 0, LaurelForestMainClefairy, -1
	person_event SPRITE_ELDER, 15, 16, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_OW_GREEN, PERSONTYPE_TEXTFP, 0, LaurelForestMainMagikarpWorshipper, EVENT_MAGIKARP_TEST
	person_event SPRITE_WHITNEY, 4, 32, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_OW_PURPLE, PERSONTYPE_SCRIPT, 0, ObjectEvent, EVENT_BROOKLYN_NOT_IN_FOREST
	person_event SPRITE_BUG_CATCHER, 20, 33, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_GENERICTRAINER, 5, LaurelForestMain_Trainer_1, -1
	person_event SPRITE_BUG_CATCHER, 31, 20, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_GENERICTRAINER, 2, LaurelForestMain_Trainer_2, -1

