Route51_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

Route51HiddenItem:
	dw EVENT_ROUTE_51_HIDDENITEM_GOLD_TOKEN
	db GOLD_TOKEN

Route51DirectionsSign:
	db TX_COMPRESSED, $13, $5a, $bc, $72, $05, $ab, $38, $2d, $8b
	db $14, $f0, $84, $d6, $75, $18, $e8, $2a, $b5, $79, $8d, $a3, $b0
	db $54, $d0

Route51_Trainer:
	trainer EVENT_ROUTE_51_TRAINER_1, SUPER_NERD, 4, .before_battle_text, .battle_won_text, $0000, .Script

.Script
	end_if_just_battled
	jumptext .after_battle_text

.before_battle_text
	db TX_COMPRESSED, $50, $17, $cc, $24, $38, $84, $85, $ae
	db $e5, $e6, $7a, $7a, $b9, $69, $1a, $20, $8d, $b4

	db $f8, $02, $98, $56, $c8, $c9, $cc, $10, $61, $11, $d3, $96
	db $17, $aa, $de, $a9, $4b, $4a, $c2, $d7, $29
	db $00, $83, $06, $35, $ef, $62, $be, $ee, $4d, $10, $38
	db $3d, $ca, $f5, $08, $83, $44, $a7, $1a, $45
	db $80, $10, $10, $ae, $72, $b0, $b4, $4c
	db $bd, $93, $40, $f9, $27
	db $a9, $a0

.battle_won_text
	db TX_COMPRESSED, $6e, $7d, $ef, $e5, $a4, $68, $82, $1a, $b4
	db $3d, $69, $19, $39, $44, $19, $2c
	db $2a, $84, $1a, $d0, $20, $d9, $b1, $83, $1f
	db $a9, $a0

.after_battle_text
	db TX_COMPRESSED, $75, $39, $68, $d0, $88, $ea, $54, $16, $bb, $92, $53
	db $1e, $4e, $83, $1c, $c0, $2d, $13, $32, $d2, $68
	db $30, $1c, $ac, $f6, $e0, $39, $5f, $09, $20, $f0
	db $78, $77, $2a, $d4, $12, $99, $30, $0a, $e5, $a4, $68
	db $55, $ca, $f5, $08, $05, $04, $6d, $a7
	db $d4, $d0

Route51_MapEventHeader ;filler
	db 0, 0

;warps
	db 0

	;xy triggers
	db 0

	;signposts
	db 2
	signpost 5, 11, SIGNPOST_LOAD, Route51DirectionsSign
	signpost 4, 4, SIGNPOST_ITEM, Route51HiddenItem

	;people-events
	db 1
	person_event SPRITE_YOUNGSTER, 14, 13, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_TRAINER, 3, Route51_Trainer, -1

