|
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_speaker
function 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_debugscr_debug
function scr_debug()
{
return 0;
} ())
|
|
61
|
{
|
|
62
|
}
|
|
63
|
if (global.flag[915 snowgrave_plot] >= 2 && global.flag[916 snowgrave_fail] == 0)
|
|
64
|
{
|
|
65
|
if (encountercheck == 0)
|
|
66
|
{
|
|
67
|
if (instance_exists(obj_battleback))
|
|
68
|
encountercheck = 1;
|
|
69
|
}
|
|
70
|
if (encountercheck == 1)
|
|
71
|
{
|
|
72
|
if (!instance_exists(obj_battleback))
|
|
73
|
{
|
|
74
|
alarm[11] = 1; gml_Object_obj_weirdroute_manipulator_Alarm_11.gml
failcount = scr_sideb_checkencounters();
if (failcount != 0)
scr_sideb_fail(1);
|
|
75
|
encountercheck = 0;
|
|
76
|
}
|
|
77
|
}
|
|
78
|
}
|
|
79
|
if (init == 0)
|
|
80
|
{
|
|
81
|
if (phase == 2)
|
|
82
|
{
|
|
83
|
with (obj_chaseenemy)
|
|
84
|
chasetype = 8;
|
|
85
|
}
|
|
86
|
init = 1;
|
|
87
|
}
|
|
88
|
if (phasechange == true)
|
|
89
|
{
|
|
90
|
if (global.flag[915 snowgrave_plot] == 4)
|
|
91
|
{
|
|
92
|
if (instance_exists(obj_musicer_city))
|
|
93
|
{
|
|
94
|
obj_musicer_city.update = true;
|
|
95
|
phasechange = false;
|
|
96
|
}
|
|
97
|
else
|
|
98
|
{
|
|
99
|
instance_create(0, 0, obj_musicer_city);
|
|
100
|
phasechange = false;
|
|
101
|
}
|
|
102
|
}
|
|
103
|
}
|
|
104
|
if (global.flag[915 snowgrave_plot] > 0 && global.flag[916 snowgrave_fail] == 0)
|
|
105
|
{
|
|
106
|
if (scr_sideb_checkencountersscr_sideb_checkencounters
function 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)
|
|
107
|
scr_sideb_failscr_sideb_fail
function 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)
{
}
}
}
} ();
|
|
108
|
}
|
|
109
|
if (global.flag[916 snowgrave_fail] > failstate)
|
|
110
|
snd_play(snd_ominous_cancel);
|
|
111
|
lastphase = global.flag[915 snowgrave_plot];
|
|
112
|
failstate = global.flag[916 snowgrave_fail];
|