LaurelMart_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

LaurelMartNPC1:
	faceplayer
	opentext
	pokemart 0, 7
	closetext
	end

LaurelMartNPC2:
	jumptextfaceplayer LaurelMartNPC2_Text_148f8c

LaurelMartNPC3:
	faceplayer
	opentext
	writetext LaurelMartNPC3_Text_14bd90
	waitbutton
	writetext LaurelMartNPC3_Text_14bdd2
	loadmenudata LaurelCityGoldTokenMenu
	verticalmenu
	closewindow
	if_equal 1, LaurelMart_14bc90
	if_equal 2, LaurelMart_14bcb6
	if_equal 3, LaurelMart_14bcd6
	closetext
	end

LaurelMart_14bc90:
	opentext
	writetext LaurelMart_14bc90_Text_14bdea
	yesorno
	iffalse LaurelMart_14bca5
	takeitem GOLD_TOKEN, 3
	iffalse LaurelMart_14bca7
	verbosegiveitem MOON_STONE, 1
	iffalse LaurelMart_14bcad
	closetext
	end

LaurelMart_14bcb6:
	opentext
	writetext LaurelMart_14bcb6_Text_14be58
	yesorno
	iffalse LaurelMart_14bca5
	takeitem GOLD_TOKEN, 10
	iffalse LaurelMart_14bca7
	verbosegiveitem AMULET_COIN, 1
	iffalse LaurelMart_14bccd
	closetext
	end

LaurelMart_14bcd6:
	opentext
	writetext LaurelMart_14bcb6_Text_14be58
	yesorno
	iffalse LaurelMart_14bca5
	takeitem GOLD_TOKEN, 10
	iffalse LaurelMart_14bca7
	verbosegiveitem LUCKY_EGG, 1
	iffalse LaurelMart_14bccd
	closetext
	end

LaurelMart_14bca5:
	closetext
	end

LaurelMart_14bca7:
	writetext LaurelMart_14bca7_Text_14be22
	endtext

LaurelMart_14bcad:
	giveitem GOLD_TOKEN, 3
	writetext LaurelMart_14bcad_Text_14be79
	endtext

LaurelMart_14bccd:
	giveitem GOLD_TOKEN, 10
	jumptext LaurelMart_14bcad_Text_14be79
	endtext

LaurelCityGoldTokenMenu:
	db $40 ; flags
	db 02, 00 ; start coords
	db 11, 19 ; end coords
	dw LaurelCityGoldTokenOptions
	db 1 ; default option

LaurelCityGoldTokenOptions:
	db $80
	db $4
	db "Moon Stone      3@"
	db "Amulet Coin    10@"
	db "Lucky Egg      10@"
	db "Cancel@"

LaurelMartNPC2_Text_148f8c:
	db TX_COMPRESSED, $72, $85, $a8, $ce, $92, $60, $32, $66, $04, $87
	db $1e, $61, $07, $b9, $85, $05, $48, $c9, $06, $48, $7a, $ca
	db $55, $69, $33, $0c, $18, $d6, $0a, $6a, $cf

	db $7c, $01, $d9, $0e, $0c, $91, $40, $86, $97, $c9
	db $bc, $da, $3b, $05, $f8, $12, $1c, $19
	db $15, $0a, $85, $a2, $66, $36, $e8, $31, $fe, $1d, $b3
	db $ea, $68

LaurelMartNPC3_Text_14bd90:
	db TX_COMPRESSED, $6e, $7d, $64, $2f, $9f

	db $10, $0e, $50, $b5, $19, $d2, $43, $a7, $59, $4e, $93, $93
	db $79, $84, $1e, $e6, $14, $15, $23, $22, $20, $20
	db $b4, $a9, $3a, $0c, $73, $00, $b4, $4c, $cc, $02
	db $b5, $42, $16, $31, $36, $68
	db $f5, $34

LaurelMartNPC3_Text_14bdd2:
	db TX_COMPRESSED, $6e, $91, $b2, $98, $3b, $37, $e6
	db $42, $f0, $20, $b5, $2a, $d2, $5d
	db $2d, $34

LaurelMart_14bc90_Text_14bdea:
	db TX_COMPRESSED, $29, $3b, $6e, $1e, $c5, $67, $05
	db $93, $d6, $15, $23, $22, $3f, $01, $05, $a9, $bc, $ac, $ce
	db $96, $9a

LaurelMart_14bcb6_Text_14be58:
	db TX_COMPRESSED, $29, $3b, $6e, $1e, $c5, $67, $05, $a1
	db $61, $eb, $0a, $91, $91, $1f, $80, $82, $d4, $de, $56, $67
	db $4b, $4d

LaurelMart_14bca7_Text_14be22:
	db TX_COMPRESSED, $72, $85, $a8, $43, $3c, $c7, $c2, $b3
	db $7a, $c2, $a4, $64, $44, $b4, $e9, $25, $a7
	db $6d, $55, $86, $72, $77, $2d, $23, $47
	db $a9, $a0

LaurelMart_14bcad_Text_14be79:
	db TX_COMPRESSED, $53, $59, $9c, $68, $44, $40, $5f
	db $37, $90, $23, $59, $3f, $c7, $62, $62
	db $96, $9a

LaurelMart_MapEventHeader ;filler
	db 0, 0

;warps
	db 2
	warp_def $7, $7, 9, LAUREL_CITY
	warp_def $7, $6, 9, LAUREL_CITY

	;xy triggers
	db 0

	;signposts
	db 0

	;people-events
	db 3
	person_event SPRITE_CLERK, 3, 6, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_SCRIPT, 0, LaurelMartNPC1, -1
	person_event SPRITE_SUPER_NERD, 6, 2, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, 8 + PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, LaurelMartNPC2, -1
	person_event SPRITE_CLERK, 3, 7, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, 8 + PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, LaurelMartNPC3, -1

