FirelightMinecart_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

FirelightMinecartSignpost1:
	opentext
	writetext FirelightMinecartSignpost1_Text_146760
	waitbutton
	writetext FirelightMinecartSignpost1_Text_14677e
	loadmenudata FirelightMinecartMenuDataHeader
	verticalmenu
	closewindow
	if_equal 1, FirelightMinecart_146890
	if_equal 2, FirelightMinecart_146898
	if_equal 3, FirelightMinecart_1468a0
	closetext
	end

FirelightMinecartMenuDataHeader:
	db $40 ; flags
	db 02, 00 ; start coords
	db 11, 19 ; end coords
	dw .MenuData2
	db 1 ; default option

.MenuData2:
	db $80 ; flags
	db 4 ; items
	db "Acqua Mines@"
	db "Clathrite Tunnel@"
	db "Mound Cave@"
	db "Cancel@"

FirelightMinecart_Item_1:
	db CONFUSEGUARD, 1

FirelightMinecartNPC1:
	jumpstd smashrock

FirelightMinecart_146890:
	warp ACQUA_START, 28, 35
	closetext
	end

FirelightMinecart_146898:
	warp CLATHRITE_1F, 20, 37
	closetext
	end

FirelightMinecart_1468a0:
	warp MOUND_B3F, 8, 57
	closetext
	end

FirelightMinecartSignpost1_Text_146760:
	ctxt "This mine cart"
	line "seems stable!"
	done

FirelightMinecartSignpost1_Text_14677e:
	ctxt "Where do you want"
	line "to go?"
	done

FirelightMinecart_MapEventHeader:: db 0, 0

.Warps: db 1
	warp_def 7, 5, 2, FIRELIGHT_ROOMS

.CoordEvents: db 0

.BGEvents: db 1
	signpost 14, 12, SIGNPOST_READ, FirelightMinecartSignpost1

.ObjectEvents: db 2
	person_event SPRITE_POKE_BALL, 7, 10, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, FirelightMinecart_Item_1, EVENT_FIRELIGHT_MINECART_ITEM_1
	person_event SPRITE_ROCK, 4, 8, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_BROWN, PERSONTYPE_SCRIPT, 0, FirelightMinecartNPC1, -1
