Route50Gate_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

Route50NoBike:
	checkitem BICYCLE
	sif true
		end
	faceperson PLAYER, 2
	showtext Route50NoBikeText
	applymovement PLAYER, Route50GateNoBikeLeave
	end

Route50GateNoBikeLeave:
	step_down
	step_end

Route50NoBikeText:
	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

Route50GateGuardText:
	db TX_COMPRESSED, $6e, $6c, $07, $13, $b9, $82, $16, $15, $7d, $37
	db $d0, $f5, $43, $b4, $c0, $6d, $26, $77, $a3, $43, $f0, $24
	db $01, $69, $38, $15, $68, $35, $83, $6d, $8c, $24
	db $7b, $26, $ca, $97
	db $80, $28, $0c, $a8, $e5, $5b, $de, $9e, $60
	db $ed, $e0, $e1, $87
	db $80, $03, $c3, $54, $10, $61, $11, $d3, $9a, $b3
	db $79, $02, $17, $a0, $80, $88, $d1, $92, $c6, $4e, $65, $a4
	db $d5, $55, $bd, $ed, $3c
	db $14, $d0

Route50Gate_MapEventHeader ;filler
	db 0, 0

;warps
	db 4
	warp_def $0, $4, 1, ROUTE_49
	warp_def $0, $5, 3, ROUTE_49
	warp_def $7, $4, 1, ROUTE_50
	warp_def $7, $5, 1, ROUTE_50

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

	;signposts
	db 0

	;people-events
	db 1
	person_event SPRITE_OFFICER, 4, 1, SPRITEMOVEDATA_STANDING_RIGHT, 0, 0, -1, -1, PAL_OW_BROWN, PERSONTYPE_TEXT, 0, Route50GateGuardText, -1

