LaurelForestPokemonOnly_Pikachu_BerriesArentOutsideForest:
	switch 0
	
LaurelForestPokemonOnly_Butterfree_NoWayBabyWanderedOutsideForest:
	switch 2

LaurelForestPokemonOnly_Caterpie_MommyIsntOutsideForest:
	switch 4
	
LaurelForestPokemonOnly_Pikachu_BerriesArentInLab:
	switch 1
	
LaurelForestPokemonOnly_Butterfree_NoWayBabyWanderedInsideLab:
	switch 3

LaurelForestPokemonOnly_Caterpie_MommyIsntInLab:
	switch 5
	sendif

	pushvar
	divideop 0, 2
	loadarray .PreventPlayerLeaveArray
	readarray 0
	cry 0
	readarray 1
	setlasttalked -1
	pullvar
	divideop 1 << 2, 2
	sif true, then
		readarray 1
		moveperson LAST_TALKED, 54, 6
	selse
		readarray 1
		moveperson LAST_TALKED, 5, 55
	sendif
	appear LAST_TALKED
	faceplayer
	faceperson PLAYER, LAST_TALKED
	pullvar
	loadarray .PreventPlayerLeaveTextArray
	opentext
	readarrayhalfword 0
	writetext -1
	closetext
	disappear LAST_TALKED
	popvar
	divideop 1 << 2, 2
	sif true, then
		applymovement PLAYER, .PlayerStepsBackDown
	selse
		applymovement PLAYER, .PlayerStepsBackRight
	sendif
	end

.PreventPlayerLeaveArray
	db PIKACHU, 9
.PreventPlayerLeaveArrayEntrySizeEnd
	db BUTTERFREE, 4
	db CATERPIE, 6

.PreventPlayerLeaveTextArray
	dw .pikachu_not_outside_forest_text
.PreventPlayerLeaveTextArrayEntrySizeEnd
	dw .pikachu_not_in_lab_text
	dw .butterfree_not_outside_forest_text
	dw .butterfree_not_in_lab_text
	dw .caterpie_not_outside_forest_text
	dw .caterpie_not_in_lab_text

.PlayerStepsBackRight
	step_right
	step_end

.PlayerStepsBackDown
	step_down
	step_end

.pikachu_not_outside_forest_text
	db TX_COMPRESSED, $62, $60, $bf, $2a, $39, $90, $92, $99, $08, $67
	db $97, $ac, $33, $a1, $0a, $94, $c0, $2b
	
	db $00, $ac, $d6, $b1, $9a, $20, $5a, $b4, $0f, $27, $03
	db $83, $d6, $93, $98, $05, $66, $8b
	
	db $f0, $07, $45, $91, $0d, $2c, $e5, $a4, $d6, $73, $56
	db $6f, $5e, $a2, $c1, $45, $66, $b5, $8c, $d1, $12, $6b
	
	db $30, $16, $9d, $b9, $ab, $39, $4e, $34, $8b
	db $7a, $ad, $1d, $8c, $9c, $cb, $0c, $56
	db $6a, $b2, $34, $32, $10, $63, $59, $e7
	db $8d, $3c, $40

.butterfree_not_outside_forest_text
	db TX_COMPRESSED, $76, $9f, $ca, $8e, $64, $24, $a6, $42, $19
	db $e5, $eb, $0c, $65, $26, $ca, $94, $49, $ac
	
	db $fc, $01, $d4, $52, $20, $6a, $8f, $82, $8a, $f5, $58
	db $27, $aa, $3e, $f7, $f3, $49, $98, $ea, $29, $10, $35
	
	db $00, $b4, $ed, $c4, $9b, $87, $b0, $86, $0c, $6b
	db $7a, $d6, $0a, $74, $f4, $18, $64, $e6, $5a
	db $4d, $56, $01, $59, $a2
	db $fd, $4f, $10

.caterpie_not_outside_forest_text
	db TX_COMPRESSED, $15, $0b, $ef, $82, $8c, $e9, $29, $91, $59
	db $bc, $23, $51, $71, $26, $b3
	
	db $e2, $01, $b9, $b0, $1c, $de, $d5, $a0, $91, $3a, $30, $63
	db $cb, $c3, $24, $b4, $8d, $13, $00, $ac, $d1, $73, $49
	
	db $90, $09, $d0, $63, $84, $30, $63, $5c, $e9, $e1, $70, $2b
	db $79, $16, $62, $04, $1e, $60, $5a, $bf
	
	db $00, $75, $14, $88, $1a, $a5, $a7, $6e, $21, $27
	db $89, $e4, $05, $f3, $a9, $26, $b3, $87, $d4, $1f
	db $1a, $78, $80

.pikachu_not_in_lab_text
	db TX_COMPRESSED, $62, $60, $bf, $2d, $26, $b3, $95, $04, $94
	db $c7, $95, $9c, $d2, $02, $8a, $cd, $6b, $19, $a2, $0c
	db $8a, $b6, $25, $a7, $f4, $91, $5b, $43, $ee, $46, $4e
	
	db $7c, $03, $1c, $ef, $14, $e8, $42, $a5, $10, $17, $cc
	db $0b, $d5, $24, $d6, $70, $fa, $83
	db $f5, $3c, $40

.butterfree_not_in_lab_text
	db TX_COMPRESSED, $72, $85, $a9, $90, $92, $99, $06, $fe, $f2, $32
	db $1b, $c9, $3c, $50, $64, $89, $35, $9f, $bd, $ea
	
	db $50, $00, $f0, $fe, $3a, $60, $39, $bd, $ab, $41
	db $21, $eb, $0f, $73, $1f, $05, $15, $ea, $b0, $52
	
	db $c2, $00, $86, $0c, $6b, $95, $69, $32, $6b, $83, $25
	db $85, $ed, $20, $28, $23, $ba, $c9, $a2, $54, $3b
	db $4a, $a4, $b4, $fe, $91, $1e
	
	db $01, $8e, $77, $8a, $3e, $10, $63, $9b, $56, $82
	db $7b, $05, $85, $f8, $93, $59
	db $fa, $9e, $20
	
.caterpie_not_in_lab_text
	db TX_COMPRESSED, $15, $0b, $ef, $82, $8c, $e9, $29, $91, $59
	db $bc, $93, $59, $f1
	
	db $00, $a1, $27, $8a, $6f, $6a, $d0, $48, $96, $1e
	db $e5, $e7, $ce, $58, $62, $2f, $41, $4d, $ab, $41
	
	db $00, $c1, $61, $7e, $5a, $4e, $25, $a7, $f4
	db $8f, $08, $ee, $b2, $7c
	
	db $40, $63, $9d, $e2, $8c, $84, $96, $32, $34
	db $6f, $20, $f5, $6c, $a4, $64
	db $e5, $51, $f5, $07, $52, $4d, $67
	db $c6, $9e, $20

