Route84_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

Route84HiddenItem:
	dw EVENT_ROUTE_84_HIDDENITEM_GOLD_TOKEN
	db GOLD_TOKEN

Route84DirectionsSign:
	db TX_COMPRESSED, $13, $59, $e4, $e1, $4f, $43, $4e, $c2, $83, $51
	db $29, $e1, $09, $ad, $5e, $36, $f7, $6d, $2b, $1d
	db $98, $9a, $c0, $e4, $29, $a2, $10
	db $fb, $4d

Route84FruitTree:
	fruittree 13

Route84_Trainer_1:
	trainer EVENT_ROUTE_84_TRAINER_1, COOLTRAINERM, 11, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $72, $85, $a6, $03, $94, $e3, $48, $b8, $ac, $cc
	db $8f, $60, $d7, $7a, $0a, $6b, $ea, $da, $42, $4f, $3c

	db $40, $39, $03, $de, $cc, $02
	db $b7, $86, $41, $d8, $f6, $c6, $0c, $7c
	db $69, $a0

.battle_won_text
	db TX_COMPRESSED, $ae, $aa, $aa, $fc, $04, $16, $8b, $8e, $10
	db $2f, $60, $d1, $29, $e0, $82, $41, $58, $c9, $cf
	db $a9, $a0

.after_battle_text
	db TX_COMPRESSED, $07, $86, $e1, $83, $19, $26, $ce, $8e, $ef
	db $a6, $f2, $b1, $dc, $43, $4b, $10, $b1, $a0, $f3
	db $4b, $4d

Route84_Trainer_2:
	trainer EVENT_ROUTE_84_TRAINER_2, SKIER, 4, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $29, $3b, $78, $a6, $c0, $63, $58, $29, $83, $44
	db $78, $2a, $d1, $7a, $cf, $4e, $32, $16, $96, $83
	db $01, $80, $57, $10, $a4, $3e, $f4, $f3, $10, $a4, $33, $5a
	db $1e, $43, $4c, $a6, $6a, $23, $e0, $90, $7d, $c3
	db $8d, $34

.battle_won_text
	db TX_COMPRESSED, $e0, $d2, $73, $07, $7e
	db $a6, $80

.after_battle_text
	db TX_COMPRESSED, $50, $17, $ce, $c6, $f9, $a2, $3a, $9d, $1a, $91
	db $bd, $61, $88, $52, $1c, $09, $25, $a4, $e2, $08, $1a
	db $95, $54, $3b, $4c, $7c, $14, $07, $2b, $e1, $27

	db $10, $0a, $6d, $13, $f1, $2d, $26
	db $96, $9a

Route84_Trainer_3:
	trainer EVENT_ROUTE_84_TRAINER_3, SKIER, 5, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $29, $23, $44, $59, $f2, $30, $92, $27
	db $50, $f2, $02, $f9, $c5, $9e, $f7, $a0, $a5, $46, $35
	db $e5, $57, $26, $1e, $57, $a2, $12, $0a, $9e
	db $0a, $68

.battle_won_text
	db TX_COMPRESSED, $07, $86, $e5, $a7, $6e, $3a, $2c
	db $79, $90, $be, $23, $ba, $32, $0c, $9c, $f1
	db $a6, $80

.after_battle_text
	db TX_COMPRESSED, $29, $23, $44, $59, $f2, $30, $93, $14, $0e
	db $72, $f7, $26, $1e, $57, $a2, $12, $0a, $0d, $11, $1a, $3c
	db $80, $b0, $c6, $42, $f9, $cc, $16, $17, $e0, $7b
	db $97, $ba, $7c, $99, $33, $ab, $05, $01, $ca, $f8, $49

	db $e0, $05, $24, $c1, $47, $f7, $27, $2d, $23
	db $43, $d6, $93, $82, $0d, $78, $1b, $37, $04, $77, $59
	db $35, $58, $05, $71, $01, $7c, $e2, $14, $b6, $c6, $4e, $78
	db $d3, $40

Route84_Trainer_4:
	trainer EVENT_ROUTE_84_TRAINER_4, HIKER, 13, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $29, $3b, $72, $da, $21, $0f, $b2, $ad, $41, $29
	db $8f, $3e, $d3, $29, $96, $b0, $b4, $af, $a7

	db $e0, $02, $65, $a4, $5c, $21, $9e, $65, $86, $29, $19, $88
	db $78, $42, $c2, $20, $d7, $2d, $7a, $ca, $94, $0e
	db $0a, $aa, $49, $ac, $e0, $20, $b4, $5c, $73, $90, $8c, $9c, $f1
	db $a6, $80

.battle_won_text
	db TX_COMPRESSED, $62, $1e, $e6, $0e
	db $fd, $4d

.after_battle_text
	db TX_COMPRESSED, $75, $32, $12, $53, $21, $83, $19, $21, $0c
	db $f2, $f6, $c6, $42, $f8, $8d, $42, $3f, $13, $a9, $d4, $ef
	db $1a, $68

Route84_MapEventHeader:: db 0, 0

.Warps: db 2
	warp_def 7, 63, 5, CLATHRITE_1F
	warp_def 5, 7, 1, PHLOX_ENTRY

.CoordEvents: db 0

.BGEvents: db 2
	signpost 5, 42, SIGNPOST_ITEM, Route84HiddenItem
	signpost 9, 24, SIGNPOST_LOAD, Route84DirectionsSign

.ObjectEvents: db 6
	person_event SPRITE_COOLTRAINER_M, 8, 25, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_TRAINER, 3, Route84_Trainer_1, -1
	person_event SPRITE_BUENA, 11, 35, SPRITEMOVEDATA_SPINRANDOM_FAST, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_TRAINER, 3, Route84_Trainer_2, -1
	person_event SPRITE_BUENA, 10, 18, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_TRAINER, 4, Route84_Trainer_3, -1
	person_event SPRITE_HIKER, 7, 8, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, 8, PERSONTYPE_TRAINER, 4, Route84_Trainer_4, -1
	person_event SPRITE_FRUIT_TREE, 17, 29, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, Route84FruitTree, -1
	person_event SPRITE_POKE_BALL, 14, 51, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_YELLOW, PERSONTYPE_TMHMBALL, TM_STEEL_EATER, 0, EVENT_ROUTE_84_TM

