summaryrefslogtreecommitdiff
path: root/data/scripts/maps/LilycoveCity_DepartmentStoreRooftop.inc
blob: e38f3a2768f4f568f4ee218fa700cdb755d3c4ec (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
LilycoveCity_DepartmentStoreRooftop_MapScripts:: @ 8220207
	map_script 3, LilycoveCity_DepartmentStoreRooftop_MapScript1_22020D
	.byte 0

LilycoveCity_DepartmentStoreRooftop_MapScript1_22020D: @ 822020D
	getpricereduction 3
	compare VAR_RESULT, 1
	call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_220227
	compare VAR_RESULT, 0
	call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_22022B
	end

LilycoveCity_DepartmentStoreRooftop_EventScript_220227:: @ 8220227
	clearflag FLAG_0x3C2
	return

LilycoveCity_DepartmentStoreRooftop_EventScript_22022B:: @ 822022B
	setflag FLAG_0x3C2
	return

LilycoveCity_DepartmentStoreRooftop_EventScript_22022F:: @ 822022F
	lock
	faceplayer
	message gUnknown_08272A21
	waitmessage
	pokemartdecoration LilycoveCity_DepartmentStoreRooftop_PokemartDecor_220248
	msgbox gUnknown_08272A3F, 4
	release
	end

	.align 2
LilycoveCity_DepartmentStoreRooftop_PokemartDecor_220248: @ 8220248
	.2byte 39
	.2byte 35
	.2byte 36
	.2byte 37
	.2byte 40
	.2byte 33
	.2byte 41
	.2byte 38
	.2byte 34
	.2byte 45
	.2byte 46
	.2byte 47
	.2byte 117
	.2byte 112
	.2byte 0
	release
	end

LilycoveCity_DepartmentStoreRooftop_EventScript_220268:: @ 8220268
	lock
	faceplayer
	getpricereduction 3
	compare VAR_RESULT, 1
	call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_220282
	msgbox LilycoveCity_DepartmentStoreRooftop_Text_220463, 4
	release
	end

LilycoveCity_DepartmentStoreRooftop_EventScript_220282:: @ 8220282
	msgbox LilycoveCity_DepartmentStoreRooftop_Text_2204C9, 4
	release
	end

LilycoveCity_DepartmentStoreRooftop_EventScript_22028C:: @ 822028C
	msgbox LilycoveCity_DepartmentStoreRooftop_Text_220552, 2
	end

LilycoveCity_DepartmentStoreRooftop_EventScript_220295:: @ 8220295
	lockall
	message LilycoveCity_DepartmentStoreRooftop_Text_22056D
	waitmessage
	showmoneybox 0, 0, 0
	goto LilycoveCity_DepartmentStoreRooftop_EventScript_2202A6
	end

LilycoveCity_DepartmentStoreRooftop_EventScript_2202A6:: @ 82202A6
	multichoice 16, 0, 42, 0
	copyvar VAR_0x4001, VAR_RESULT
	switch VAR_0x4001
	case 0, LilycoveCity_DepartmentStoreRooftop_EventScript_2202E4
	case 1, LilycoveCity_DepartmentStoreRooftop_EventScript_2202EF
	case 2, LilycoveCity_DepartmentStoreRooftop_EventScript_2202FA
	msgbox LilycoveCity_DepartmentStoreRooftop_Text_220603, 4
	goto LilycoveCity_DepartmentStoreRooftop_EventScript_22045E
	end

LilycoveCity_DepartmentStoreRooftop_EventScript_2202E4:: @ 82202E4
	setvar VAR_0x4000, 26
	goto LilycoveCity_DepartmentStoreRooftop_EventScript_22032F
	end

LilycoveCity_DepartmentStoreRooftop_EventScript_2202EF:: @ 82202EF
	setvar VAR_0x4000, 27
	goto LilycoveCity_DepartmentStoreRooftop_EventScript_22032F
	end

LilycoveCity_DepartmentStoreRooftop_EventScript_2202FA:: @ 82202FA
	setvar VAR_0x4000, 28
	goto LilycoveCity_DepartmentStoreRooftop_EventScript_22032F
	end

LilycoveCity_DepartmentStoreRooftop_EventScript_220305:: @ 8220305
	checkmoney 0xc8, 0
	return

LilycoveCity_DepartmentStoreRooftop_EventScript_22030C:: @ 822030C
	checkmoney 0x12c, 0
	return

LilycoveCity_DepartmentStoreRooftop_EventScript_220313:: @ 8220313
	checkmoney 0x15e, 0
	return

LilycoveCity_DepartmentStoreRooftop_EventScript_22031A:: @ 822031A
	takemoney 0xc8, 0
	return

LilycoveCity_DepartmentStoreRooftop_EventScript_220321:: @ 8220321
	takemoney 0x12c, 0
	return

LilycoveCity_DepartmentStoreRooftop_EventScript_220328:: @ 8220328
	takemoney 0x15e, 0
	return

LilycoveCity_DepartmentStoreRooftop_EventScript_22032F:: @ 822032F
	compare VAR_0x4001, 0
	call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_220305
	compare VAR_0x4001, 1
	call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_22030C
	compare VAR_0x4001, 2
	call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_220313
	compare VAR_RESULT, 0
	goto_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220442
	checkitemspace VAR_0x4000, 1
	compare VAR_RESULT, 0
	goto_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220450
	compare VAR_0x4001, 0
	call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_22031A
	compare VAR_0x4001, 1
	call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_220321
	compare VAR_0x4001, 2
	call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_220328
	updatemoneybox 0, 0
	nop
	bufferitemname 0, VAR_0x4000
	playse SE_JIHANKI
	msgbox LilycoveCity_DepartmentStoreRooftop_Text_2205A1, 4
	giveitem VAR_0x4000, 1
	bufferitemname 1, VAR_0x4000
	bufferstdstring 2, 14
	msgbox gUnknown_08272A9A, 4
	random 64
	compare VAR_RESULT, 0
	goto_if 5, LilycoveCity_DepartmentStoreRooftop_EventScript_220436
	checkitemspace VAR_0x4000, 1
	compare VAR_RESULT, 0
	goto_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220450
	playse SE_JIHANKI
	msgbox LilycoveCity_DepartmentStoreRooftop_Text_2205C2, 4
	giveitem VAR_0x4000, 1
	bufferitemname 1, VAR_0x4000
	bufferstdstring 2, 14
	msgbox gUnknown_08272A9A, 4
	random 64
	compare VAR_RESULT, 0
	goto_if 5, LilycoveCity_DepartmentStoreRooftop_EventScript_220436
	checkitemspace VAR_0x4000, 1
	compare VAR_RESULT, 0
	goto_eq LilycoveCity_DepartmentStoreRooftop_EventScript_220450
	playse SE_JIHANKI
	msgbox LilycoveCity_DepartmentStoreRooftop_Text_2205C2, 4
	giveitem VAR_0x4000, 1
	bufferitemname 1, VAR_0x4000
	bufferstdstring 2, 14
	msgbox gUnknown_08272A9A, 4
	goto LilycoveCity_DepartmentStoreRooftop_EventScript_220436
	end

LilycoveCity_DepartmentStoreRooftop_EventScript_220436:: @ 8220436
	message LilycoveCity_DepartmentStoreRooftop_Text_22056D
	waitmessage
	goto LilycoveCity_DepartmentStoreRooftop_EventScript_2202A6
	end

LilycoveCity_DepartmentStoreRooftop_EventScript_220442:: @ 8220442
	msgbox LilycoveCity_DepartmentStoreRooftop_Text_2205F1, 4
	goto LilycoveCity_DepartmentStoreRooftop_EventScript_22045E
	end

LilycoveCity_DepartmentStoreRooftop_EventScript_220450:: @ 8220450
	msgbox gUnknown_08272A89, 4
	goto LilycoveCity_DepartmentStoreRooftop_EventScript_22045E
	end

LilycoveCity_DepartmentStoreRooftop_EventScript_22045E:: @ 822045E
	hidemoneybox
	nop
	nop
	releaseall
	end

LilycoveCity_DepartmentStoreRooftop_Text_220463: @ 8220463
	.string "Don’t they have set dates for their\n"
	.string "clear-out sales?\p"
	.string "I watch TV, but they never show any\n"
	.string "commercials.$"

LilycoveCity_DepartmentStoreRooftop_Text_2204C9: @ 82204C9
	.string "Yes! I’ve been waiting a long time for\n"
	.string "this clear-out sale.\p"
	.string "They have items that you can only get\n"
	.string "here. I’m going to load up, that I am!$"

LilycoveCity_DepartmentStoreRooftop_Text_220552: @ 8220552
	.string "Ohh… I’m bone-dry thirsty!$"

LilycoveCity_DepartmentStoreRooftop_Text_22056D: @ 822056D
	.string "It’s a VENDING MACHINE.\n"
	.string "Which drink would you like?$"

LilycoveCity_DepartmentStoreRooftop_Text_2205A1: @ 82205A1
	.string "Clang!\p"
	.string "A can of {STR_VAR_1} dropped down.$"

LilycoveCity_DepartmentStoreRooftop_Text_2205C2: @ 82205C2
	.string "Clang!\p"
	.string "Score! An extra can of {STR_VAR_1}\n"
	.string "dropped down!$"

LilycoveCity_DepartmentStoreRooftop_Text_2205F1: @ 82205F1
	.string "Not enough money…$"

LilycoveCity_DepartmentStoreRooftop_Text_220603: @ 8220603
	.string "Decided against buying a drink.$"