LaurelForestLab_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

LaurelForestLab_Trainer_1:
	trainer EVENT_LAUREL_FOREST_LAB_TRAINER_1, SCIENTIST, 1, LaurelForestLab_Trainer_1_Text_149cc1, LaurelForestLab_Trainer_1_Text_149d2e, $0000, .Script

.Script:
	end_if_just_battled
	jumptext LaurelForestScientistDefeated1Text

LaurelForestLab_Trainer_2:
	trainer EVENT_LAUREL_FOREST_LAB_TRAINER_2, SCIENTIST, 2, LaurelForestLab_Trainer_2_Text_149d58, LaurelForestLab_Trainer_2_Text_149d73, $0000, .Script

.Script:
	end_if_just_battled
	jumptext LaurelForestScientistDefeated2Text

LaurelForestLab_Totodile:
	setevent EVENT_POKEONLY_TOTODILE
	clearevent EVENT_BROOKLYN_NOT_IN_FOREST
	callasm RemoveSecondPartyMember
	opentext
	writetext LaurelForestLabTotodileText
	waitbutton
	restorecustchar
	restoresecondpokemon
	clearflag ENGINE_POKEMON_MODE
	clearflag ENGINE_USE_TREASURE_BAG
	blackoutmod LAUREL_CITY
	warp LAUREL_FOREST_MAIN, 36, 4
	spriteface 0, 2
	showemote EMOTE_HEART, 4, 40
	applymovement 4, LaurelForestBrooklynMoveTowards
	opentext
	writetext LaurelForestBrooklynGetsTotodileText
	waitbutton
	closetext
	applymovement 4, LaurelForestBrooklynMoveAway
	disappear 4
	setevent EVENT_BROOKLYN_NOT_IN_FOREST
	end

LaurelForestBrooklynMoveTowards:
	big_step_right
	big_step_right
	big_step_right
	step_end

LaurelForestBrooklynMoveAway:
	big_step_left
	big_step_left
	big_step_left
	big_step_left
	big_step_left
	step_end

LaurelForestScientistDefeated1Text:
	db TX_COMPRESSED, $6e, $9d, $b9, $a4, $9a, $42, $04, $10, $c9
	db $cb, $cc, $ac, $f6, $da, $59
	db $fa, $9a

LaurelForestScientistDefeated2Text:
	db TX_COMPRESSED, $75, $84, $09, $3a, $0a, $02, $0b, $51, $90, $b5, $dc
	db $bc, $c8, $5f, $10, $b3, $49, $93, $32, $a4, $ed
	db $aa, $a8, $cb, $8e, $64, $23, $27, $3e
	db $a6, $80

LaurelForestBrooklynGetsTotodileText:
	db TX_COMPRESSED, $76, $9f, $c7, $4c, $07, $1f, $1a, $10, $79
	db $78, $10, $5a, $88, $0c, $7d, $a6, $53, $f8, $f8
	db $25, $5d, $1d, $df, $4e, $14, $1b, $0e, $47, $d3

	db $e2, $00, $a4, $e9, $14, $a0, $20, $b5, $10, $18, $fb, $4c, $a7

	db $88, $07, $69, $fc, $1e, $10, $10, $5a, $95, $69
	db $2d, $eb, $0c, $57, $b7, $7d, $38, $f9

	db $fc, $05, $a4, $c9, $1f, $33, $b8, $f9, $cd
	db $b7, $9f, $05, $18, $40, $9f, $8a, $f5, $95, $28, $32
	db $2a, $c7, $d6, $96, $7d, $8d, $a3, $b0, $5e
	db $a6, $80

LaurelForestLabTotodileText:
	db TX_COMPRESSED, $6e, $1a, $bf, $01, $05, $a8, $fe, $e4, $e0, $ef

	db $88, $06, $21, $a8, $c1, $8d, $7f, $8e, $8b, $21, $03
	db $6f, $21, $a5, $9c, $1e, $11, $d4, $ab, $49
	db $60, $2c, $33, $90, $c5, $7a, $ca, $94, $b0
	db $bc, $f8, $28, $1a, $88, $6b, $81, $5c, $20, $6f

	db $c0, $14, $24, $e0, $d1, $29, $c6, $91
	db $6f, $20, $33, $48, $40, $82, $19, $39

	db $f0, $0a, $78

	db $00, $37, $d1, $df, $e0, $20, $b5, $1f, $3b
	db $7b, $62, $b5, $e8, $c9, $56, $a1, $27
	db $95, $4d, $a9, $d5, $8c, $4d, $ea, $f3

	db $4a, $01, $d4, $a8, $24, $a6, $4b, $d5, $23, $8f, $82
	db $79, $94, $e9, $19, $34, $7e, $74, $ef
	db $12, $ae, $4e, $e0, $5a, $b8, $1c, $22, $4d, $67
	db $c6, $9a

LaurelForestLab_Trainer_1_Text_149cc1:
	db TX_COMPRESSED, $62, $1a, $a6, $47, $98, $16, $97, $39, $6b, $57
	db $97, $ba, $77, $2d, $23, $44, $e8, $6a, $e8
	db $25, $40, $e5, $7c, $24, $82, $35, $08, $a5

	db $01, $8e, $10, $a9, $22, $74, $6a, $47, $1d, $42, $19
	db $e5, $eb, $0c, $1b, $e2, $16, $10, $63, $8f, $82, $8f, $8c, $99
	db $00, $c8, $49, $6b, $0f, $66, $4c, $18, $6c, $9c, $b0
	db $bc, $fe, $a9, $1c, $1d, $cc, $3b, $b5, $74, $d0, $8e
	db $34, $d0

LaurelForestLab_Trainer_1_Text_149d2e:
	db TX_COMPRESSED, $07, $86, $3e, $15, $9c, $07, $2b, $e1, $25

	db $28, $00, $78, $65, $5a, $0b
	db $8d, $34

LaurelForestLab_Trainer_2_Text_149d58:
	db TX_COMPRESSED, $ad, $3f, $9a, $40, $da, $4d, $73, $90, $87
	db $2f, $59, $a2, $e2, $1a, $57, $4e, $1b, $37
	db $c6, $9a

LaurelForestLab_Trainer_2_Text_149d73:
	db TX_COMPRESSED, $75, $2a, $d4, $4a, $71, $a4, $5c, $b5, $82, $19, $39
	db $7a, $c3, $19, $db, $65, $30, $10, $5a, $96
	db $10, $09, $3e, $88, $86, $44, $e9, $19, $38, $08, $2d
	db $2d, $e2, $6d, $b4, $bd, $ec, $d5, $63, $e8, $ec, $66, $8f
	db $53, $40

LaurelForestLab_MapEventHeader ;filler
	db 0, 0

;warps
	db 2
	warp_def $f, $a, 3, LAUREL_FOREST_POKEMON_ONLY
	warp_def $f, $b, 3, LAUREL_FOREST_POKEMON_ONLY

	;xy triggers
	db 0

	;signposts
	db 0

	;people-events
	db 3
	person_event SPRITE_SCIENTIST, 15, 8, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_OW_RED, 2, 6, LaurelForestLab_Trainer_1, EVENT_LAUREL_FOREST_LAB_TRAINER_1
	person_event SPRITE_SCIENTIST, 12, 11, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_RED, 2, 3, LaurelForestLab_Trainer_2, EVENT_LAUREL_FOREST_LAB_TRAINER_2
	person_event SPRITE_TOTODILE, 1, 5, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, PAL_OW_BLUE, 0, 0, LaurelForestLab_Totodile, EVENT_POKEONLY_TOTODILE

