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