LongTunnelSidescroll_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

LongTunnelSidescrollGuard:
	faceplayer
	opentext
	checkitem RIJON_PASS
	sif false, then
		checkevent EVENT_ROUTE_73_GUARD
		sif true
			jumptext .no_pass_text_2
		jumptext .no_pass_text_1
	sendif
	writetext .gave_rijon_pass_text
	takeitem RIJON_PASS, 1
	showtext .before_leaving_text
	applymovement 2, .guard_goes_away
	disappear 2
	setevent EVENT_RIJON_GUARD
	end

.guard_goes_away
	step_right
	step_up
	step_up
	step_right
	step_up
	step_up
	step_up
	step_end

.no_pass_text_1
	db TX_COMPRESSED, $62, $7d, $e8

	db $7c, $01, $d4, $67, $49, $4c, $9d, $3b, $80, $82
	db $d3, $d6, $95, $85, $ae, $53, $2a, $1d, $a4, $2d
	db $5a, $ad, $8e, $41, $d3, $81, $24, $e1, $d4, $23

	db $c0, $1b, $42, $f9, $c5, $7a, $ca, $94, $a9, $26
	db $47, $81, $05, $a8, $9d, $06, $38, $12, $1f
	db $a9, $a0

.no_pass_text_2
	db TX_COMPRESSED, $ae, $39, $07, $4e, $04, $93, $87, $50, $88, $34
	db $3c, $b3, $16, $6d, $0d, $67, $99, $61, $82, $35, $08
	db $f5, $34

.gave_rijon_pass_text
	db TX_COMPRESSED, $a7, $8e, $27, $49, $93, $cc, $b4
	db $9b, $ce, $41, $d3, $81, $24, $e1, $d4, $22, $58
	db $55, $5a, $4e, $72, $d6, $af, $3e
	db $07, $30

.before_leaving_text
	db TX_COMPRESSED, $c7, $3b, $8f, $9c, $06, $35, $8f, $00
	db $4f, $5a, $46, $88, $ce, $af, $34, $f0

	db $00, $75, $73, $a1, $0a, $92, $27, $46, $a4, $70, $10, $5a
	db $7b, $56, $73, $90, $87, $32, $c3, $39, $0f

	db $10, $02, $e2, $53, $81, $05, $2d, $27, $1c, $83, $a7, $02
	db $47, $96, $7c, $8c, $24
	db $e3, $4f, $10

LongTunnelSidescroll_MapEventHeader:: db 0, 0

.Warps
	db 2
	warp_def $5, $6, 3, LONG_TUNNEL_PATH
	warp_def $5, $62, 5, LONG_TUNNEL_PATH

.CoordEvents
	db 0

.BGEvents
	db 0

.ObjectEvents
	db 2
	person_event SPRITE_OFFICER, 17, 13, SPRITEMOVEDATA_STANDING_LEFT, 0, 0, -1, -1, PAL_OW_BROWN, PERSONTYPE_SCRIPT, 0, LongTunnelSidescrollGuard, EVENT_RIJON_GUARD
	person_event SPRITE_POKE_BALL, 6, 26, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 5, MINING_PICK, EVENT_LONG_TUNNEL_SIDESCROLL_ITEM_MINING_PICKS

