Route81Goodrod_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

Route81GoodrodNPC:
	faceplayer
	opentext
	checkevent EVENT_ROUTE_81_GOODROD
	sif true
		jumptext .already_gave_rod_text
	giveitem GOOD_ROD, 1
	sif false
		jumptext .no_space_text
	writetext .introduction_text
	playwaitsfx SFX_ITEM
	itemnotify
	setevent EVENT_ROUTE_81_GOODROD
	endtext

.introduction_text
	db TX_COMPRESSED, $62, $3e

	db $20, $1d, $16, $4b, $49, $c5, $31, $a1, $23, $27
	db $2f, $30, $9a, $5b, $58, $a9, $e0, $8d, $25, $ff

	db $00, $6e, $6e, $1e, $fe, $3a, $2c, $8b, $3e, $ed, $9e
	db $5e, $b0, $c4, $8d, $f8, $80, $be, $69, $0d, $5e

	db $01, $59, $01, $55, $a0, $bf, $1d, $44, $e8, $31, $cd
	db $7b, $90, $87, $31, $61, $cc, $67, $7b, $d3
	db $ca, $a6, $10, $43, $98, $e4, $0e, $66, $01, $5c, $04, $16

	db $bc, $00, $5c, $4a, $70, $20, $b8
	db $d3, $40

.already_gave_rod_text
	db TX_COMPRESSED, $29, $27, $18, $41, $0e, $63, $90, $39, $83, $44
	db $d7, $ba, $1b, $8a, $ce, $ec, $d7, $2d, $3a
	db $45, $56, $9d, $b8, $ef, $b9, $8e, $40, $e7

	db $c0, $18, $84, $2a, $53, $49, $98, $ce, $db, $29
	db $79, $01, $7c, $e2, $cf, $7b, $15, $8f
	db $95, $40, $e5, $7c, $24, $98, $05, $71, $f3
	db $e3, $4d

.no_space_text
	db TX_COMPRESSED, $53, $59, $9c, $40, $5f, $38, $81, $1a, $c9, $f1
	db $a6, $80

Route81Goodrod_MapEventHeader ;filler
	db 0, 0

;warps
	db 2
	warp_def $7, $2, 7, ROUTE_81
	warp_def $7, $3, 7, ROUTE_81

	;xy triggers
	db 0

	;signposts
	db 0

	;people-events
	db 1
	person_event SPRITE_FISHING_GURU, 3, 2, SPRITEMOVEDATA_00, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, Route81GoodrodNPC, -1

