RijonLeagueInside_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 1
	dbw 5, .vacation_check
	
.vacation_check
	setevent EVENT_LEAGUE_BLOCKER
	checkevent EVENT_RIJON_LEAGUE_WON
	sif false
		return
	checkcode VAR_BADGES
	sif <, 20
		clearevent EVENT_LEAGUE_BLOCKER
	return

RijonLeagueInsideNPC1:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $51, $61, $65, $4a, $04, $91, $0d, $08, $11, $d1, $9a
	db $1e, $56, $78, $05, $67, $12, $7b, $91, $93
	db $95, $43, $27

	db $80, $39, $42, $d3, $87, $b0, $86, $79, $96, $93, $7f
	db $8d, $34

RijonLeagueInsideNPC2:
	jumptextfaceplayer .text

.text
	db TX_COMPRESSED, $72, $87, $f1, $b5, $3a, $f8, $88, $32, $4b, $49
	db $bc, $fe, $a9, $0c, $9c, $f1

	db $00, $52, $4e, $36, $a7, $5f, $10, $30, $92, $24, $d6
	db $6f, $0d, $10, $81, $82, $1a, $42, $42, $0c, $6b

	db $e2, $00, $a4, $9c, $29, $7a, $32, $1a, $e2, $91, $03, $51
	db $1e, $d4, $41, $25, $86, $a2, $4a, $b5, $10, $24, $64
	db $d5, $5a, $4e, $36, $a7, $5f, $10, $30, $93

	db $c0, $04, $9a, $be

	db $20, $2b, $20, $6d, $26, $b9, $d3, $e4, $c9, $9d, $58
	db $27, $8a, $5e, $8c, $86, $b8, $ac, $d1, $67
	db $95, $49, $1b, $fc
	db $69, $a0

RijonLeagueInsideShopAttendant:
	faceplayer
	opentext
	pokemart 0, 14
	closetext
	end

RijonLeagueInsideNurse:
	jumpstd pokecenternurse
	
RijonLeagueInsideGuard:
	jumptextfaceplayer .text
	
.text
	db TX_COMPRESSED, $29, $27, $1c, $83, $a7, $02, $49, $8e, $7b, $cb
	db $46, $f0, $d1, $2c, $df, $10, $15, $ea, $c7, $d0
	db $4a, $99, $e8, $50, $79

	db $f0, $02, $92, $73, $a7, $bc, $b4, $71, $f3, $7d, $59, $ad
	db $0f, $6a, $ce, $5e, $a9, $0c, $9c, $cd, $95, $1f
	
	db $7a, $03, $26, $83, $58, $31, $e6, $03, $6b, $3b, $63, $09
	db $1e, $dc, $2c, $d7, $36, $32, $b6, $90, $91, $93
	db $95, $59, $3c, $0f, $6f
	
	db $c0, $1b, $42, $f9, $c5, $7a, $ca, $94, $ee, $d9, $af
	db $d4, $d0

RijonLeagueInside_MapEventHeader ;filler
	db 0, 0

;warps
	db 3
	warp_def $7, $6, 1, RIJON_LEAGUE_OUTSIDE
	warp_def $7, $7, 2, RIJON_LEAGUE_OUTSIDE
	warp_def $0, $7, 1, RIJON_LEAGUE_YUKI

	;xy triggers
	db 0

	;signposts
	db 0

	;people-events
	db 5
	person_event SPRITE_ROCKER, 6, 11, SPRITEMOVEDATA_00, 0, 0, -1, -1, PAL_OW_RED, 0, 0, RijonLeagueInsideNPC1, -1
	person_event SPRITE_COOLTRAINER_M, 4, 2, SPRITEMOVEDATA_00, 0, 0, -1, -1, PAL_OW_RED, 0, 0, RijonLeagueInsideNPC2, -1
	person_event SPRITE_CLERK, 1, 12, SPRITEMOVEDATA_00, 0, 0, -1, -1, PAL_OW_RED, 0, 0, RijonLeagueInsideShopAttendant, -1
	person_event SPRITE_NURSE, 1, 4, SPRITEMOVEDATA_00, 0, 0, -1, -1, PAL_OW_RED, 0, 0, RijonLeagueInsideNurse, -1
	person_event SPRITE_COOLTRAINER_M, 1, 7, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_BLUE, 0, 0, RijonLeagueInsideGuard, EVENT_LEAGUE_BLOCKER

