Route47_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 1
	dbw MAPCALLBACK_NEWMAP, .set_bike_on

.set_bike_on
	setflag ENGINE_ALWAYS_ON_BIKE
	return

Route47HiddenItem:
	dw EVENT_ROUTE_47_HIDDENITEM_GOLD_TOKEN
	db GOLD_TOKEN

Route47DirectionsSign:
	db TX_COMPRESSED, $13, $5a, $b8, $9a, $ce, $e3, $90, $2d, $59, $c1, $65, $4f
	db $e9, $e1, $09, $ad, $5c, $4d, $67, $51, $d7, $4e, $9d, $8a, $61, $59, $a2
	db $e9, $e1, $09, $ac, $ea, $47, $20, $5a, $b3, $94, $fe, $9f, $01, $12
	db $a6, $80

Route47_Trainer_1:
	trainer EVENT_ROUTE_47_TRAINER_1, BIKER, 8, .before_battle_text, .battle_won_text

	db TX_COMPRESSED, $e0, $09, $29, $90, $43, $48, $4c, $1d
	db $fa, $9a

.before_battle_text
	db TX_COMPRESSED, $72, $85, $a8, $ce, $90, $81, $b8, $64, $b3
	db $5b, $d6, $91, $a2, $73, $b6, $7e
	db $a6, $80

.battle_won_text
	db TX_COMPRESSED, $6e, $7d, $ef, $e1, $03, $54, $04, $16, $a3, $3a, $4f
	db $53, $40

Route47_Trainer_2:
	trainer EVENT_ROUTE_47_TRAINER_2, BIKER, 7, .before_battle_text, .battle_won_text

	db TX_COMPRESSED, $13, $2d, $22, $e7, $21, $21, $36, $32, $91, $f7, $be
	db $a6, $80

.before_battle_text
	db TX_COMPRESSED, $74, $59, $35, $58, $5a, $b9, $61
	db $79, $90, $ea, $2e, $64, $35, $13
	db $d4, $d0

.battle_won_text
	db TX_COMPRESSED, $50, $ca, $ce, $a8, $3b
	db $f5, $34

Route47_MapEventHeader ;filler
	db 0, 0

;warps
	db 1
	warp_def $5, $19, 2, ROUTE_34_GATE

	;xy triggers
	db 0

	;signposts
	db 2
	signpost 9, 11, SIGNPOST_ITEM, Route47HiddenItem
	signpost 15, 5, SIGNPOST_LOAD, Route47DirectionsSign

	;people-events
	db 2
	person_event SPRITE_BIKER, 6, 22, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_GENERICTRAINER, 3, Route47_Trainer_1, -1
	person_event SPRITE_BIKER, 11, 5, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_OW_BLUE, PERSONTYPE_GENERICTRAINER, 2, Route47_Trainer_2, -1

