IntroCave_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

IntroCaveNPC:
	faceplayer
	opentext
	writetext .initial_text
	closetext
	applymovement 2, .man_leaves
	applymovement 0, .player_enters_cart
	special ClearBGPalettes
	disappear 2
	special Special_ReloadSpritesNoPalettes
	playsound SFX_BALL_POOF
	writebyte 8
.loop
	playwaitsfx SFX_SANDSTORM
	addvar -1
	iftrue .loop
	playwaitsfx SFX_EMBER
	playwaitsfx SFX_STOMP
	;show logo and title music here
	callasm EnableSpriteUpdates
	warp ACQUA_START, 28, 36
	blackoutmod ACQUA_START
	end

.man_leaves
	step_right
	turn_head_left
	step_end

.player_enters_cart
	step_down
	turn_head_right
	step_sleep_8
	step_sleep_8
	step_sleep_8
	step_down
	step_down
	step_end

.initial_text
	db TX_COMPRESSED, $62, $60, $a2, $90, $f3, $f9, $ab, $38, $08, $2d
	db $3d, $d0, $a2, $e9

	db $40, $39, $42, $d2, $e3, $3a, $f8, $84, $0e, $ce, $0d
	db $0f, $34, $22, $10, $2b, $b4, $d2

	db $80, $29, $27, $04, $6d, $a6, $55, $a8
	db $79, $5f, $42, $ca, $91, $e6, $2b, $05
	db $35, $57, $74, $99, $47, $47, $93, $a5

	db $00, $dc, $fb, $d8, $08, $2d, $17, $1c, $19
	db $1e, $eb, $4c, $a9, $71

	db $00, $52, $46, $88, $ce, $ae, $e5, $43, $ef
	db $5e, $bd, $52, $38, $08, $2d, $45, $8f, $94
	db $da, $a5, $7a, $ca, $94, $b4, $9a, $cf
	db $d4, $f1, $00

IntroCave_MapEventHeader ;filler
	db 0, 0

;warps
	db 1
	warp_def $9, $5, 1, INTRO_OUTSIDE

	;xy triggers
	db 0

	;signposts
	db 0

	;people-events
	db 1
	person_event SPRITE_FISHER, 12, 12, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_OW_RED, 0, 0, IntroCaveNPC, -1

