CastroDock_MapScriptHeader;trigger count
	db 0
 ;callback count
	db 0

CastroDockNPC1:
	jumptextfaceplayer CastroDockNPC1_Text

CastroDockNPC2:
	faceplayer
	opentext
	writetext CastroDockNPC2_Text_Welcome
	waitbutton
	checkitem FERRY_TICKET
	sif false
		jumptext CastroDockNPC2_Text_NoTicket
	writetext CastroDockNPC2_Text_WantToGo
	yesorno
	sif false, then
		closetext
		end
	sendif
	writetext CastroDockNPC2_Text_Departing
	waitbutton
	closetext
	spriteface 3, DOWN
	pause 10
	playsound SFX_EXIT_BUILDING
	disappear 3
	waitsfx
	applymovement PLAYER, CastroDockMoveDown
	playsound SFX_EXIT_BUILDING
	disappear 0
	waitsfx
	playsound SFX_BOAT 
	waitsfx
	warp ROUTE_86_DOCK, 9, 22
	end

CastroDockMoveDown:
	step_down
	step_end

CastroDockNPC1_Text:
	db TX_COMPRESSED, $72, $85, $a8, $43, $3c, $cd
	db $79, $02, $0d, $91, $ef, $65, $8d, $95, $23

	db $b0, $16, $18, $ac, $3a, $bc, $cb, $49
	db $bd, $81, $ad, $60

	db $bc, $03, $80, $32, $d2, $60, $a2, $2c, $7d
	db $eb, $cf, $ea, $91, $cb, $48, $50, $74
	db $b4, $d0

CastroDockNPC2_Text_Welcome:
	db TX_COMPRESSED, $6e, $7d, $64, $2f, $9c, $b0, $cb, $49
	db $bd, $5a, $d9, $dc, $9c, $53, $35, $ac, $17

	db $10, $1c, $01, $80, $82, $d4, $4e, $83, $1c
	db $d7, $ac, $6c, $a9, $1d, $d2
	db $d3, $40

CastroDockNPC2_Text_WantToGo:
	db TX_COMPRESSED, $6e, $12, $64, $d7, $83, $5d

	db $e2, $01, $b8, $5a, $ee, $60, $20, $b5, $3a, $35, $23, $96
	db $17, $95, $87, $57, $99, $a4, $cc, $49, $ee, $65
	db $85, $55, $a4, $e0, $96, $dd, $f4, $e5, $6b, $67, $72, $74
	db $b4, $d0

CastroDockNPC2_Text_Departing:
	db TX_COMPRESSED, $61, $2c, $f6, $f8

	db $80, $6e, $6e, $1e, $cc, $98, $8d, $5d, $c5, $8f, $94
	db $db, $c4, $0d, $5c
	db $69, $a0

CastroDockNPC2_Text_NoTicket:
	db TX_COMPRESSED, $50, $15, $ac, $17, $e1, $03, $2c, $6c, $a9, $1d
	db $fd, $e2, $06, $19, $2d, $60, $b8
	db $d3, $40

CastroDock_MapEventHeader ;filler
	db 0, 0

;warps
	db 1
	warp_def $5, $9, 2, CASTRO_DOCK_PATH

	;xy triggers
	db 0

	;signposts
	db 0

	;people-events
	db 2
	person_event SPRITE_SAILOR, 8, 3, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, PAL_OW_BLUE, 0, 0, CastroDockNPC1, -1
	person_event SPRITE_SAILOR, 15, 9, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_OW_BLUE, 0, 0, CastroDockNPC2, -1

