shithub: pokecrystal

ref: 7ab25c9f5996f4d9179a25363b38d62bdac0ddd9
dir: /maps/VermilionPort.asm/

View raw version
VermilionPort_MapScriptHeader: ; 0x74d90
	; trigger count
	db 2

	; triggers
	dw UnknownScript_0x74d9d, $0000
	dw UnknownScript_0x74d9e, $0000

	; callback count
	db 1

	; callbacks

	dbw 5, UnknownScript_0x74da2
; 0x74d9d

UnknownScript_0x74d9d: ; 0x74d9d
	end
; 0x74d9e

UnknownScript_0x74d9e: ; 0x74d9e
	priorityjump UnknownScript_0x74da6
	end
; 0x74da2

UnknownScript_0x74da2: ; 0x74da2
	setflag $003a
	return
; 0x74da6

UnknownScript_0x74da6: ; 0x74da6
	applymovement $0, MovementData_0x74ef3
	appear $2
	dotrigger $0
	setevent $0731
	setevent $0730
	setevent $0739
	clearevent $0733
	setevent $0030
	setevent $0000
	blackoutmod GROUP_VERMILION_CITY, MAP_VERMILION_CITY
	end
; 0x74dc4

SailorScript_0x74dc4: ; 0x74dc4
	faceplayer
	loadfont
	checkevent $0000
	iftrue UnknownScript_0x74e1a
	2writetext UnknownText_0x74f06
	closetext
	loadmovesprites
	spriteface $2, $0
	pause 10
	playsound $0023
	disappear $2
	waitbutton
	applymovement $0, MovementData_0x74ef1
	playsound $0023
	special $002e
	waitbutton
	setevent $073a
	clearevent $073b
	clearevent EVENT_BEAT_POKEMANIAC_ETHAN
	clearevent EVENT_BEAT_BURGLAR_COREY
	clearevent EVENT_BEAT_BUG_CATCHER_KEN
	clearevent EVENT_BEAT_GUITARIST_CLYDE
	clearevent EVENT_BEAT_POKEFANM_JEREMY
	clearevent EVENT_BEAT_POKEFANF_GEORGIA
	clearevent EVENT_BEAT_SAILOR_KENNETH
	clearevent EVENT_BEAT_TEACHER_SHIRLEY
	clearevent EVENT_BEAT_SCHOOLBOY_NATE
	clearevent EVENT_BEAT_SCHOOLBOY_RICKY
	setevent $002f
	appear $2
	domaptrigger GROUP_FAST_SHIP_1F, MAP_FAST_SHIP_1F, $1
	warp GROUP_FAST_SHIP_1F, MAP_FAST_SHIP_1F, $19, $1
	end
; 0x74e1a

UnknownScript_0x74e1a: ; 0x74e1a
	2writetext UnknownText_0x74f31
	closetext
	loadmovesprites
	end
; 0x74e20

UnknownScript_0x74e20: ; 0x74e20
	spriteface $3, $3
	checkevent $0000
	iftrue UnknownScript_0x74e86
	checkevent $0001
	iftrue UnknownScript_0x74e86
	spriteface $0, $2
	loadfont
	checkcode $b
	if_equal MONDAY, UnknownScript_0x74e72
	if_equal TUESDAY, UnknownScript_0x74e72
	if_equal THURSDAY, UnknownScript_0x74e7c
	if_equal FRIDAY, UnknownScript_0x74e7c
	if_equal SATURDAY, UnknownScript_0x74e7c
	2writetext UnknownText_0x74f4d
	yesorno
	iffalse UnknownScript_0x74e8d
	2writetext UnknownText_0x74f8b
	keeptextopen
	checkitem S_S_TICKET
	iffalse UnknownScript_0x74e68
	2writetext UnknownText_0x74fc2
	closetext
	loadmovesprites
	setevent $0001
	applymovement $0, MovementData_0x74ef8
	2jump SailorScript_0x74dc4
; 0x74e68

UnknownScript_0x74e68: ; 0x74e68
	2writetext UnknownText_0x74ff2
	closetext
	loadmovesprites
	applymovement $0, MovementData_0x74ef5
	end
; 0x74e72

UnknownScript_0x74e72: ; 0x74e72
	2writetext UnknownText_0x75059
	closetext
	loadmovesprites
	applymovement $0, MovementData_0x74ef5
	end
; 0x74e7c

UnknownScript_0x74e7c: ; 0x74e7c
	2writetext UnknownText_0x75080
	closetext
	loadmovesprites
	applymovement $0, MovementData_0x74ef5
	end
; 0x74e86

UnknownScript_0x74e86: ; 0x74e86
	end
; 0x74e87

UnknownScript_0x74e87: ; 0x74e87
	2writetext UnknownText_0x74fa7
	closetext
	loadmovesprites
	end
; 0x74e8d

UnknownScript_0x74e8d: ; 0x74e8d
	2writetext UnknownText_0x74fa7
	closetext
	loadmovesprites
	applymovement $0, MovementData_0x74ef5
	end
; 0x74e97

