summaryrefslogtreecommitdiff
path: root/data/maps/TwoIsland/scripts.inc
blob: 3d35a89c1dfba0e7334d5d5dcd9076cb617488b3 (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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
TwoIsland_MapScripts:: @ 8167564
	map_script 3, TwoIsland_MapScript1_16756A
	.byte 0

TwoIsland_MapScript1_16756A:: @ 816756A
	setworldmapflag FLAG_WORLD_MAP_TWO_ISLAND
	setflag FLAG_VISITED_TWO_ISLAND
	call EventScript_167576
	end

EventScript_167576:: @ 8167576
	checkflag FLAG_SYS_CAN_LINK_WITH_RS
	goto_if TRUE, EventScript_167597
	checkflag FLAG_SYS_GAME_CLEAR
	goto_if TRUE, EventScript_1675B8
	checkflag FLAG_RESCUED_LOSTELLE
	goto_if TRUE, EventScript_1675D9
	goto EventScript_1675E8
	end

EventScript_167597:: @ 8167597
	checkflag FLAG_TWO_ISLAND_SHOP_INTRODUCED
	goto_if FALSE, EventScript_1675EE
	checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_1
	goto_if FALSE, EventScript_1675F4
	checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_2
	goto_if FALSE, EventScript_1675FD
	goto EventScript_167606
	end

EventScript_1675B8:: @ 81675B8
	checkflag FLAG_TWO_ISLAND_SHOP_INTRODUCED
	goto_if FALSE, EventScript_1675EE
	checkflag FLAG_RESCUED_LOSTELLE
	goto_if FALSE, EventScript_1675EE
	checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_1
	goto_if FALSE, EventScript_1675F4
	goto EventScript_1675FD
	end

EventScript_1675D9:: @ 81675D9
	checkflag FLAG_TWO_ISLAND_SHOP_INTRODUCED
	goto_if FALSE, EventScript_1675EE
	goto EventScript_1675F4
	end

EventScript_1675E8:: @ 81675E8
	goto EventScript_1675EE
	end

EventScript_1675EE:: @ 81675EE
	setvar VAR_MAP_SCENE_TWO_ISLAND, 1
	return

EventScript_1675F4:: @ 81675F4
	setvar VAR_MAP_SCENE_TWO_ISLAND, 2
	clearflag FLAG_HIDE_TWO_ISLAND_WOMAN
	return

EventScript_1675FD:: @ 81675FD
	setvar VAR_MAP_SCENE_TWO_ISLAND, 3
	clearflag FLAG_HIDE_TWO_ISLAND_BEAUTY
	return

EventScript_167606:: @ 8167606
	setvar VAR_MAP_SCENE_TWO_ISLAND, 4
	clearflag FLAG_HIDE_TWO_ISLAND_SUPER_NERD
	return

TwoIsland_EventScript_16760F:: @ 816760F
	special sub_8110AB4
	compare_var_to_value VAR_RESULT, 2
	goto_if eq, EventScript_1A7AE0
	lock
	faceplayer
	compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 4
	goto_if eq, EventScript_167646
	compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 3
	goto_if eq, EventScript_16765E
	compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 2
	goto_if eq, EventScript_167676
	goto EventScript_16768E
	end

EventScript_167646:: @ 8167646
	checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_3
	goto_if TRUE, EventScript_1676A6
	setflag FLAG_TWO_ISLAND_SHOP_EXPANDED_3
	message Text_181CAE
	waitmessage
	goto EventScript_167728
	end

EventScript_16765E:: @ 816765E
	checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_2
	goto_if TRUE, EventScript_1676A6
	setflag FLAG_TWO_ISLAND_SHOP_EXPANDED_2
	message Text_181C77
	waitmessage
	goto EventScript_167708
	end

EventScript_167676:: @ 8167676
	checkflag FLAG_TWO_ISLAND_SHOP_EXPANDED_1
	goto_if TRUE, EventScript_1676A6
	setflag FLAG_TWO_ISLAND_SHOP_EXPANDED_1
	message Text_181B7C
	waitmessage
	goto EventScript_1676EC
	end

EventScript_16768E:: @ 816768E
	checkflag FLAG_TWO_ISLAND_SHOP_INTRODUCED
	goto_if TRUE, EventScript_1676A6
	setflag FLAG_TWO_ISLAND_SHOP_INTRODUCED
	message Text_181AFE
	waitmessage
	goto EventScript_1676D3
	end

EventScript_1676A6:: @ 81676A6
	message Text_1A6211
	waitmessage
	compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 4
	goto_if eq, EventScript_167728
	compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 3
	goto_if eq, EventScript_167708
	compare_var_to_value VAR_MAP_SCENE_TWO_ISLAND, 2
	goto_if eq, EventScript_1676EC
	goto EventScript_1676D3
	end

EventScript_1676D3:: @ 81676D3
	pokemart Items_1676E4
	msgbox gUnknown_81A5190
	release
	end

	.align 2
Items_1676E4:: @ 81676E4
	.2byte ITEM_GREAT_BALL
	.2byte ITEM_FRESH_WATER
	.2byte ITEM_NONE
	release
	end

EventScript_1676EC:: @ 81676EC
	pokemart Items_1676FC
	msgbox gUnknown_81A5190
	release
	end

	.align 2
Items_1676FC:: @ 81676FC
	.2byte ITEM_ULTRA_BALL
	.2byte ITEM_GREAT_BALL
	.2byte ITEM_SODA_POP
	.2byte ITEM_FRESH_WATER
	.2byte ITEM_NONE
	release
	end

EventScript_167708:: @ 8167708
	pokemart Items_167718
	msgbox gUnknown_81A5190
	release
	end

	.align 2
Items_167718:: @ 8167718
	.2byte ITEM_ULTRA_BALL
	.2byte ITEM_GREAT_BALL
	.2byte ITEM_LEMONADE
	.2byte ITEM_SODA_POP
	.2byte ITEM_FRESH_WATER
	.2byte ITEM_MOOMOO_MILK
	.2byte ITEM_NONE
	release
	end

EventScript_167728:: @ 8167728
	pokemart Items_167738
	msgbox gUnknown_81A5190
	release
	end

	.align 2
Items_167738:: @ 8167738
	.2byte ITEM_ULTRA_BALL
	.2byte ITEM_REPEAT_BALL
	.2byte ITEM_TIMER_BALL
	.2byte ITEM_LEMONADE
	.2byte ITEM_SODA_POP
	.2byte ITEM_FRESH_WATER
	.2byte ITEM_MOOMOO_MILK
	.2byte ITEM_LAVA_COOKIE
	.2byte ITEM_NONE
	release
	end

TwoIsland_EventScript_16774C:: @ 816774C
	msgbox gUnknown_8181D2F, 2
	end

TwoIsland_EventScript_167755:: @ 8167755
	msgbox gUnknown_8181DCA, 2
	end

TwoIsland_EventScript_16775E:: @ 816775E
	lock
	faceplayer
	famechecker FAMECHECKER_BRUNO, 4
	msgbox gUnknown_8181E47
	release
	end

TwoIsland_EventScript_167777:: @ 8167777
	msgbox gUnknown_8181F28, 2
	end

TwoIsland_EventScript_167780:: @ 8167780
	msgbox gUnknown_8181F5D, 2
	end

TwoIsland_EventScript_167789:: @ 8167789
	msgbox gUnknown_8181FCE, 2
	end

TwoIsland_EventScript_167792:: @ 8167792
	msgbox gUnknown_8181A88, 3
	end

TwoIsland_EventScript_16779B:: @ 816779B
	msgbox gUnknown_8181AA7, 3
	end

TwoIsland_EventScript_1677A4:: @ 81677A4
	msgbox gUnknown_8181AC8, 3
	end