1 |
if (lastphase != global.flag[915 snowgrave_plot]) |
2 |
phasechange = true; |
3 |
else |
4 |
phasechange = false; |
5 |
if (global.flag[915 snowgrave_plot] == 0 && global.flag[531 encount_tutor_viro] == 6) |
6 |
{ |
7 |
snd_play(snd_ominous); |
8 |
global.flag[915 snowgrave_plot] = 1; |
9 |
} |
10 |
if (room == room_dw_city_intro) |
11 |
{ |
12 |
if (global.flag[915 snowgrave_plot] == 1 && global.flag[916 snowgrave_fail] == 0 && global.flag[452 told_wrongway] == 0) |
13 |
{ |
14 |
if (trashcon == 0) |
15 |
{ |
16 |
if (i_ex(obj_mainchara)) |
17 |
{ |
18 |
if (obj_mainchara.x < (room_width / 2) && global.interact == 0) |
19 |
{ |
20 |
global.interact = 1; |
21 |
trashcon = 1; |
22 |
scr_speakerscr_speakerfunction scr_speaker(arg0)
{
_speaker = arg0;
global.typer = 5;
if (global.darkzone == 1)
global.typer = 6;
if (global.fighting == 1)
global.typer = 4;
global.fc = 0;
global.fe = 0;
if (_speaker == "silent" && global.darkzone == 0)
global.typer = 2;
if (_speaker == "silent" && global.darkzone == 1)
global.typer = 36;
if (_speaker == "balloon" || _speaker == "enemy")
global.typer = 50;
if (_speaker == "sans")
{
global.typer = 14;
global.fc = 6;
}
if (_speaker == "undyne" || _speaker == "und")
{
global.typer = 17;
global.fc = 9;
}
if (_speaker == "temmie" || _speaker == "tem")
global.typer = 21;
if (_speaker == "jevil")
global.typer = 35;
if (_speaker == "catti")
global.fc = 13;
if (_speaker == "jockington" || _speaker == "joc")
global.fc = 14;
if (_speaker == "catty" || _speaker == "caddy")
global.fc = 16;
if (_speaker == "bratty" || _speaker == "bra")
global.fc = 17;
if (_speaker == "rouxls" || _speaker == "rou")
global.fc = 18;
if (_speaker == "burgerpants" || _speaker == "bur")
global.fc = 19;
if (_speaker == "spamton")
{
if (global.fighting == 0)
global.typer = 66;
else
global.typer = 68;
}
if (_speaker == "sneo")
global.typer = 67;
if (_speaker == "susie" || _speaker == "sus")
{
global.fc = 1;
global.typer = 10;
if (global.darkzone == 1)
{
global.typer = 30;
if (global.fighting == 1)
global.typer = 47;
}
}
if (_speaker == "ralsei" || _speaker == "ral")
{
global.fc = 2;
global.typer = 31;
if (global.fighting == 1)
global.typer = 45;
if ( global.flag[30 ralsei_hat_state] == 1)
global.typer = 6;
}
if (_speaker == "noelle" || _speaker == "noe")
{
global.fc = 3;
if (global.darkzone == 0)
global.typer = 12;
else
global.typer = 56;
if (global.fighting == 1)
global.typer = 59;
}
if (_speaker == "toriel" || _speaker == "tor")
{
global.fc = 4;
global.typer = 7;
}
if (_speaker == "asgore" || _speaker == "asg")
{
global.fc = 10;
global.typer = 18;
}
if (_speaker == "king" || _speaker == "kin")
{
global.fc = 20;
global.typer = 33;
if (global.chapter == 1)
{
if (global.plot < 235)
global.typer = 36;
}
if (global.fighting == 1)
... ("noelle"); |
23 |
msgsetloc(0, Face 2* K-Kris...?Delay 11 Are you sure this isn't the wrong way?Wait for inputClose Message"\\E2* K-Kris...^1? Are you sure this isn't the wrong way?/%", "obj_weirdroute_manipulator_slash_Step_0_gml_36_0" ); |
24 |
d_make(); |
25 |
} |
26 |
} |
27 |
} |
28 |
if (trashcon == 1 && !d_ex()) |
29 |
{ |
30 |
global.interact = 0; |
31 |
global.flag[452 told_wrongway] = 1; |
32 |
trashcon++; |
33 |
} |
34 |
} |
35 |
} |
36 |
if (global.flag[915 snowgrave_plot] == 1 && global.flag[916 snowgrave_fail] == 0) |
37 |
{ |
38 |
if (global.flag[559 encount_trash_popup] == 6 && global.flag[560 encount_trash_viro] == 6 && global.flag[561 encount_trash_ww] == 6) |
39 |
{ |
40 |
snd_play(snd_ominous); |
41 |
global.flag[915 snowgrave_plot] = 1.5; |
42 |
} |
43 |
} |
44 |
if (global.flag[915 snowgrave_plot] == 1.5 && global.flag[916 snowgrave_fail] == 0) |
45 |
{ |
46 |
if (global.flag[562 encount_road_medic] == 6 && global.flag[563 encount_road_tasque] == 6) |
47 |
{ |
48 |
snd_play(snd_ominous); |
49 |
global.flag[915 snowgrave_plot] = 1.75; |
50 |
} |
51 |
} |
52 |
if (global.flag[915 snowgrave_plot] == 1.75 && global.flag[916 snowgrave_fail] == 0) |
53 |
{ |
54 |
if (global.flag[564 encount_road_viro] == 6 && global.flag[565 encount_road_ww] == 6 && global.flag[532 encount_ambulance] == 6 && global.flag[533 encount_antivirus] == 6) |
55 |
{ |
56 |
snd_play(snd_ominous); |
57 |
global.flag[915 snowgrave_plot] = 2; |
58 |
} |
59 |
} |
60 |
if (scr_debug()) |
61 |
{ |
62 |
if (keyboard_check(vk_shift) && keyboard_check_pressed(ord("F"))) |
63 |
{ |
64 |
scr_weapongetscr_weapongetfunction scr_weaponget(arg0)
{
noroom = 0;
var legacy = 0;
var __i = 0;
if (legacy == 0)
{
var __itemcount = 0;
__weapon[0] = arg0;
for (__i = 0; __i < 48; __i++)
{
if (global.weapon[__i] != 0)
{
__weapon[__itemcount + 1] = global.weapon[__i];
__itemcount++;
}
}
if (__itemcount >= 48)
{
noroom = 1;
}
else
{
for (__i = 0; __i < 48; __i++)
{
if (__i <= __itemcount)
global.weapon[__i] = __weapon[__i];
else
global.weapon[__i] = 0;
}
}
}
else if (legacy)
{
loop = 1;
global.weapon[48] = 999;
while (loop == 1)
{
if (global.weapon[__i] == 0)
{
global.weapon[__i] = arg0;
break;
}
if (__i == 48)
{
noroom = 1;
break;
}
__i += 1;
}
}
script_execute(scr_weaponinfo_all);
} (13); |
65 |
snd_play(snd_ominous); |
66 |
} |
67 |
} |
68 |
if (global.flag[915 snowgrave_plot] >= 2 && global.flag[916 snowgrave_fail] == 0) |
69 |
{ |
70 |
if (encountercheck == 0) |
71 |
{ |
72 |
if (instance_exists(obj_battleback)) |
73 |
encountercheck = 1; |
74 |
} |
75 |
if (encountercheck == 1) |
76 |
{ |
77 |
if (!instance_exists(obj_battleback)) |
78 |
{ |
79 |
alarm[11] = 1; |
80 |
encountercheck = 0; |
81 |
} |
82 |
} |
83 |
} |
84 |
if (init == 0) |
85 |
{ |
86 |
if (phase == 2) |
87 |
{ |
88 |
with (obj_chaseenemy) |
89 |
chasetype = 8; |
90 |
} |
91 |
init = 1; |
92 |
} |
93 |
if (phasechange == true) |
94 |
{ |
95 |
if (global.flag[915 snowgrave_plot] == 4) |
96 |
{ |
97 |
if (instance_exists(obj_musicer_city)) |
98 |
{ |
99 |
obj_musicer_city.update = true; |
100 |
phasechange = false; |
101 |
} |
102 |
else |
103 |
{ |
104 |
instance_create(0, 0, obj_musicer_city); |
105 |
phasechange = false; |
106 |
} |
107 |
} |
108 |
} |
109 |
if (global.flag[915 snowgrave_plot] > 0 && global.flag[916 snowgrave_fail] == 0) |
110 |
{ |
111 |
if (scr_sideb_checkencountersscr_sideb_checkencountersfunction scr_sideb_checkencounters()
{
var failcount = 0;
var encounterlist = 0;
encounterlist[0] = 531;
array_push(encounterlist, 532);
array_push(encounterlist, 533);
array_push(encounterlist, 534);
array_push(encounterlist, 535);
array_push(encounterlist, 538);
array_push(encounterlist, 556);
array_push(encounterlist, 553);
array_push(encounterlist, 554);
array_push(encounterlist, 555);
array_push(encounterlist, 559);
array_push(encounterlist, 560);
array_push(encounterlist, 561);
array_push(encounterlist, 562);
array_push(encounterlist, 563);
array_push(encounterlist, 564);
array_push(encounterlist, 565);
array_push(encounterlist, 566);
array_push(encounterlist, 567);
for (var i = 0; i < array_length(encounterlist); i++)
{
if (global.flag[encounterlist[i]] != 0 && global.flag[encounterlist[i]] != 6)
{
failcount++;
debug_message("failure at global.flag[" + string(encounterlist[i]) + "], result: " + string(global.flag[encounterlist[i]]));
}
}
encounterlist = 0;
return failcount;
} () >= 1) |
112 |
scr_sideb_failscr_sideb_failfunction scr_sideb_fail()
{
if ( global.flag[916 snowgrave_fail] == 0)
{
global.flag[916 snowgrave_fail] = 1;
if (argument_count > 0 && argument[0] == 1)
{
if ( global.flag[915 snowgrave_plot] > 0)
{
}
}
}
} (); |
113 |
} |
114 |
if (global.flag[916 snowgrave_fail] > failstate) |
115 |
snd_play(snd_ominous_cancel); |
116 |
lastphase = global.flag[915 snowgrave_plot]; |
117 |
failstate = global.flag[916 snowgrave_fail]; |