AcquaStart_MapScriptHeader;trigger count
	db 0
; callback count
	db 0

AcquaStart_MaxRevive:
	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
	farjump MinecartScript

.broken_cart_text
	db TX_COMPRESSED, $29, $27, $1f, $19, $0d, $9d, $5d, $c1
	db $a1, $e5, $6b, $0a, $91, $93
	db $8d, $34

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
	db TX_COMPRESSED, $29, $23, $44, $c7, $d5, $83, $0e, $f5, $70, $68
	db $79, $5f, $42, $ca, $90, $c9, $cc, $04, $16

	db $bc, $02, $9e
	db $07, $9d, $5c, $e8, $42, $a4, $89, $d0, $90, $fa, $0b

	db $c0, $05, $74, $12, $b3, $83, $b9, $56, $92, $d1, $2c
	db $2f, $5e, $f3, $37, $a1, $27, $3e

	db $00, $df, $49, $72, $c3, $15, $ac, $64, $e6, $0e
	db $de, $de, $84, $9c, $ca, $87, $69, $80, $82, $d5
	db $2d, $34

.holding_ball_text
	db TX_COMPRESSED, $77, $9c, $d3

	db $c0, $00, $a4, $9c, $c7, $d5, $83, $0e, $f5
	db $6f, $0d, $11, $21, $ee, $46, $4e, $66
	db $aa, $07, $2c, $12, $de, $f7

	db $c0, $29, $e3, $82, $1a
	db $b7, $b1, $f5, $60, $c3, $bd, $5c, $19, $2c, $32, $d2
	db $6a, $81, $cb, $04, $b7, $bd
	db $f5, $34

.got_larvitar_text
	db TX_COMPRESSED, $a7, $8e, $2c, $d9, $31, $83, $1e
	db $5e, $07, $23
	db $8d, $34

.declined_text
	db TX_COMPRESSED, $72, $85, $a2, $e3, $81, $24, $04, $16, $97, $03, $51
	db $1e, $b4, $99
	db $3d, $4d

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_MaxRevive, 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

