1 |
depth = -room_height - 164; |
2 |
var game_mode = global.game_mode; |
3 |
var shop_name = global.shop_name; |
4 |
var main_shop_screen_number = global.main_shop_screen_number; |
5 |
var player_response = global.player_response; |
6 |
var able_to_buy = global.able_to_buy; |
7 |
if (shop_name == "Honeydew Resort Normal") |
8 |
{ |
9 |
if (main_shop_screen_number == 1) |
10 |
{ |
11 |
if (player_response == 0) |
12 |
{ |
13 |
message[0] = "Anything#look good?"; |
14 |
portrait[0] = 1402; |
15 |
point[0] = 1; |
16 |
talk_script[0] = scr_talking_honeydew_bear; |
17 |
for (i = 0; i < array_length_1d(message); i += 1) |
18 |
action[i] = "Nothing"; |
19 |
} |
20 |
else if (player_response == 1) |
21 |
{ |
22 |
if (able_to_buy == 0) |
23 |
{ |
24 |
message[0] = "Thanks,#stranger!"; |
25 |
portrait[0] = 1401; |
26 |
point[0] = 1; |
27 |
talk_script[0] = scr_talking_honeydew_bear; |
28 |
for (i = 0; i < array_length_1d(message); i += 1) |
29 |
action[i] = "Nothing"; |
30 |
} |
31 |
else if (able_to_buy == 1) |
32 |
{ |
33 |
message[0] = "Sorry, you#need more#money..."; |
34 |
portrait[0] = 1406; |
35 |
point[0] = 1; |
36 |
talk_script[0] = scr_talking_honeydew_bear; |
37 |
for (i = 0; i < array_length_1d(message); i += 1) |
38 |
action[i] = "Nothing"; |
39 |
} |
40 |
else if (able_to_buy == 2) |
41 |
{ |
42 |
message[0] = "Looks like#you're full..."; |
43 |
portrait[0] = 1406; |
44 |
point[0] = 1; |
45 |
talk_script[0] = scr_talking_honeydew_bear; |
46 |
for (i = 0; i < array_length_1d(message); i += 1) |
47 |
action[i] = "Nothing"; |
48 |
} |
49 |
} |
50 |
else if (player_response == 2) |
51 |
{ |
52 |
message[0] = "Does it#look bad?"; |
53 |
portrait[0] = 1407; |
54 |
point[0] = 1; |
55 |
talk_script[0] = scr_talking_honeydew_bear; |
56 |
for (i = 0; i < array_length_1d(message); i += 1) |
57 |
action[i] = "Nothing"; |
58 |
} |
59 |
} |
60 |
else if (main_shop_screen_number == 3) |
61 |
{ |
62 |
message[0] = "You w-want#to talk?"; |
63 |
portrait[0] = 1404; |
64 |
point[0] = 1; |
65 |
talk_script[0] = scr_talking_honeydew_bear; |
66 |
for (i = 0; i < array_length_1d(message); i += 1) |
67 |
action[i] = "Nothing"; |
68 |
} |
69 |
} |
70 |
if (shop_name == "Wild East Gunshop") |
71 |
{ |
72 |
if (main_shop_screen_number == 1) |
73 |
{ |
74 |
if (player_response == 0) |
75 |
{ |
76 |
message[0] = "Interested#in anything?"; |
77 |
portrait[0] = 1412; |
78 |
point[0] = 1; |
79 |
talk_script[0] = scr_talking_blackjack; |
80 |
for (i = 0; i < array_length_1d(message); i += 1) |
81 |
action[i] = "Nothing"; |
82 |
} |
83 |
else if (player_response == 1) |
84 |
{ |
85 |
if (able_to_buy == 0) |
86 |
{ |
87 |
message[0] = "I thank#you!"; |
88 |
portrait[0] = 1412; |
89 |
point[0] = 1; |
90 |
talk_script[0] = scr_talking_blackjack; |
91 |
for (i = 0; i < array_length_1d(message); i += 1) |
92 |
action[i] = "Nothing"; |
93 |
} |
94 |
else if (able_to_buy == 1) |
95 |
{ |
96 |
message[0] = "I need#the proper#sum."; |
97 |
portrait[0] = 1412; |
98 |
point[0] = 1; |
99 |
talk_script[0] = scr_talking_blackjack; |
100 |
for (i = 0; i < array_length_1d(message); i += 1) |
101 |
action[i] = "Nothing"; |
102 |
} |
103 |
else if (able_to_buy == 2) |
104 |
{ |
105 |
message[0] = "You have#your hands#full."; |
106 |
portrait[0] = 1412; |
107 |
point[0] = 1; |
108 |
talk_script[0] = scr_talking_blackjack; |
109 |
for (i = 0; i < array_length_1d(message); i += 1) |
110 |
action[i] = "Nothing"; |
111 |
} |
112 |
} |
113 |
else if (player_response == 2) |
114 |
{ |
115 |
message[0] = "Change your#mind?"; |
116 |
portrait[0] = 1412; |
117 |
point[0] = 1; |
118 |
talk_script[0] = scr_talking_blackjack; |
119 |
for (i = 0; i < array_length_1d(message); i += 1) |
120 |
action[i] = "Nothing"; |
121 |
} |
122 |
} |
123 |
else if (main_shop_screen_number == 3) |
124 |
{ |
125 |
message[0] = "Ask away!"; |
126 |
portrait[0] = 1412; |
127 |
point[0] = 1; |
128 |
talk_script[0] = scr_talking_blackjack; |
129 |
for (i = 0; i < array_length_1d(message); i += 1) |
130 |
action[i] = "Nothing"; |
131 |
} |
132 |
} |
133 |
if (shop_name == "Wild East Saloon") |
134 |
{ |
135 |
if (main_shop_screen_number == 1) |
136 |
{ |
137 |
if (player_response == 0) |
138 |
{ |
139 |
message[0] = "Here's the#menu!"; |
140 |
portrait[0] = 1423; |
141 |
point[0] = 1; |
142 |
talk_script[0] = scr_talking_blackjack; |
143 |
for (i = 0; i < array_length_1d(message); i += 1) |
144 |
action[i] = "Nothing"; |
145 |
} |
146 |
else if (player_response == 1) |
147 |
{ |
148 |
if (able_to_buy == 0) |
149 |
{ |
150 |
message[0] = "Much#appreciated!"; |
151 |
portrait[0] = 1423; |
152 |
point[0] = 1; |
153 |
talk_script[0] = scr_talking_blackjack; |
154 |
for (i = 0; i < array_length_1d(message); i += 1) |
155 |
action[i] = "Nothing"; |
156 |
} |
157 |
else if (able_to_buy == 1) |
158 |
{ |
159 |
message[0] = "Your funds'r#insufficient,#kid."; |
160 |
portrait[0] = 1423; |
161 |
point[0] = 1; |
162 |
talk_script[0] = scr_talking_blackjack; |
163 |
for (i = 0; i < array_length_1d(message); i += 1) |
164 |
action[i] = "Nothing"; |
165 |
} |
166 |
else if (able_to_buy == 2) |
167 |
{ |
168 |
message[0] = "Quit carryin'#so much."; |
169 |
portrait[0] = 1423; |
170 |
point[0] = 1; |
171 |
talk_script[0] = scr_talking_blackjack; |
172 |
for (i = 0; i < array_length_1d(message); i += 1) |
173 |
action[i] = "Nothing"; |
174 |
} |
175 |
} |
176 |
else if (player_response == 2) |
177 |
{ |
178 |
message[0] = "Not interested#I take it."; |
179 |
portrait[0] = 1423; |
180 |
point[0] = 1; |
181 |
talk_script[0] = scr_talking_blackjack; |
182 |
for (i = 0; i < array_length_1d(message); i += 1) |
183 |
action[i] = "Nothing"; |
184 |
} |
185 |
} |
186 |
else if (main_shop_screen_number == 3) |
187 |
{ |
188 |
message[0] = "What do ya#wanna know?"; |
189 |
portrait[0] = 1423; |
190 |
point[0] = 1; |
191 |
talk_script[0] = scr_talking_blackjack; |
192 |
for (i = 0; i < array_length_1d(message); i += 1) |
193 |
action[i] = "Nothing"; |
194 |
} |
195 |
} |
196 |
if (shop_name == "Steamworks Vendy") |
197 |
{ |
198 |
if (main_shop_screen_number == 1) |
199 |
{ |
200 |
if (player_response == 0) |
201 |
{ |
202 |
if (global.sworks_flag[26] < 2) |
203 |
{ |
204 |
message[0] = "Go away."; |
205 |
portrait[0] = 3325; |
206 |
} |
207 |
else |
208 |
{ |
209 |
message[0] = "Choose an#item!"; |
210 |
portrait[0] = 131; |
211 |
} |
212 |
point[0] = 1; |
213 |
talk_script[0] = scr_talking_vendy; |
214 |
for (i = 0; i < array_length_1d(message); i += 1) |
215 |
action[i] = "Nothing"; |
216 |
} |
217 |
else if (player_response == 1) |
218 |
{ |
219 |
if (able_to_buy == 0) |
220 |
{ |
221 |
if (global.sworks_flag[26] < 2) |
222 |
{ |
223 |
message[0] = "Curse my#programming."; |
224 |
portrait[0] = 1281; |
225 |
} |
226 |
message[0] = "Item#dispensed!"; |
227 |
portrait[0] = 131; |
228 |
point[0] = 1; |
229 |
talk_script[0] = scr_talking_vendy; |
230 |
for (i = 0; i < array_length_1d(message); i += 1) |
231 |
action[i] = "Nothing"; |
232 |
} |
233 |
else if (able_to_buy == 1) |
234 |
{ |
235 |
if (global.sworks_flag[26] < 2) |
236 |
{ |
237 |
message[0] = "You are broke.#lol."; |
238 |
portrait[0] = 3744; |
239 |
} |
240 |
else |
241 |
{ |
242 |
message[0] = "* You do not have enough money# :["; |
243 |
portrait[0] = 863; |
244 |
} |
245 |
point[0] = 1; |
246 |
talk_script[0] = scr_talking_vendy; |
247 |
for (i = 0; i < array_length_1d(message); i += 1) |
248 |
action[i] = "Nothing"; |
249 |
} |
250 |
else if (able_to_buy == 2) |
251 |
{ |
252 |
if (global.sworks_flag[26] < 2) |
253 |
{ |
254 |
message[0] = "You can't#carry any#more. Too#bad."; |
255 |
portrait[0] = 3325; |
256 |
} |
257 |
else |
258 |
{ |
259 |
message[0] = "You do not#have enough#space :["; |
260 |
portrait[0] = 863; |
261 |
} |
262 |
point[0] = 1; |
263 |
talk_script[0] = scr_talking_vendy; |
264 |
for (i = 0; i < array_length_1d(message); i += 1) |
265 |
action[i] = "Nothing"; |
266 |
} |
267 |
} |
268 |
else if (player_response == 2) |
269 |
{ |
270 |
if (global.sworks_flag[26] < 2) |
271 |
{ |
272 |
message[0] = "Thank you#for backing#out."; |
273 |
portrait[0] = 131; |
274 |
} |
275 |
else |
276 |
{ |
277 |
message[0] = "Changed your#mind?"; |
278 |
portrait[0] = 131; |
279 |
} |
280 |
point[0] = 1; |
281 |
talk_script[0] = scr_talking_vendy; |
282 |
for (i = 0; i < array_length_1d(message); i += 1) |
283 |
action[i] = "Nothing"; |
284 |
} |
285 |
} |
286 |
else if (main_shop_screen_number == 3) |
287 |
{ |
288 |
if (global.sworks_flag[26] < 2) |
289 |
{ |
290 |
message[0] = "* Why why# why why-"; |
291 |
portrait[0] = 2663; |
292 |
} |
293 |
else |
294 |
{ |
295 |
message[0] = "* Yes?"; |
296 |
portrait[0] = 131; |
297 |
} |
298 |
point[0] = 1; |
299 |
talk_script[0] = scr_talking_vendy; |
300 |
for (i = 0; i < array_length_1d(message); i += 1) |
301 |
action[i] = "Nothing"; |
302 |
} |
303 |
} |
304 |
if (shop_name == "Hotel Shop") |
305 |
{ |
306 |
portrait_alt[0] = 470; |
307 |
message_alt[0] = ""; |
308 |
if (main_shop_screen_number == 1) |
309 |
{ |
310 |
message[0] = ""; |
311 |
if (player_response == 0) |
312 |
{ |
313 |
message[0] = "Take a look!"; |
314 |
portrait[0] = 3199; |
315 |
point[0] = 1; |
316 |
talk_script[0] = scr_talking_hotel_shopkeeper; |
317 |
for (i = 0; i < array_length_1d(message); i += 1) |
318 |
action[i] = "Nothing"; |
319 |
} |
320 |
else if (player_response == 1) |
321 |
{ |
322 |
if (able_to_buy == 0) |
323 |
{ |
324 |
message[0] = "Appreciate#it!"; |
325 |
portrait[0] = 3199; |
326 |
point[0] = 1; |
327 |
talk_script[0] = scr_talking_hotel_shopkeeper; |
328 |
for (i = 0; i < array_length_1d(message); i += 1) |
329 |
action[i] = "Nothing"; |
330 |
} |
331 |
else if (able_to_buy == 1) |
332 |
{ |
333 |
message_alt[0] = "< Money.#We need#it. >"; |
334 |
portrait[0] = 3629; |
335 |
portrait_alt[0] = 1959; |
336 |
point[0] = 1; |
337 |
talk_script[0] = scr_talking_hotel_shopkeeper; |
338 |
for (i = 0; i < array_length_1d(message); i += 1) |
339 |
action[i] = "Nothing"; |
340 |
} |
341 |
else if (able_to_buy == 2) |
342 |
{ |
343 |
message_alt[0] = "< You're#carryin'#WAY too#much!>"; |
344 |
portrait[0] = 3629; |
345 |
portrait_alt[0] = 1959; |
346 |
point[0] = 1; |
347 |
talk_script[0] = scr_talking_hotel_shopkeeper; |
348 |
for (i = 0; i < array_length_1d(message); i += 1) |
349 |
action[i] = "Nothing"; |
350 |
} |
351 |
} |
352 |
else if (player_response == 2) |
353 |
{ |
354 |
message[0] = "Oh?"; |
355 |
portrait[0] = 3301; |
356 |
point[0] = 1; |
357 |
talk_script[0] = scr_talking_hotel_shopkeeper; |
358 |
for (i = 0; i < array_length_1d(message); i += 1) |
359 |
action[i] = "Nothing"; |
360 |
} |
361 |
} |
362 |
else if (main_shop_screen_number == 3) |
363 |
{ |
364 |
message[0] = "What's on#your mind?"; |
365 |
portrait[0] = 1492; |
366 |
point[0] = 1; |
367 |
talk_script[0] = scr_talking_hotel_shopkeeper; |
368 |
for (i = 0; i < array_length_1d(message); i += 1) |
369 |
action[i] = "Nothing"; |
370 |
} |
371 |
} |
372 |
message_current = 0; |
373 |
message_end = 0; |
374 |
message_draw = ""; |
375 |
increase = global.text_speed; |
376 |
characters = 0; |
377 |
hold = 0; |
378 |
message_length = string_length(message[message_current]); |
379 |
message_draw_alt = ""; |
380 |
if (shop_name == "Hotel Shop") |
381 |
{ |
382 |
var message_alt_length = string_length(message_alt[message_current]); |
383 |
if (message_alt_length > message_length) |
384 |
message_length = message_alt_length; |
385 |
} |
386 |
script_execute(scr_generate_text_counters); |