Route71_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

Route71HiddenItem:
	dw EVENT_ROUTE_71_HIDDENITEM_GOLD_TOKEN
	db GOLD_TOKEN

Route71Signpost1:
	db TX_COMPRESSED, $13, $59, $e4, $6d, $d1, $06, $b8, $da, $3b
	db $05, $4f, $08, $4d, $6a, $e2, $6b, $3b, $77, $4e, $ef, $46, $88, $da, $3b
	db $05, $4f, $08, $4d, $6a, $f1, $b7, $bb, $69, $58, $ec
	db $e9, $e1, $48, $53, $44, $21
	db $f6, $9a

Route71Signpost2:
	db TX_COMPRESSED, $13, $59, $dc, $77, $4e, $ef, $46, $88, $da, $3b
	db $05, $4f, $08, $4d, $67, $91, $b7, $44, $1a, $e3, $68, $ec
	db $15, $3c, $21, $35, $ab, $c6, $de, $ed, $a5, $63, $b3
	db $a7, $85, $21, $4d, $10, $87
	db $da, $68

Route71FruitTree:
	fruittree 15

Route71NPC1:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $75, $16, $7b, $de, $82, $99, $1a, $3a, $35, $23
	db $79, $93, $e9, $ab, $58, $ec, $66, $8f
	
	db $00, $29, $26, $0a, $53, $8d, $22, $e7, $27, $71, $01
	db $79, $f6, $99, $4c, $db, $b3, $25, $8c, $24, $98, $05
	db $6a, $90, $19, $d1, $dd, $f4, $e1, $e1, $80, $57, $7c
	
	db $40, $3a, $8f, $9e, $93, $f0, $c1, $8c
	db $8f, $5a, $4e, $32, $9d, $7c, $40, $c2, $48, $1c
	db $00, $5a, $4e, $39, $07, $4e, $04, $93, $1c, $f7, $96
	db $8d, $e4, $ea, $22, $46, $88, $1a, $89, $0a, $07
	db $0a, $90, $90, $d5
	
	db $c4, $01, $49, $db, $c5, $08, $d5, $a3
	db $8d, $34

Route71NPC2:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $6f, $a8, $8d, $ba, $20, $d7, $1b, $47, $60
	db $9e, $b0, $86, $32, $1e, $e6, $60, $15, $c0, $41, $6a

	db $94, $03, $94, $2d, $17, $1c, $19, $27, $5a, $65, $4b

	db $88, $07, $57, $11, $7a, $bb, $44, $e4, $ee, $c6, $4e
	db $5e, $ab, $56, $f9, $ae, $60, $b0, $bf, $2d, $23
	db $42, $a5, $85, $ab, $38, $12, $55, $ab, $ca
	db $3d, $4d

Route71NPC3:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $74, $59, $2c, $21, $9a, $4a, $74, $61, $69
	db $0f, $22, $f4, $99, $19, $39, $89, $35, $9f

	db $80, $3a, $2c, $9b, $82, $f4, $79, $81
	db $c1, $ec, $37, $bd, $19, $39, $81, $c3, $0f

	db $00, $15, $d0, $4a, $ce, $0f, $08
	db $e9, $e6, $57, $b5, $74, $f3, $32, $1a, $89, $f8
	db $e9, $55, $41, $6b, $b9, $8a, $ce, $23, $70, $3f
	db $53, $40

Route71NPC4:
	checktime 4
	sif true
		jumptextfaceplayer .night_text
	jumptextfaceplayer .regular_text

.regular_text
	db TX_COMPRESSED, $13, $06, $0b
	db $ef, $30, $81, $3f
	db $f5, $5c, $28, $04, $ca, $46, $cf

	db $80, $30, $8e, $e0, $ee
	db $96, $9a

.night_text
	db TX_COMPRESSED, $6d, $58, $24, $5e, $f6, $28, $1f, $54

	db $80, $30, $8e, $e0, $ee
	db $96, $9a

Route71_Trainer_1:
	trainer EVENT_ROUTE_71_TRAINER_1, BUG_CATCHER, 1, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptextfaceplayer .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $15, $05, $15, $b5, $ca, $25, $43, $ef, $67, $2b, $0d
	db $4f, $34, $22, $58, $62, $b3, $88, $b5, $84, $9c, $f1
	db $a6, $80

.battle_won_text
	db TX_COMPRESSED, $ad, $7c, $a7, $8c, $07, $86, $61, $a3, $5f
	db $1a, $68

.after_battle_text
	db TX_COMPRESSED, $e0, $09, $29, $91, $a2, $64, $d6, $68, $b1, $bf, $b6
	db $6f, $5a, $4e, $08, $0d, $46, $b8, $1c, $20, $93, $5c, $81
	db $55, $60, $84, $1c, $07, $2b, $e1, $27
	db $1a, $68

Route71_Trainer_2:
	trainer EVENT_ROUTE_71_TRAINER_2, HIKER, 1, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptextfaceplayer .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $61, $07, $f1, $41, $92, $d6, $77
	db $c6, $9a

.battle_won_text
	db TX_COMPRESSED, $07, $87, $f1, $41, $92, $d6, $77
	db $c6, $9a

.after_battle_text
	db TX_COMPRESSED, $61, $6a, $78

	db $80, $6e, $31, $07, $2d, $3b, $71, $16, $d0, $81
	db $e5, $e4, $3e, $35, $a9, $40, $e1, $01, $05, $a5
	db $a1, $50, $70, $c2, $02, $0b, $4b, $98, $6b, $27
	db $c6, $9a

Route71_MapEventHeader ;filler
	db 0, 0

;warps
	db 1
	warp_def $5, $33, 3, ROUTE_72_GATE

	;xy triggers
	db 0

	;signposts
	db 3
	signpost 5, 15, SIGNPOST_LOAD, Route71Signpost1
	signpost 5, 30, SIGNPOST_ITEM, Route71HiddenItem
	signpost 7, 52, SIGNPOST_LOAD, Route71Signpost2

	;people-events
	db 7
	person_event SPRITE_YOUNGSTER, 10, 40, SPRITEMOVEDATA_WANDER, 3, 3, -1, -1, 8 + PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, Route71NPC1, -1
	person_event SPRITE_TEACHER, 5, 7, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 2, 2, -1, -1, 8 + PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, Route71NPC2, -1
	person_event SPRITE_FRUIT_TREE, 4, 41, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, Route71FruitTree, -1
	person_event SPRITE_FISHER, 4, 18, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 8 + PAL_OW_YELLOW, PERSONTYPE_SCRIPT, 0, Route71NPC3, -1
	person_event SPRITE_COOLTRAINER_M, 12, 51, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, 0, PERSONTYPE_SCRIPT, 0, Route71NPC4, -1
	person_event SPRITE_HIKER, 10, 48, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 8 + PAL_OW_BLUE, PERSONTYPE_TRAINER, 4, Route71_Trainer_2, -1
	person_event SPRITE_BUG_CATCHER, 12, 19, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, 8 + PAL_OW_BLUE, PERSONTYPE_TRAINER, 3, Route71_Trainer_1, -1

