|
1
|
if (instance_exists(obj_mouseSpawnSwitch))
|
|
2
|
{
|
|
3
|
if (obj_mouseSpawnSwitch.introFinished == 1)
|
|
4
|
{
|
|
5
|
if (victory == 1 && victoryCelebrated == 0)
|
|
6
|
{
|
|
7
|
global.interact = 1;
|
|
8
|
if (instance_exists(obj_mouseSpawnSwitch))
|
|
9
|
obj_mouseSpawnSwitch.timer = 0;
|
|
10
|
if (noelleScared > 0)
|
|
11
|
{
|
|
12
|
global.interact = 1;
|
|
13
|
if (con == 0)
|
|
14
|
{
|
|
15
|
global.plot = 72;
|
|
16
|
scr_tempsavescr_tempsave
function scr_tempsave()
{
filechoicebk2 = global.filechoice;
global.filechoice = 9;
scr_saveprocess(global.filechoice);
global.filechoice = filechoicebk2;
} ();
|
|
17
|
global.interact = 1;
|
|
18
|
if (instance_exists(obj_npc_facing))
|
|
19
|
{
|
|
20
|
obj_caterpillarchara.x = obj_npc_facing.x;
|
|
21
|
obj_caterpillarchara.y = obj_npc_facing.y;
|
|
22
|
with (obj_npc_facing)
|
|
23
|
instance_destroy();
|
|
24
|
}
|
|
25
|
else if (instance_exists(obj_noelle_scared))
|
|
26
|
{
|
|
27
|
obj_caterpillarchara.x = obj_noelle_scared.x;
|
|
28
|
obj_caterpillarchara.y = obj_noelle_scared.y;
|
|
29
|
with (obj_noelle_scared)
|
|
30
|
instance_destroy();
|
|
31
|
}
|
|
32
|
cutscene_master = scr_cutscene_makescr_cutscene_make
function scr_cutscene_make()
{
_cutscene_master = instance_create(0, 0, obj_cutscene_master);
_cutscene_master.master_object = id;
return _cutscene_master;
} ();
|
|
33
|
scr_maincharacters_actorsscr_maincharacters_actors
function scr_maincharacters_actors()
{
actor_count = 0;
kr = 0;
kr_actor = instance_create(obj_mainchara.x, obj_mainchara.y, obj_actor);
scr_actor_setup(kr, kr_actor, "kris");
kr_actor.sprite_index = obj_mainchara.sprite_index;
kr_actor.depth = obj_mainchara.depth;
with (obj_mainchara)
visible = 0;
for (__jj = 0; __jj < array_length_1d(global.cinstance); __jj++)
{
if (i_ex(global.cinstance[__jj]))
{
if (global.cinstance[__jj].name == "susie")
{
actor_count++;
su = __jj + 1;
su_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(su, su_actor, "susie");
su_actor.sprite_index = global.cinstance[__jj].sprite_index;
su_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
if (global.cinstance[__jj].name == "ralsei")
{
actor_count++;
ra = __jj + 1;
ra_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(ra, ra_actor, "ralsei");
ra_actor.sprite_index = global.cinstance[__jj].sprite_index;
ra_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
if (global.cinstance[__jj].name == "noelle")
{
actor_count++;
no = __jj + 1;
no_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(no, no_actor, "noelle");
no_actor.sprite_index = global.cinstance[__jj].sprite_index;
no_actor.depth = global.cinstance[__jj].depth;
with (global.cinstance[__jj])
visible = 0;
}
}
}
} ();
|
|
34
|
con = 1;
|
|
35
|
}
|
|
36
|
if (con == 1)
|
|
37
|
{
|
|
38
|
con = -1;
|
|
39
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (15);
|
|
40
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (no);
|
|
41
|
c_walkdirect_waitc_walkdirect_wait
function c_walkdirect_wait(arg0, arg1, arg2)
{
c_walkdirect(arg0, arg1, arg2);
c_wait(arg2);
} (300, 225, 28);
|
|
42
|
c_walkdirect_waitc_walkdirect_wait
function c_walkdirect_wait(arg0, arg1, arg2)
{
c_walkdirect(arg0, arg1, arg2);
c_wait(arg2);
} (300, 262, 10);
|
|
43
|
c_walkdirect_waitc_walkdirect_wait
function c_walkdirect_wait(arg0, arg1, arg2)
{
c_walkdirect(arg0, arg1, arg2);
c_wait(arg2);
} (244, 262, 12);
|
|
44
|
c_speakerc_speaker
function c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
} ("noelle");
|
|
45
|
if (obj_mouseSpawnSwitch.earlywin == 0)
|
|
46
|
c_msgsetlocc_msgsetloc
function c_msgsetloc(arg0, arg1, arg2)
{
var msg_index = arg0;
var english = arg1;
var localized_string_id = arg2;
var str = english;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
} (0, Face 4* L-looks like that took care of it...Wait for inputClose Message"\\E4* L-looks like that took care of it.../%", "obj_controller_dw_city_mice_slash_Step_0_gml_48_0" );
|
|
47
|
else
|
|
48
|
c_msgsetlocc_msgsetloc
function c_msgsetloc(arg0, arg1, arg2)
{
var msg_index = arg0;
var english = arg1;
var localized_string_id = arg2;
var str = english;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
} (0, Face 8* W-well,Delay 11 hopefully that won't happen again!Wait for inputClose Message"\\E8* W-well^1, hopefully that won't happen again!/%", "obj_controller_dw_city_mice_slash_Step_0_gml_54_0" );
|
|
49
|
c_talk_waitc_talk_wait
function c_talk_wait()
{
c_talk();
c_waittalk();
} ();
|
|
50
|
c_actortokrisc_actortokris
function c_actortokris()
{
c_cmd("actortokris", 0, 0, 0, 0);
} ();
|
|
51
|
c_actortocaterpillarc_actortocaterpillar
function c_actortocaterpillar()
{
c_cmd("actortocaterpillar", 0, 0, 0, 0);
} ();
|
|
52
|
c_var_instancec_var_instance
function c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
} (id, "con", 2);
|
|
53
|
c_terminatekillactorsc_terminatekillactors
function c_terminatekillactors()
{
c_cmd("terminatekillactors", 0, 0, 0, 0);
} ();
|
|
54
|
}
|
|
55
|
if (con == 2 && !d_ex())
|
|
56
|
{
|
|
57
|
global.interact = 0;
|
|
58
|
victoryCelebrated = 1;
|
|
59
|
}
|
|
60
|
}
|
|
61
|
}
|
|
62
|
}
|
|
63
|
}
|
|
64
|
if (victoryCelebrated == 1)
|
|
65
|
{
|
|
66
|
if (instance_exists(obj_mouseSpawnSwitch))
|
|
67
|
obj_mouseSpawnSwitch.timer = 29;
|
|
68
|
if (instance_exists(obj_mouseSpawnSwitch))
|
|
69
|
obj_mouseSpawnSwitch.introCon = 6;
|
|
70
|
global.interact = 0;
|
|
71
|
victoryCelebrated++;
|
|
72
|
}
|
|
73
|
if (scaredAgain == 0)
|
|
74
|
{
|
|
75
|
global.interact = 1;
|
|
76
|
scaredAgainCount++;
|
|
77
|
scaredAgain++;
|
|
78
|
extTimer = 0;
|
|
79
|
}
|
|
80
|
if (scaredAgain == 1)
|
|
81
|
{
|
|
82
|
if (instance_exists(obj_npc_facing))
|
|
83
|
obj_npc_facing.sprite_index = spr_noelle_shocked_dw;
|
|
84
|
global.interact = 1;
|
|
85
|
extTimer++;
|
|
86
|
if (extTimer > 60 && !instance_exists(obj_holemouse))
|
|
87
|
{
|
|
88
|
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");
|
|
89
|
msgsetloc(0, Face 2* K-Kris!Delay 11 If the mice hit a wall,Delay 11 they'll come over here...Wait for input"\\E2* K-Kris^1! If the mice hit a wall^1, they'll come over here.../", "obj_controller_dw_city_mice_slash_Step_0_gml_113_0" );
|
|
90
|
msgnextloc(Face 4* (Try using those blocks to get them into the hole?)Wait for inputClose Message"\\E4* (Try using those blocks to get them into the hole?)/%", "obj_controller_dw_city_mice_slash_Step_0_gml_114_0" );
|
|
91
|
if (scaredAgainCount == 2)
|
|
92
|
{
|
|
93
|
msgsetloc(0, Face E* K-Kris!!Wait for input"\\EE* K-Kris!!/", "obj_controller_dw_city_mice_slash_Step_0_gml_117_0" );
|
|
94
|
msgnextloc(Face 8* Gosh,Delay 11 you did that on purpose,Delay 11 didn't you!?Wait for input"\\E8* Gosh^1, you did that on purpose^1, didn't you!?/", "obj_controller_dw_city_mice_slash_Step_0_gml_118_0" );
|
|
95
|
msgnextloc(Face 3* (It's like when they swapped my eggnog with mayo...)Wait for inputClose Message"\\E3* (It's like when they swapped my eggnog with mayo...)/%", "obj_controller_dw_city_mice_slash_Step_0_gml_119_0" );
|
|
96
|
}
|
|
97
|
if (scaredAgainCount >= 3)
|
|
98
|
msgsetloc(0, Face 2* ...Wait for inputClose Message"\\E2* .../%", "obj_controller_dw_city_mice_slash_Step_0_gml_122_0" );
|
|
99
|
d = d_make();
|
|
100
|
with (obj_npc_facing)
|
|
101
|
dfacing = 3;
|
|
102
|
scaredAgain++;
|
|
103
|
}
|
|
104
|
}
|
|
105
|
if (scaredAgain == 2)
|
|
106
|
{
|
|
107
|
global.interact = 1;
|
|
108
|
if (!d_ex())
|
|
109
|
{
|
|
110
|
with (obj_npc_facing)
|
|
111
|
dfacing = 0;
|
|
112
|
global.interact = 0;
|
|
113
|
scaredAgain++;
|
|
114
|
}
|
|
115
|
}
|