Route49Gate_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

Route49NPC:
	jumptext Route49BikeText

Route49NoBike:
	checkitem BICYCLE
	sif true
		end
	faceperson PLAYER, LAST_TALKED
	opentext
	writetext Route49NoBikeText
	closetext
	applymovement PLAYER, Route49GateNoBikeLeave
	end

Route49GateNoBikeLeave:
	step_right
	step_end

Route49NoBikeText:
	db TX_COMPRESSED, $29, $23, $44, $1a, $26, $c4, $59, $98
	db $87, $96, $1d, $cf

	db $80, $3a, $8c, $e9, $29, $93, $a7, $70, $10, $5a
	db $7a, $d2, $b0, $b5, $ca, $65, $43, $b4, $85, $ab
	db $9a, $a8, $48, $6c, $82, $67, $a7
	db $ea, $78, $80

Route49BikeText:
	db TX_COMPRESSED, $12, $38, $ce, $ac, $f0, $6b, $be

	db $01, $c0, $12, $53, $22, $b1, $a9, $1c, $0e, $18, $40
	db $e0, $f5, $a4, $e6, $42, $ca, $92
	db $3d, $4d

Route49Gate_MapEventHeader ;filler
	db 0, 0

;warps
	db 4
	warp_def $4, $0, 2, ROUTE_49
	warp_def $5, $0, 2, ROUTE_49
	warp_def $4, $7, 4, ROUTE_49
	warp_def $5, $7, 4, ROUTE_49

	;xy triggers
	db 4
	xy_trigger 0, 3, 3, $0, Route49NoBike, $0, $0
	xy_trigger 0, 4, 3, $0, Route49NoBike, $0, $0
	xy_trigger 0, 5, 3, $0, Route49NoBike, $0, $0
	xy_trigger 0, 6, 3, $0, Route49NoBike, $0, $0

	;signposts
	db 0

	;people-events
	db 1
	person_event SPRITE_OFFICER, 1, 3, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_BROWN, PERSONTYPE_SCRIPT, 0, Route49NPC, -1