SailorScript_0x74e97: ; 0x74e97
	faceplayer
	loadfont
	checkevent $0000
	iftrue UnknownScript_0x74e1a
	checkcode $b
	if_equal MONDAY, UnknownScript_0x74eda
	if_equal TUESDAY, UnknownScript_0x74eda
	if_equal THURSDAY, UnknownScript_0x74ee0
	if_equal FRIDAY, UnknownScript_0x74ee0
	if_equal SATURDAY, UnknownScript_0x74ee0
	2writetext UnknownText_0x74f4d
	yesorno
	iffalse UnknownScript_0x74e87
	2writetext UnknownText_0x74f8b
	keeptextopen
	checkitem S_S_TICKET
	iffalse UnknownScript_0x74ed4
	2writetext UnknownText_0x74fc2
	closetext
	loadmovesprites
	setevent $0001
	applymovement $0, MovementData_0x74efe
	2jump SailorScript_0x74dc4
; 0x74ed4

UnknownScript_0x74ed4: ; 0x74ed4
	2writetext UnknownText_0x74ff2
	closetext
	loadmovesprites
	end
; 0x74eda

UnknownScript_0x74eda: ; 0x74eda
	2writetext UnknownText_0x75059
	closetext
	loadmovesprites
	end
; 0x74ee0

UnknownScript_0x74ee0: ; 0x74ee0
	2writetext UnknownText_0x75080
	closetext
	loadmovesprites
	end
; 0x74ee6

SuperNerdScript_0x74ee6: ; 0x74ee6
	faceplayer
	loadfont
	2writetext UnknownText_0x750a6
	closetext
	loadmovesprites
	end
; 0x74eee

MapVermilionPortSignpostItem0: ; 0x74eee
	dw $00eb
	db IRON
	
; 0x74ef1

MovementData_0x74ef1: ; 0x74ef1
	step_down
	step_end
; 0x74ef3

MovementData_0x74ef3: ; 0x74ef3
	step_up
	step_end
; 0x74ef5

MovementData_0x74ef5: ; 0x74ef5
	step_right
	turn_head_left
	step_end
; 0x74ef8

MovementData_0x74ef8: ; 0x74ef8
	step_down
	step_down
	step_down
	step_down
	step_down
	step_end
; 0x74efe

MovementData_0x74efe: ; 0x74efe
	step_right
	step_down
	step_down
	step_down
	step_down
	step_down
	step_down
	step_end
; 0x74f06

UnknownText_0x74f06: ; 0x74f06
	text "We're departing"
	line "soon. Please get"
	cont "on board."
	done
; 0x74f31

UnknownText_0x74f31: ; 0x74f31
	text "Sorry. You can't"
	line "board now."
	done
; 0x74f4d

UnknownText_0x74f4d: ; 0x74f4d
	text "Welcome to FAST"
	line "SHIP S.S.AQUA."

	para "Will you be board-"
	line "ing today?"
	done
; 0x74f8b

UnknownText_0x74f8b: ; 0x74f8b
	text "May I see your"
	line "S.S.TICKET?"
	done
; 0x74fa7

UnknownText_0x74fa7: ; 0x74fa7
	text "We hope to see you"
	line "again!"
	done
; 0x74fc2

UnknownText_0x74fc2: ; 0x74fc2
	text $52, " flashed"
	line "the S.S.TICKET."

	para "That's it."
	line "Thank you!"
	done
; 0x74ff2

UnknownText_0x74ff2: ; 0x74ff2
	text $52, " tried to"
	line "show the S.S."
	cont "TICKET…"

	para "…But no TICKET!"

	para "Sorry!"
	line "You may board only"

	para "if you have an"
	line "S.S.TICKET."
	done
; 0x75059

UnknownText_0x75059: ; 0x75059
	text "The FAST SHIP will"
	line "sail on Wednesday."
	done
; 0x75080

UnknownText_0x75080: ; 0x75080
	text "The FAST SHIP will"
	line "sail next Sunday."
	done
; 0x750a6

UnknownText_0x750a6: ; 0x750a6
	text "You came from"
	line "JOHTO?"

	para "I hear many rare"
	line "#MON live over"
	cont "there."
	done
; 0x750e3

VermilionPort_MapEventHeader: ; 0x750e3
	; filler
	db 0, 0

	; warps
	db 2
	warp_def $5, $9, 5, GROUP_VERMILION_PORT_PASSAGE, MAP_VERMILION_PORT_PASSAGE
	warp_def $11, $7, 1, GROUP_FAST_SHIP_1F, MAP_FAST_SHIP_1F

	; xy triggers
	db 1
	xy_trigger 0, $b, $7, $0, UnknownScript_0x74e20, $0, $0

	; signposts
	db 1
	signpost 13, 16, $7, MapVermilionPortSignpostItem0

	; people-events
	db 3
	person_event SPRITE_SAILOR, 21, 11, $7, $0, 255, 255, $0, 0, SailorScript_0x74dc4, $072b
	person_event SPRITE_SAILOR, 15, 10, $9, $0, 255, 255, $0, 0, SailorScript_0x74e97, $ffff
	person_event SPRITE_SUPER_NERD, 15, 15, $5, $2, 255, 255, $0, 0, SuperNerdScript_0x74ee6, $ffff
; 0x75127