Route82_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

Route82HiddenItem:
	dw EVENT_ROUTE_82_HIDDENITEM_GOLD_TOKEN
	db GOLD_TOKEN

Route82DirectionsSign:
	db TX_COMPRESSED, $13, $59, $e4, $28, $2b, $32, $0f, $63, $68, $ec
	db $15, $3c, $21, $35, $ab, $ca, $d9, $d2, $0f, $67, $00, $59, $52
	db $45, $34

Route82FruitTree:
	fruittree 21

Route82_Item:
	db POLKADOT_BOW, 1

Route82_Trainer_1:
	trainer EVENT_ROUTE_82_TRAINER_1, FISHER, 12, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $74, $59, $39, $09, $09, $b1, $9d, $b6
	db $52, $f3, $e7, $36, $39, $0f, $a3, $67, $49, $69
	db $e3, $4d

.battle_won_text
	db TX_COMPRESSED, $e0, $d2, $73
	db $c6, $9a

.after_battle_text
	db TX_COMPRESSED, $02, $81, $f2, $90, $31, $d5, $ca, $82, $d7, $72, $4a
	db $63, $c8, $69, $62, $16, $34, $1c, $7c, $e6, $dc, $de
	db $f4, $00, $f0, $96, $93, $8e, $43, $e8, $d9, $d2, $5a
	db $5e, $a8, $d6, $73, $23, $40, $83, $5a, $06, $4e

	db $7c, $01, $d4, $49, $ea, $f3, $2d, $3b, $71, $01, $7c
	db $de, $10, $61, $11, $d3, $9a, $b3, $84, $0d
	db $40, $32, $d3, $e2, $06, $4e, $60, $80, $f7, $ad, $58, $c2
	db $47, $86, $4b, $0c, $b4, $9c, $0b, $27, $a4
	db $f5, $34

Route82_Trainer_2:
	trainer EVENT_ROUTE_82_TRAINER_2, FISHER, 13, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $75, $2d, $23, $22, $94, $40, $5f, $38, $1c
	db $1e, $b4, $9c, $5e, $ac, $d1, $73, $01, $a1
	db $20, $01, $ca, $f8, $49, $12, $3c, $9c, $68, $99, $35
	db $bd, $69, $34, $1c, $06, $35, $82, $99, $0b, $2a, $48
	db $f5, $34

.battle_won_text
	db TX_COMPRESSED, $07, $87, $f0, $81, $fc, $20, $78
	db $d3, $40

.after_battle_text
	db TX_COMPRESSED, $75, $30, $1a, $12, $79, $95, $24, $7d
	db $37, $96, $3c, $8c, $9c, $c7, $c1, $40, $72, $be, $12
	db $00, $68, $96, $3e, $c1, $dc, $64, $2d, $77, $24, $a6
	db $3d, $7a, $a4, $70, $77, $34, $80, $9f, $0a, $cf

	db $c0, $01, $e1, $aa, $3a, $98, $0d, $09, $81, $24, $b4
	db $9b, $d9, $0b, $2a, $48, $83, $22, $2c, $f7, $3e
	db $a6, $80

Route82_Trainer_3:
	trainer EVENT_ROUTE_82_TRAINER_3, COOLTRAINERF, 5, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $62, $60, $bf, $01, $05, $a9, $d0, $85
	db $49, $e1, $0b, $3b, $b0, $52, $c2, $d7, $29

	db $e2, $01, $b7, $49, $1d, $44, $19, $c0, $41, $69
	db $6f, $03, $95, $f0, $93, $f0, $47, $4f, $50, $74
	db $b4, $d0

.battle_won_text
	db TX_COMPRESSED, $29, $3b, $72, $ad, $44, $c1, $a2, $71
	db $a6, $80

.after_battle_text
	db TX_COMPRESSED, $75, $73, $7b, $56, $82, $44, $7f, $54, $8d
	db $0f, $3e, $70, $e9, $d6, $47, $67, $99, $61, $88, $33
	db $00, $1b, $49, $ae, $08, $30, $88, $e9, $ca, $87, $69
	db $79, $16, $b0, $93, $98, $0e, $57, $c2, $4f

	db $00, $75, $78, $a1, $03, $70, $c1, $8d, $60, $a6, $74
	db $13, $d6, $9d, $b8, $ea, $3e, $67, $70, $41, $84, $47
	db $4c, $05, $49, $0c, $67, $49, $04, $35, $71, $a1, $13
	db $5e, $e4, $21, $cc, $c0, $7c, $a6
	db $fd, $4d

Route82_MapEventHeader ;filler
	db 0, 0

;warps
	db 5
	warp_def $8, $4, 3, ROUTE_82_GATE
	warp_def $9, $4, 4, ROUTE_82_GATE
	warp_def $3, $1c, 1, ROUTE_82_MONKEY
	warp_def $b, $2a, 1, ROUTE_82_CAVE
	warp_def $9, $30, 2, ROUTE_82_CAVE

	;xy triggers
	db 0

	;signposts
	db 2
	signpost 8, 6, SIGNPOST_LOAD, Route82DirectionsSign
	signpost 4, 34, SIGNPOST_ITEM, Route82HiddenItem

	;people-events
	db 5
	person_event SPRITE_FISHER, 12, 17, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_TRAINER, 1, Route82_Trainer_1, -1
	person_event SPRITE_FISHER, 4, 45, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_TRAINER, 1, Route82_Trainer_2, -1
	person_event SPRITE_COOLTRAINER_F, 13, 30, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 8 + PAL_OW_BLUE, PERSONTYPE_TRAINER, 1, Route82_Trainer_3, -1
	person_event SPRITE_FRUIT_TREE, 12, 50, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, Route82FruitTree, -1
	person_event SPRITE_POKE_BALL, 4, 50, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 2, Route82_Item, EVENT_ROUTE_82_ITEM_1

