summaryrefslogtreecommitdiff
path: root/data/scripts/maps/LilycoveCity_Harbor.inc
blob: f8ff8f9f36c70329ed223c9865aa44846175efd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
LilycoveCity_Harbor_MapScripts:: @ 8159893
	map_script 3, LilycoveCity_Harbor_MapScript1_159899
	.byte 0

LilycoveCity_Harbor_MapScript1_159899:: @ 8159899
	warp6 LilycoveCity, 255, 12, 33
	end

LilycoveCity_Harbor_EventScript_1598A2:: @ 81598A2
	lock
	faceplayer
	checkitem ITEM_EON_TICKET, 1
	compare RESULT, 1
	jumpeq LilycoveCity_Harbor_EventScript_1599EE
	jump LilycoveCity_Harbor_EventScript_1598BA
	end

LilycoveCity_Harbor_EventScript_1598BA:: @ 81598BA
	checkflag 2052
	jumpeq LilycoveCity_Harbor_EventScript_1598CD
	msgbox LilycoveCity_Harbor_Text_18B306, 4
	release
	end

LilycoveCity_Harbor_EventScript_1598CD:: @ 81598CD
	msgbox LilycoveCity_Harbor_Text_18B36F, 4
	checkitem ITEM_SS_TICKET, 1
	compare RESULT, 0
	jumpeq LilycoveCity_Harbor_EventScript_159929
	message LilycoveCity_Harbor_Text_18B406
	waittext
	jump LilycoveCity_Harbor_EventScript_1598F1
	end

LilycoveCity_Harbor_EventScript_1598F1:: @ 81598F1
	multichoicedef 18, 6, 56, 2, 0
	switch RESULT
	case 0, LilycoveCity_Harbor_EventScript_159933
	case 1, LilycoveCity_Harbor_EventScript_15995B
	case 2, LilycoveCity_Harbor_EventScript_1599E4
	case 127, LilycoveCity_Harbor_EventScript_1599E4
	end

LilycoveCity_Harbor_EventScript_159929:: @ 8159929
	msgbox LilycoveCity_Harbor_Text_18B3A9, 4
	release
	end

LilycoveCity_Harbor_EventScript_159933:: @ 8159933
	msgbox LilycoveCity_Harbor_Text_18B47D, 5
	compare RESULT, 0
	jumpeq LilycoveCity_Harbor_EventScript_15997E
	setvar 0x40b4, 5
	call LilycoveCity_Harbor_EventScript_15998A
	warp SSTidalCorridor, 255, 1, 10
	waitstate
	release
	end

LilycoveCity_Harbor_EventScript_15995B:: @ 815995B
	msgbox LilycoveCity_Harbor_Text_18B499, 5
	compare RESULT, 0
	jumpeq LilycoveCity_Harbor_EventScript_15997E
	call LilycoveCity_Harbor_EventScript_15998A
	warp BattleTower_Outside, 255, 19, 23
	waitstate
	release
	end

LilycoveCity_Harbor_EventScript_15997E:: @ 815997E
	message LilycoveCity_Harbor_Text_18B4E2
	waittext
	jump LilycoveCity_Harbor_EventScript_1598F1
	end

LilycoveCity_Harbor_EventScript_15998A:: @ 815998A
	msgbox LilycoveCity_Harbor_Text_18B4B3, 4
	closebutton
	move LAST_TALKED, LilycoveCity_Harbor_Movement_1A0841
	waitmove 0
	pause 30
	spriteinvisible LAST_TALKED, 13, 10
	compare FACING, 2
	callif 1, LilycoveCity_Harbor_EventScript_1599D9
	compare FACING, 4
	callif 1, LilycoveCity_Harbor_EventScript_1599CE
	pause 30
	spriteinvisible 255, 0, 0
	setvar 0x8004, 2
	call LilycoveCity_Harbor_EventScript_1A040E
	return

LilycoveCity_Harbor_EventScript_1599CE:: @ 81599CE
	move 255, LilycoveCity_Harbor_Movement_159A86
	waitmove 0
	return

LilycoveCity_Harbor_EventScript_1599D9:: @ 81599D9
	move 255, LilycoveCity_Harbor_Movement_159A89
	waitmove 0
	return

LilycoveCity_Harbor_EventScript_1599E4:: @ 81599E4
	msgbox LilycoveCity_Harbor_Text_18B45B, 4
	release
	end

LilycoveCity_Harbor_EventScript_1599EE:: @ 81599EE
	checkflag 2052
	jumpif 0, LilycoveCity_Harbor_EventScript_1598BA
	checkflag 206
	jumpeq LilycoveCity_Harbor_EventScript_1598BA
	checkflag 2131
	jumpif 0, LilycoveCity_Harbor_EventScript_1598BA
	msgbox LilycoveCity_Harbor_Text_1C50F2, 4
	closebutton
	move LAST_TALKED, LilycoveCity_Harbor_Movement_1A0841
	waitmove 0
	pause 30
	spriteinvisible LAST_TALKED, 13, 10
	pause 60
	reappear 4
	pause 30
	move 4, LilycoveCity_Harbor_Movement_1A0839
	waitmove 0
	msgbox LilycoveCity_Harbor_Text_1C5120, 4
	closebutton
	move 4, LilycoveCity_Harbor_Movement_1A0841
	waitmove 0
	pause 30
	disappear 4
	compare FACING, 2
	callif 1, LilycoveCity_Harbor_EventScript_1599D9
	compare FACING, 4
	callif 1, LilycoveCity_Harbor_EventScript_1599CE
	pause 30
	spriteinvisible 255, 0, 0
	special HealPlayerParty
	setvar 0x8004, 2
	call LilycoveCity_Harbor_EventScript_1A040E
	warp SouthernIsland_Exterior, 255, 13, 22
	waitstate
	release
	end

LilycoveCity_Harbor_Movement_159A86:: @ 8159A86
	step_right
	step_26
	step_end

LilycoveCity_Harbor_Movement_159A89:: @ 8159A89
	step_up
	step_end

@ 8159A8B
	step_up
	step_end

LilycoveCity_Harbor_EventScript_159A8D:: @ 8159A8D
	lock
	faceplayer
	checkflag 2052
	jumpeq LilycoveCity_Harbor_EventScript_159AA2
	msgbox LilycoveCity_Harbor_Text_18B504, 4
	release
	end

LilycoveCity_Harbor_EventScript_159AA2:: @ 8159AA2
	msgbox LilycoveCity_Harbor_Text_18B58E, 4
	release
	end