CaperMart_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

CaperMartHiddenItem_1:
	dw EVENT_CAPER_MART_HIDDENITEM_GOLD_TOKEN
	db GOLD_TOKEN

CaperMartNPC1:
	faceplayer
	checkevent EVENT_MET_ILK
	iffalse .caperMartClosed
	opentext
	pokemart 0, 0
	closetext
	end

.caperMartClosed:
	jumptext CaperMartClosedText

CaperMartNPC2:
	jumptextfaceplayer CaperMartNPC2_Text_15db26

CaperMartNPC3:
	jumptextfaceplayer CaperMartNPC3_Text_15dada

CaperMartNPC4:
	jumptextfaceplayer CaperMartNPC4_Text_15e270

CaperMartClosedText:
	db TX_COMPRESSED, $50, $15, $ac, $17

	db $80, $37, $32, $e3, $88, $b0, $b2, $a4, $32
	db $72, $f3, $42, $20, $49, $06, $40, $63, $25, $85, $60

	db $bc, $03, $87, $a7, $a8, $38, $c8, $5f, $38, $af, $59, $52
	db $7b, $bb, $66, $bf
	db $53, $40

CaperMartNPC2_Text_15db26:
	db TX_COMPRESSED, $75, $2a, $d4, $40, $91, $93, $9a, $cb, $2d, $20
	db $f2, $f0, $70, $88, $48, $44, $74, $78, $58, $c9, $cf

	db $80, $3a, $95, $6a, $25, $38, $d2, $2e, $5a, $c1, $0c, $9c
	db $bd, $61, $98, $0f, $96, $96, $70, $2d, $5c, $a9, $3b
	db $6a, $9d, $4a, $b4, $96, $79, $96, $18, $ad, $a0, $5c
	db $69, $a0

CaperMartNPC3_Text_15dada:
	db TX_COMPRESSED, $75, $78, $a5, $5b, $ba, $0a, $58
	db $42, $f3, $21, $ee, $60, $5a, $b4, $0f, $27

	db $e0, $0e, $8b, $22, $2f, $41, $0c, $9c, $c1, $93, $21, $0a
	db $d0, $f3, $44, $b1, $f6, $5a, $46, $4e, $51, $11, $7a, $bb
	db $55, $56, $ad, $f1, $93, $98, $d0, $8f
	db $53, $40

CaperMartNPC4_Text_15e270:
	db TX_COMPRESSED, $6d, $d2, $53, $20, $20, $b5, $10, $67, $1d, $16
	db $3c, $ad, $a4, $02, $89, $35, $9d
	db $2d, $34

CaperMart_MapEventHeader ;filler
	db 0, 0

;warps
	db 2
	warp_def $7, $6, 1, CAPER_CITY
	warp_def $7, $7, 1, CAPER_CITY

	;xy triggers
	db 0

	;signposts
	db 1
	signpost 1, 10, SIGNPOST_ITEM, CaperMartHiddenItem_1

	;people-events
	db 4
	person_event SPRITE_CLERK, 3, 6, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, CaperMartNPC1, -1
	person_event SPRITE_PSYCHIC, 6, 2, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 1, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, CaperMartNPC2, -1
	person_event SPRITE_BUG_CATCHER, 7, 10, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 1, 1, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, CaperMartNPC3, -1
	person_event SPRITE_GAMEBOY_KID, 2, 3, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, CaperMartNPC4, -1

