IntroCave_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

IntroCaveNPC:
	faceplayer
	showtext .initial_text
	applymovement 2, .man_leaves
	applymovement PLAYER, .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, $bf, $14, $87, $9f, $cd, $59, $c0, $41
	db $69, $ee, $85, $17

	db $4a, $01, $ca, $16, $97, $19, $d7, $c4, $20, $76, $70, $68
	db $79, $a1, $10, $81, $5d, $a6

	db $94, $01, $49, $38, $23, $6d, $32, $ad
	db $43, $ca, $fa, $16, $54, $8f, $31, $58, $29
	db $aa, $bb, $a4, $ca, $3a, $3c, $9d

	db $28, $06, $e7, $de, $fe, $02, $0b, $45, $c7, $06
	db $47, $ba, $d3, $2a, $5c

	db $40, $14, $91, $a2, $33, $ab, $b9, $50, $fb
	db $d7, $af, $54, $8e, $02, $0b, $51, $63, $e5
	db $36, $a9, $5e, $b2, $a5, $2d, $26, $b3
	db $f5, $3c, $40

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, PERSONTYPE_SCRIPT, 0, IntroCaveNPC, -1

