1 |
var starlo = obj_starlo_npc |
2 |
var ed = obj_ed_npc |
3 |
var ceroba = obj_npc_ceroba_saloon |
4 |
if (floor(starlo.y) >= 165) |
5 |
{ |
6 |
camera.x = starlo.x |
7 |
camera.y = starlo.y |
8 |
} |
9 |
else |
10 |
{ |
11 |
if (camera.y > 120) |
12 |
camera.y -= 2 |
13 |
if (camera.x < 200) |
14 |
camera.x += 2 |
15 |
} |
16 |
switch scene |
17 |
{ |
18 |
case 0: |
19 |
if (!audio_is_playing(mus_a_new_partner)) |
20 |
{ |
21 |
music = audio_play_sound(mus_a_new_partner, 1, 1) |
22 |
audio_sound_gain(obj_radio.current_song, 0, 0) |
23 |
} |
24 |
with (starlo) |
25 |
{ |
26 |
if (image_alpha < 1) |
27 |
image_alpha += 0.1 |
28 |
else |
29 |
{ |
30 |
x_dest[0] = x |
31 |
y_dest[0] = 360 |
32 |
x_dest[1] = 100 |
33 |
y_dest[1] = y_dest[0] |
34 |
x_dest[2] = x_dest[1] |
35 |
y_dest[2] = 160 |
36 |
x_dest[3] = 200 |
37 |
y_dest[3] = y_dest[2] |
38 |
end_direction = "up" |
39 |
can_walk = true |
40 |
actor_speed = 2 |
41 |
other.scene++ |
42 |
other.timer = 30 |
43 |
} |
44 |
} |
45 |
break |
46 |
case 1: |
47 |
if (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ()) |
48 |
return; |
49 |
with (ed) |
50 |
{ |
51 |
if (image_alpha < 1) |
52 |
image_alpha += 0.1 |
53 |
else |
54 |
{ |
55 |
x_dest[0] = x |
56 |
y_dest[0] = 360 |
57 |
x_dest[1] = 100 |
58 |
y_dest[1] = y_dest[0] |
59 |
x_dest[2] = x_dest[1] |
60 |
y_dest[2] = 160 |
61 |
x_dest[3] = 200 |
62 |
y_dest[3] = y_dest[2] |
63 |
end_direction = "up" |
64 |
can_walk = true |
65 |
actor_speed = 2 |
66 |
other.scene++ |
67 |
other.timer = 20 |
68 |
other.message_timer = 20 |
69 |
} |
70 |
} |
71 |
break |
72 |
case 2: |
73 |
if (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ()) |
74 |
return; |
75 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
76 |
with (msg) |
77 |
{ |
78 |
skippable = false |
79 |
sndfnt = 107 |
80 |
position = 0 |
81 |
message[0] = "* Barkeep! " |
82 |
message[1] = "* Growlers of icewater# for the house on the# Sheriff!" |
83 |
message[2] = "* I have an announcement# to make!" |
84 |
prt[0] = 417 |
85 |
prt[1] = 417 |
86 |
prt[2] = 422 |
87 |
other.message_timer -= 1 |
88 |
if (other.message_timer < 0) |
89 |
{ |
90 |
if (message_current < 2) |
91 |
{ |
92 |
message_current += 1 |
93 |
cutoff = 0 |
94 |
other.message_timer = 65 |
95 |
} |
96 |
else |
97 |
{ |
98 |
global.dialogue_open = false |
99 |
other.timer = 15 |
100 |
other.scene++ |
101 |
} |
102 |
} |
103 |
} |
104 |
break |
105 |
case 3: |
106 |
if ((!starlo.npc_arrived) || (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ())) |
107 |
return; |
108 |
with (starlo) |
109 |
{ |
110 |
if (path_position >= 1) |
111 |
{ |
112 |
other.scene++ |
113 |
other.timer = 15 |
114 |
npc_arrived = false |
115 |
x_dest[0] = 170 |
116 |
y_dest[0] = 110 |
117 |
can_walk = true |
118 |
end_direction = "down" |
119 |
audio_play_sound(snd_switch, 1, 0) |
120 |
return; |
121 |
} |
122 |
if (path_index == -1) |
123 |
{ |
124 |
audio_play_sound(snd_playerjump, 1, 0) |
125 |
path_start(pt_saloon_jump, 2, path_action_stop, false) |
126 |
} |
127 |
} |
128 |
break |
129 |
case 4: |
130 |
if ((!ed.npc_arrived) || (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ())) |
131 |
return; |
132 |
with (ed) |
133 |
{ |
134 |
if (path_position >= 1) |
135 |
{ |
136 |
other.scene++ |
137 |
other.timer = 30 |
138 |
npc_arrived = false |
139 |
x_dest[0] = 200 |
140 |
y_dest[0] = 120 |
141 |
end_direction = "up" |
142 |
audio_play_sound(snd_rock_break, 1, 0) |
143 |
scr_screenshakescr_screenshakefunction scr_screenshake(argument0, argument1) //gml_Script_scr_screenshake
{
if instance_exists(obj_screenshake_player)
return;
with (instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_screenshake_player))
{
alarm[0]
intensity = argument1
}
} (4, 1) |
144 |
return; |
145 |
} |
146 |
if (path_index == -1) |
147 |
{ |
148 |
audio_play_sound(snd_playerjump, 1, 0) |
149 |
path_start(pt_saloon_jump, 2, path_action_stop, false) |
150 |
} |
151 |
} |
152 |
break |
153 |
case 5: |
154 |
if (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ()) |
155 |
return; |
156 |
ed.can_walk = true |
157 |
if (!ed.npc_arrived) |
158 |
return; |
159 |
ed.can_walk = false |
160 |
if (ed.action_sprite == false) |
161 |
{ |
162 |
ed.action_sprite = true |
163 |
ed.sprite_index = spr_ed_place_clover |
164 |
ed.image_index = 0 |
165 |
ed.image_speed = 0.3 |
166 |
} |
167 |
if (floor(ed.image_index) == 6) |
168 |
{ |
169 |
if (!audio_is_playing(snd_gun_hit)) |
170 |
{ |
171 |
audio_play_sound(snd_gun_hit, 1, 0) |
172 |
scr_screenshakescr_screenshakefunction scr_screenshake(argument0, argument1) //gml_Script_scr_screenshake
{
if instance_exists(obj_screenshake_player)
return;
with (instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_screenshake_player))
{
alarm[0]
intensity = argument1
}
} (6, 1) |
173 |
} |
174 |
} |
175 |
if (ed.image_index >= (ed.image_number - 1)) |
176 |
{ |
177 |
ed.up_sprite = 141 |
178 |
ed.right_sprite = 140 |
179 |
ed.down_sprite = 142 |
180 |
ed.left_sprite = 139 |
181 |
ed.up_sprite_idle = 141 |
182 |
ed.right_sprite_idle = 140 |
183 |
ed.down_sprite_idle = 144 |
184 |
ed.left_sprite_idle = 139 |
185 |
ed.action_sprite = false |
186 |
ed.x_dest[0] = 200 |
187 |
ed.y_dest[0] = 130 |
188 |
ed.end_direction = "down" |
189 |
ed.npc_arrived = false |
190 |
ed.can_walk = true |
191 |
ed.path_position = 0 |
192 |
instance_create(200, 105, obj_saloon_sitting_clover) |
193 |
timer = 15 |
194 |
scene++ |
195 |
} |
196 |
break |
197 |
case 6: |
198 |
if ((!ed.npc_arrived) || (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ())) |
199 |
return; |
200 |
with (ed) |
201 |
{ |
202 |
if (path_position >= 1) |
203 |
{ |
204 |
other.scene++ |
205 |
other.timer = 45 |
206 |
npc_arrived = false |
207 |
x_dest[0] = x |
208 |
y_dest[0] = y + 30 |
209 |
x_dest[1] = 90 |
210 |
y_dest[1] = 470 |
211 |
axis_override = "x" |
212 |
can_walk = true |
213 |
audio_play_sound(snd_rock_break, 1, 0) |
214 |
scr_screenshakescr_screenshakefunction scr_screenshake(argument0, argument1) //gml_Script_scr_screenshake
{
if instance_exists(obj_screenshake_player)
return;
with (instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_screenshake_player))
{
alarm[0]
intensity = argument1
}
} (4, 1) |
215 |
return; |
216 |
} |
217 |
if (path_index == -1) |
218 |
{ |
219 |
audio_play_sound(snd_playerjump, 1, 0) |
220 |
path_start(pt_saloon_jump_off, 2, path_action_stop, false) |
221 |
} |
222 |
} |
223 |
break |
224 |
case 7: |
225 |
if (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ()) |
226 |
return; |
227 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
228 |
with (msg) |
229 |
{ |
230 |
sndfnt = 107 |
231 |
talker[0] = starlo |
232 |
message[0] = "* This 'lil' feller 'ere# is Clover." |
233 |
prt[0] = 417 |
234 |
} |
235 |
if (!global.dialogue_open) |
236 |
{ |
237 |
scr_music_sudden_stopscr_music_sudden_stopfunction scr_music_sudden_stop(argument0, argument1, argument2) //gml_Script_scr_music_sudden_stop
{
with (instance_create(0, 0, obj_audio_sudden_stop_helper))
{
audio_to_fade = argument0
fade_strength = argument1 / 100
audio_stop = argument2
if (audio_stop == false)
audio_resume_sound(argument0)
}
} (music, 5, 1) |
238 |
obj_saloon_sitting_clover.image_speed = 0 |
239 |
obj_saloon_sitting_clover.image_index = 0 |
240 |
ceroba.sprite_index = spr_ceroba_lean_back |
241 |
timer = 60 |
242 |
scene++ |
243 |
} |
244 |
break |
245 |
case 8: |
246 |
if (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ()) |
247 |
return; |
248 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
249 |
with (msg) |
250 |
{ |
251 |
sndfnt = 108 |
252 |
talker[0] = ceroba |
253 |
message[0] = "* Hey, Star." |
254 |
message[1] = "* What the hell are you# doing bringing a human# in here?" |
255 |
prt[0] = 370 |
256 |
prt[1] = 394 |
257 |
} |
258 |
if (!global.dialogue_open) |
259 |
{ |
260 |
scr_music_sudden_stopscr_music_sudden_stopfunction scr_music_sudden_stop(argument0, argument1, argument2) //gml_Script_scr_music_sudden_stop
{
with (instance_create(0, 0, obj_audio_sudden_stop_helper))
{
audio_to_fade = argument0
fade_strength = argument1 / 100
audio_stop = argument2
if (audio_stop == false)
audio_resume_sound(argument0)
}
} (music, 10, false) |
261 |
scene++ |
262 |
} |
263 |
break |
264 |
case 9: |
265 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
266 |
with (msg) |
267 |
{ |
268 |
sndfnt = 107 |
269 |
position = 0 |
270 |
talker[0] = starlo |
271 |
message[0] = "* (Ceroba shush!)" |
272 |
message[1] = "* Now I know what ye're# all thinkin'." |
273 |
message[2] = "* But trust me, Clover# here ain't no greenhorn!" |
274 |
message[3] = "* They know what they're# doin'. Just look at that# hat!" |
275 |
prt[0] = 412 |
276 |
prt[1] = 419 |
277 |
prt[2] = 417 |
278 |
prt[3] = 417 |
279 |
} |
280 |
if (!global.dialogue_open) |
281 |
{ |
282 |
scene++ |
283 |
obj_saloon_audience.crowd_animate = true |
284 |
timer = 45 |
285 |
} |
286 |
break |
287 |
case 10: |
288 |
if (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ()) |
289 |
return; |
290 |
obj_saloon_audience.crowd_animate = false |
291 |
scene++ |
292 |
break |
293 |
case 11: |
294 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
295 |
with (msg) |
296 |
{ |
297 |
sndfnt = 108 |
298 |
position = 1 |
299 |
talker[0] = ceroba |
300 |
message[0] = "* Actually, this could be# fun." |
301 |
message[1] = "* Dina! Hit me!" |
302 |
prt[0] = 395 |
303 |
prt[1] = 372 |
304 |
} |
305 |
if (!global.dialogue_open) |
306 |
{ |
307 |
scene++ |
308 |
timer = 30 |
309 |
} |
310 |
break |
311 |
case 12: |
312 |
if (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ()) |
313 |
return; |
314 |
instance_create(250, 275, obj_saloon_beverage) |
315 |
timer = 90 |
316 |
scene++ |
317 |
break |
318 |
case 13: |
319 |
if (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ()) |
320 |
return; |
321 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
322 |
with (msg) |
323 |
{ |
324 |
sndfnt = 107 |
325 |
position = 0 |
326 |
talker[0] = starlo |
327 |
message[0] = "* Alright, no more# hecklin' from the crowd!" |
328 |
message[1] = "* Ahem." |
329 |
prt[0] = 419 |
330 |
prt[1] = 415 |
331 |
} |
332 |
if (!global.dialogue_open) |
333 |
{ |
334 |
scene++ |
335 |
timer = 30 |
336 |
} |
337 |
break |
338 |
case 14: |
339 |
if (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ()) |
340 |
return; |
341 |
scene++ |
342 |
break |
343 |
case 15: |
344 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
345 |
with (msg) |
346 |
{ |
347 |
sndfnt = 107 |
348 |
position = 0 |
349 |
talker[0] = starlo |
350 |
message[0] = "* Ladies and# gentlemonsters, as# Ceroba said..." |
351 |
message[1] = "* Clover is a HUMAN." |
352 |
prt[0] = 421 |
353 |
prt[1] = 419 |
354 |
} |
355 |
if (!global.dialogue_open) |
356 |
{ |
357 |
scene++ |
358 |
timer = 15 |
359 |
} |
360 |
break |
361 |
case 16: |
362 |
if (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ()) |
363 |
return; |
364 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
365 |
obj_saloon_audience.crowd_animate = true |
366 |
with (msg) |
367 |
{ |
368 |
message[0] = "* Ooooo!" |
369 |
position = 0 |
370 |
} |
371 |
if (!global.dialogue_open) |
372 |
{ |
373 |
obj_saloon_audience.crowd_animate = false |
374 |
scene++ |
375 |
timer = 15 |
376 |
} |
377 |
break |
378 |
case 17: |
379 |
if (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ()) |
380 |
return; |
381 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
382 |
with (msg) |
383 |
{ |
384 |
sndfnt = 107 |
385 |
position = 0 |
386 |
talker[0] = starlo |
387 |
message[0] = "* I know, excitin' stuff.# A real honor!" |
388 |
message[1] = "* Now, I would let Clover# tell y'all all about# their life..." |
389 |
message[2] = "* But I've been# studyin' up." |
390 |
message[3] = "* I'm a bit of a human# expert if ya didn't# know." |
391 |
prt[0] = 417 |
392 |
prt[1] = 419 |
393 |
prt[2] = 415 |
394 |
prt[3] = 412 |
395 |
} |
396 |
if (!global.dialogue_open) |
397 |
scene++ |
398 |
break |
399 |
case 18: |
400 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
401 |
with (msg) |
402 |
{ |
403 |
sndfnt = 108 |
404 |
position = 1 |
405 |
talker[0] = ceroba |
406 |
message[0] = "* Oh great, here we go." |
407 |
prt[0] = 377 |
408 |
} |
409 |
if (!global.dialogue_open) |
410 |
scene++ |
411 |
break |
412 |
case 19: |
413 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
414 |
with (msg) |
415 |
{ |
416 |
sndfnt = 107 |
417 |
position = 0 |
418 |
talker[0] = starlo |
419 |
message[0] = "* Here we go indeed!" |
420 |
message[1] = "* Did ya know that humans# use monsters fer# transportation?" |
421 |
prt[0] = 422 |
422 |
prt[1] = 419 |
423 |
} |
424 |
if (!global.dialogue_open) |
425 |
{ |
426 |
timer = 15 |
427 |
scene++ |
428 |
} |
429 |
break |
430 |
case 20: |
431 |
if (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ()) |
432 |
return; |
433 |
obj_saloon_audience.crowd_animate = true |
434 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
435 |
with (msg) |
436 |
{ |
437 |
position = 0 |
438 |
message[0] = "* Ooooo!" |
439 |
position = 0 |
440 |
} |
441 |
if (!global.dialogue_open) |
442 |
{ |
443 |
obj_saloon_audience.crowd_animate = false |
444 |
scene++ |
445 |
timer = 15 |
446 |
} |
447 |
break |
448 |
case 21: |
449 |
if (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ()) |
450 |
return; |
451 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
452 |
with (msg) |
453 |
{ |
454 |
sndfnt = 107 |
455 |
talker[0] = starlo |
456 |
position = 0 |
457 |
message[0] = "* It's true!" |
458 |
message[1] = "* Large, four-legged# monsters!" |
459 |
message[2] = "* They put a seat on the# top of 'em and# everythin'!" |
460 |
prt[0] = 424 |
461 |
prt[1] = 417 |
462 |
prt[2] = 417 |
463 |
} |
464 |
if (!global.dialogue_open) |
465 |
scene++ |
466 |
break |
467 |
case 22: |
468 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
469 |
with (msg) |
470 |
{ |
471 |
sndfnt = 108 |
472 |
position = 1 |
473 |
talker[0] = ceroba |
474 |
message[0] = "* They're called \"horses\",# Star." |
475 |
prt[0] = 382 |
476 |
} |
477 |
if (!global.dialogue_open) |
478 |
scene++ |
479 |
break |
480 |
case 23: |
481 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
482 |
with (msg) |
483 |
{ |
484 |
sndfnt = 107 |
485 |
position = 0 |
486 |
talker[0] = starlo |
487 |
message[0] = "* Ah, so you know one of# 'em personally? That's# quite impressive!" |
488 |
prt[0] = 426 |
489 |
} |
490 |
if (!global.dialogue_open) |
491 |
scene++ |
492 |
break |
493 |
case 24: |
494 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
495 |
with (msg) |
496 |
{ |
497 |
sndfnt = 108 |
498 |
position = 1 |
499 |
talker[0] = ceroba |
500 |
message[0] = "* ..." |
501 |
prt[0] = 384 |
502 |
} |
503 |
if (!global.dialogue_open) |
504 |
scene++ |
505 |
break |
506 |
case 25: |
507 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
508 |
with (msg) |
509 |
{ |
510 |
sndfnt = 107 |
511 |
position = 0 |
512 |
talker[0] = starlo |
513 |
message[0] = "* Did ya also know that# humans are FIREPROOF?" |
514 |
message[1] = "* When they're feelin'# accomplished," |
515 |
message[2] = "* They ride monsters# STRAIGHT into a huge,# fiery sphere!" |
516 |
prt[0] = 424 |
517 |
prt[1] = 421 |
518 |
prt[2] = 419 |
519 |
} |
520 |
if (!global.dialogue_open) |
521 |
{ |
522 |
timer = 45 |
523 |
scene++ |
524 |
} |
525 |
break |
526 |
case 26: |
527 |
if (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ()) |
528 |
return; |
529 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
530 |
with (msg) |
531 |
{ |
532 |
sndfnt = 108 |
533 |
position = 1 |
534 |
talker[0] = ceroba |
535 |
message[0] = "* So the \"monsters\" burn,# right?" |
536 |
message[1] = "* Most monsters aren't# fireproof." |
537 |
message[2] = "* Star, are you saying my# friend Horses was killed# by a fiery sphere?" |
538 |
prt[0] = 370 |
539 |
prt[1] = 377 |
540 |
prt[2] = 393 |
541 |
} |
542 |
if (!global.dialogue_open) |
543 |
scene++ |
544 |
break |
545 |
case 27: |
546 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
547 |
with (msg) |
548 |
{ |
549 |
sndfnt = 107 |
550 |
position = 0 |
551 |
talker[0] = starlo |
552 |
message[0] = "* No! Um, well... I'm not# quite sure." |
553 |
message[1] = "* I'll ask Clover!" |
554 |
message[2] = "* Do the monsters die?" |
555 |
prt[0] = 428 |
556 |
prt[1] = 417 |
557 |
prt[2] = 407 |
558 |
ch_msg = 2 |
559 |
ch[1] = "Yes?" |
560 |
ch[2] = "No?" |
561 |
if (outcome == 1) |
562 |
{ |
563 |
message[3] = "* Then I regret sharin'# that fact." |
564 |
message[4] = "* Pretend I never said# nothin'." |
565 |
prt[3] = 428 |
566 |
prt[4] = 412 |
567 |
} |
568 |
if (outcome == 2) |
569 |
{ |
570 |
message[3] = "* See?" |
571 |
message[4] = "* Everyone's fireproof!" |
572 |
prt[3] = 422 |
573 |
prt[4] = 424 |
574 |
} |
575 |
message[5] = "* Anyways..." |
576 |
message[6] = "* Did ya know tha-" |
577 |
prt[5] = 417 |
578 |
prt[6] = 419 |
579 |
} |
580 |
if (!global.dialogue_open) |
581 |
scene++ |
582 |
break |
583 |
case 28: |
584 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
585 |
with (msg) |
586 |
{ |
587 |
sndfnt = 108 |
588 |
position = 1 |
589 |
talker[0] = ceroba |
590 |
message[0] = "* Look, Star, you don't# need to keep this up." |
591 |
message[1] = "* ...Because it's all# true. Every word." |
592 |
prt[0] = 377 |
593 |
prt[1] = 395 |
594 |
} |
595 |
if (!global.dialogue_open) |
596 |
scene++ |
597 |
break |
598 |
case 29: |
599 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
600 |
with (msg) |
601 |
{ |
602 |
sndfnt = 107 |
603 |
position = 0 |
604 |
talker[0] = starlo |
605 |
message[0] = "* Ha! I knew it!" |
606 |
message[1] = "* I'm pretty darn good# aren't I?" |
607 |
prt[0] = 417 |
608 |
prt[1] = 424 |
609 |
} |
610 |
if (!global.dialogue_open) |
611 |
{ |
612 |
timer = 25 |
613 |
scene++ |
614 |
} |
615 |
break |
616 |
case 30: |
617 |
if (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ()) |
618 |
return; |
619 |
obj_saloon_audience.crowd_animate = true |
620 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
621 |
with (msg) |
622 |
{ |
623 |
position = 0 |
624 |
message[0] = "* You're the best!" |
625 |
message[1] = "* Yeah! The only sheriff fer me!" |
626 |
position = 0 |
627 |
} |
628 |
if (!global.dialogue_open) |
629 |
{ |
630 |
obj_saloon_audience.crowd_animate = false |
631 |
scene++ |
632 |
timer = 30 |
633 |
} |
634 |
break |
635 |
case 31: |
636 |
if (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ()) |
637 |
return; |
638 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
639 |
with (msg) |
640 |
{ |
641 |
sndfnt = 107 |
642 |
position = 0 |
643 |
talker[0] = starlo |
644 |
message[0] = "* Haha." |
645 |
message[1] = "* Well I reckon we're done# here." |
646 |
message[2] = "* Y'all can go back to yer# daily lives fer now!" |
647 |
prt[0] = 413 |
648 |
prt[1] = 417 |
649 |
prt[2] = 417 |
650 |
} |
651 |
if (!global.dialogue_open) |
652 |
scene++ |
653 |
break |
654 |
case 32: |
655 |
if (ceroba.image_speed == 0) |
656 |
{ |
657 |
ceroba.image_speed = 0.2 |
658 |
ceroba.image_index = 0 |
659 |
} |
660 |
if (ceroba.image_index >= (ceroba.image_number - 1)) |
661 |
{ |
662 |
ceroba.sprite_index = spr_ceroba_up_walk |
663 |
ceroba.image_speed = 0 |
664 |
ceroba.image_index = 0 |
665 |
timer = 30 |
666 |
scene++ |
667 |
scr_audio_fade_outscr_audio_fade_outfunction scr_audio_fade_out(argument0, argument1) //gml_Script_scr_audio_fade_out
{
var snd = argument0
var fade_len = argument1
if (!audio_is_playing(snd))
return false;
audio_sound_gain(snd, 0, fade_len)
if instance_exists(obj_audio_fade_helper)
{
with (obj_audio_fade_helper)
{
if (audio_to_fade == snd)
return false;
}
}
with (instance_create(0, 0, obj_audio_fade_helper))
audio_to_fade = snd
} (mus_a_new_partner, 1500) |
668 |
} |
669 |
break |
670 |
case 33: |
671 |
if (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ()) |
672 |
return; |
673 |
with (ceroba) |
674 |
{ |
675 |
depth = (-y) |
676 |
if (x < 300) |
677 |
{ |
678 |
x += 2 |
679 |
if ((!sprite_index) != spr_ceroba_right_walk) |
680 |
{ |
681 |
sprite_index = spr_ceroba_right_walk |
682 |
image_speed = 0.2 |
683 |
} |
684 |
} |
685 |
else if (y < 300) |
686 |
{ |
687 |
y += 2 |
688 |
if ((!sprite_index) != spr_ceroba_down_walk) |
689 |
sprite_index = spr_ceroba_down_walk |
690 |
} |
691 |
else |
692 |
{ |
693 |
ceroba.image_speed = 0 |
694 |
ceroba.image_alpha = 0 |
695 |
other.timer = 30 |
696 |
other.scene++ |
697 |
scr_audio_fade_outscr_audio_fade_outfunction scr_audio_fade_out(argument0, argument1) //gml_Script_scr_audio_fade_out
{
var snd = argument0
var fade_len = argument1
if (!audio_is_playing(snd))
return false;
audio_sound_gain(snd, 0, fade_len)
if instance_exists(obj_audio_fade_helper)
{
with (obj_audio_fade_helper)
{
if (audio_to_fade == snd)
return false;
}
}
with (instance_create(0, 0, obj_audio_fade_helper))
audio_to_fade = snd
} (mus_a_new_partner, 1000) |
698 |
} |
699 |
} |
700 |
break |
701 |
case 34: |
702 |
if (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ()) |
703 |
return; |
704 |
starlo.npc_direction = "right" |
705 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
706 |
with (msg) |
707 |
{ |
708 |
sndfnt = 107 |
709 |
position = 0 |
710 |
talker[0] = starlo |
711 |
message[0] = "* As for you, Clover, it's# 'bout time you see what# this town has to offer!" |
712 |
message[1] = "* I would give ya a# personal tour but..." |
713 |
message[2] = "* If there's one thing you# have where you come# from, it's freedom!" |
714 |
message[3] = "* Take yer time explorin',# talk to the townsfolk,# and enjoy yerself." |
715 |
message[4] = "* I'll be waitin' here# for ya." |
716 |
message[5] = "* Give me a shout when# ye're ready to start# trainin'!" |
717 |
prt[0] = 417 |
718 |
prt[1] = 407 |
719 |
prt[2] = 417 |
720 |
prt[3] = 417 |
721 |
prt[4] = 417 |
722 |
prt[5] = 417 |
723 |
} |
724 |
if (!global.dialogue_open) |
725 |
{ |
726 |
obj_pl.x = obj_saloon_sitting_clover.x |
727 |
obj_pl.y = obj_saloon_sitting_clover.y |
728 |
starlo.npc_direction = "down" |
729 |
scene++ |
730 |
timer = 30 |
731 |
} |
732 |
break |
733 |
case 35: |
734 |
if (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ()) |
735 |
return; |
736 |
if (!(scr_camera_movescr_camera_movefunction scr_camera_move(argument0, argument1, argument2) //gml_Script_scr_camera_move
{
if (!instance_exists(obj_camera))
{
instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_camera)
__view_set((9 << 0), 0, 1120)
}
else
{
obj_camera.x = __view_get((9 << 0), 0).x
obj_camera.y = __view_get((9 << 0), 0).y
__view_set((9 << 0), 0, 1120)
}
obj_camera.move = true
obj_camera.xx = argument0
obj_camera.yy = argument1
obj_camera.spd = argument2
if (abs(argument0 - obj_camera.x) <= argument2 && abs(argument1 - obj_camera.y) <= argument2)
return true;
else
return false;
} (obj_pl.x, obj_pl.y, 1))) |
737 |
return; |
738 |
else |
739 |
__view_set((9 << 0), 0, 1031) |
740 |
clover_npc = instance_create(obj_saloon_sitting_clover.x, obj_saloon_sitting_clover.y, obj_player_npc) |
741 |
instance_destroy(obj_saloon_sitting_clover) |
742 |
with (clover_npc) |
743 |
{ |
744 |
can_walk = false |
745 |
obj_saloon_stool.depth = 0 |
746 |
action_sprite = true |
747 |
sprite_index = spr_pl_run_down |
748 |
image_index = 1 |
749 |
image_speed = 0 |
750 |
path_start(pt_saloon_clover_stand_up, 2, path_action_stop, false) |
751 |
audio_play_sound(snd_playerjump, 1, 0) |
752 |
} |
753 |
timer = 30 |
754 |
scene++ |
755 |
break |
756 |
case 36: |
757 |
clover_npc.depth = obj_saloon_stool.depth - 1 |
758 |
if (clover_npc.path_position >= 1 && (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ())) |
759 |
{ |
760 |
clover_npc.action_sprite = false |
761 |
clover_npc.can_walk = true |
762 |
clover_npc.npc_direction = "down" |
763 |
clover_npc.x_dest[0] = clover_npc.x |
764 |
clover_npc.y_dest[0] = 135 |
765 |
clover_npc.end_direction = "down" |
766 |
clover_npc.path_position = 0 |
767 |
scene++ |
768 |
timer = 30 |
769 |
} |
770 |
break |
771 |
case 37: |
772 |
if ((!clover_npc.npc_arrived) || (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ())) |
773 |
return; |
774 |
with (clover_npc) |
775 |
{ |
776 |
action_sprite = true |
777 |
sprite_index = spr_pl_run_down |
778 |
image_index = 1 |
779 |
image_speed = 0 |
780 |
if (path_position >= 1) |
781 |
{ |
782 |
npc_direction = "down" |
783 |
sprite_index = spr_pl_down |
784 |
image_index = 0 |
785 |
other.scene++ |
786 |
other.timer = 30 |
787 |
} |
788 |
else if (path_index == -1) |
789 |
{ |
790 |
audio_play_sound(snd_playerjump, 1, 0) |
791 |
path_start(pt_saloon_jump_off, 2, path_action_stop, false) |
792 |
} |
793 |
} |
794 |
break |
795 |
case 38: |
796 |
if (clover_npc.path_position >= 1 && (!scr_timerscr_timerfunction scr_timer() //gml_Script_scr_timer
{
if (timer > 0)
{
timer--
return false;
}
else
return true;
} ())) |
797 |
return; |
798 |
obj_pl.direction = 270 |
799 |
obj_pl.sprite_index = spr_pl_down |
800 |
obj_pl.x = clover_npc.x |
801 |
obj_pl.y = clover_npc.y |
802 |
obj_pl.image_alpha = 1 |
803 |
scr_cutscene_end() |
804 |
instance_destroy(clover_npc) |
805 |
instance_destroy(ceroba) |
806 |
instance_destroy(ed) |
807 |
global.dunes_flag[20] = 1 |
808 |
obj_radio.bgm = 189 |
809 |
global.radio_restart = true |
810 |
cutscene_advance(39) |
811 |
break |
812 |
case 39: |
813 |
if instance_exists(obj_transition) |
814 |
{ |
815 |
obj_transition.fade_in_speed = 0.05 |
816 |
obj_transition.fade_out_speed = 0.025 |
817 |
instance_destroy() |
818 |
} |
819 |
break |
820 |
} |