AcquaStart_MapScriptHeader;trigger count
	db 0
; callback count
	db 0

AcquaStart_Item:
	db MAX_REVIVE, 1

AcquaStart_ForcedWildShinx:
	loadwildmon SHINX, 2
	startbattle
	reloadmapafterbattle
	dotrigger $1
	wildon
	end

AcquaStartMinecart:
	checkevent EVENT_MOUND_CAVE_RIVAL
	sif false
		jumptext .broken_cart_text
	opentext
	writetext .stable_cart_text
	writetext .where_to_text
	menuanonjumptable .menu_data_header
	dw .nope
	dw .mound
	dw .clathrite
	dw .firelight
	dw .nope

.mound
	warp MOUND_B3F, 8, 57
.nope
	closetext
	end

.clathrite
	warp CLATHRITE_1F, 20, 37
	closetext
	end

.firelight
	warp FIRELIGHT_MINECART, 12, 13
	closetext
	end

.menu_data_header
	db $40 ; flags
	db 02, 00 ; start coords
	db 11, 19 ; end coords
	dw .menu_options
	db 1 ; default option

.menu_options
	db $80 ; flags
	db 4 ; items
	db "Mound Cave@"
	db "Clathrite Tunnel@"
	db "Firelight Caverns@"
	db "Cancel@"

.broken_cart_text
	ctxt "The minecart is"
	line "broken!"
	done

.stable_cart_text
	ctxt "This mine cart"
	line "seems stable!"
	sdone

.where_to_text
	ctxt "Where do you want"
	line "to go?"
	done

AcquaStartLarvitar:
	faceplayer
	refreshscreen 0
	pokepic LARVITAR
	cry LARVITAR
	waitbutton
	closepokepic
	opentext
	writetext .found_larvitar_text
	yesorno
	sif false
		jumptext .declined_text
	setevent EVENT_ACQUA_LARVITAR
	writetext .holding_ball_text
	buttonsound
	waitsfx
	disappear 2
	pokenamemem LARVITAR, 0
	writetext .got_larvitar_text
	playwaitsfx SFX_CAUGHT_MON
	buttonsound
	givepoke LARVITAR, 5, NO_ITEM, 0
	closetext
	end

.found_larvitar_text
	ctxt "This Larvitar is"
	line "blocking you."

	para "<...>"
	line "It looks lonely."

	para "Maybe it wants to"
	line "tag along."

	para "Want to bring it"
	line "along with you?"
	done

.holding_ball_text
	ctxt "Odd<...>"

	para "The Larvitar"
	line "is holding a"
	cont "# Ball."

	para "<PLAYER> put"
	line "Larvitar into the"
	cont "# Ball."
	done

.got_larvitar_text
	ctxt "<PLAYER> received"
	line "<STRBF1>!"
	done

.declined_text
	ctxt "You're on your own"
	line "then."
	done

AcquaStart_MapEventHeader:: db 0, 0

.Warps: db 2
	warp_def 5, 37, 1, ACQUA_TUTORIAL
	warp_def 1, 3, 1, ACQUA_ROOM

.CoordEvents: db 1
	xy_trigger 0, 2, 35, $0, AcquaStart_ForcedWildShinx, $0, $0

.BGEvents: db 1
	signpost 36, 28, SIGNPOST_READ, AcquaStartMinecart

.ObjectEvents: db 3
	person_event SPRITE_LARVITAR, 17, 32, SPRITEMOVEDATA_SPINRANDOM_SLOW, 0, 0, -1, -1, PAL_OW_GREEN, PERSONTYPE_SCRIPT, 0, AcquaStartLarvitar, EVENT_ACQUA_LARVITAR
	person_event SPRITE_POKE_BALL, 8, 16, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_RED, PERSONTYPE_ITEMBALL, 0, AcquaStart_Item, EVENT_ACQUA_START_ITEM_1
	person_event SPRITE_POKE_BALL, 28, 4, SPRITEMOVEDATA_ITEM_TREE, 0, 0, -1, -1, PAL_OW_YELLOW, PERSONTYPE_TMHMBALL, TM_BODY_SLAM, 0, EVENT_ACQUA_TM76
