|
1
|
if (i_ex(bars))
|
|
2
|
{
|
|
3
|
if (bars.sprite_index == bg_lw_police_house_bars_open)
|
|
4
|
{
|
|
5
|
if (global.flag[317 seen_police_scene] == 0)
|
|
6
|
bars.depth = 100000000;
|
|
7
|
else
|
|
8
|
bars.depth = (obj_mainchara.y > 60) ? 100000000 : 5000;
|
|
9
|
}
|
|
10
|
else
|
|
11
|
{
|
|
12
|
with (bars)
|
|
13
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
14
|
}
|
|
15
|
}
|
|
16
|
if (i_ex(undynedesk))
|
|
17
|
{
|
|
18
|
with (undynedesk)
|
|
19
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
20
|
}
|
|
21
|
if (i_ex(boombox))
|
|
22
|
{
|
|
23
|
with (boombox)
|
|
24
|
scr_depthscr_depth
function scr_depth()
{
depth = 100000 - ((y * 10) + (sprite_height * 10));
} ();
|
|
25
|
}
|
|
26
|
if (con < 5)
|
|
27
|
{
|
|
28
|
if (i_ex(keys))
|
|
29
|
keys.depth = undynedesk.depth - 10;
|
|
30
|
}
|
|
31
|
else if (i_ex(keys))
|
|
32
|
{
|
|
33
|
keys.depth = 0;
|
|
34
|
}
|
|
35
|
if (con > -1)
|
|
36
|
global.interact = 1;
|
|
37
|
if (con == 1 && !d_ex())
|
|
38
|
{
|
|
39
|
con = 2;
|
|
40
|
undynedesk.sprite_index = spr_undyne_police_table_laugh;
|
|
41
|
undynedesk.image_speed = 0.1;
|
|
42
|
undyne_slam = true;
|
|
43
|
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)
... ("undyne");
|
|
44
|
msgsetloc(0, Face 0* Haha...Delay 11 DARK WORLD??Wait for input"\\E0* Haha..^1. DARK WORLD??/", "obj_npc_police_slash_Step_0_gml_60_0" );
|
|
45
|
msgnextloc(Face 7* Hahahaha...Delay 11 seriously!? Hahahaha!!Wait for input"\\E7* Hahahaha..^1. seriously!? Hahahaha!!/", "obj_npc_police_slash_Step_0_gml_61_0" );
|
|
46
|
msgnextloc(Face 5* NGAAAHahahahahahahah!!!Wait for inputClose Message"\\E5* NGAAAHahahahahahahah!!!/%", "obj_npc_police_slash_Step_0_gml_62_0" );
|
|
47
|
d_make();
|
|
48
|
}
|
|
49
|
if (undyne_slam)
|
|
50
|
{
|
|
51
|
undyne_slam_timer++;
|
|
52
|
if (undyne_slam_timer >= 20)
|
|
53
|
{
|
|
54
|
undyne_slam_timer = 0;
|
|
55
|
snd_play(snd_impact);
|
|
56
|
}
|
|
57
|
}
|
|
58
|
if (con == 2)
|
|
59
|
{
|
|
60
|
con = 3;
|
|
61
|
alarm[0] = 20; gml_Object_obj_npc_police_Alarm_0.gml
con++;
if (repeatalarm)
alarm[0] = 10;
|
|
62
|
}
|
|
63
|
if (con == 4 && !d_ex())
|
|
64
|
{
|
|
65
|
con = 5;
|
|
66
|
undyne_slam = false;
|
|
67
|
undyne_slam_timer = 0;
|
|
68
|
undynedesk.sprite_index = spr_undyne_police_table_break;
|
|
69
|
undynedesk.image_speed = 0;
|
|
70
|
undynedesk.image_index = 0;
|
|
71
|
alarm[0] = 8; gml_Object_obj_npc_police_Alarm_0.gml
con++;
if (repeatalarm)
alarm[0] = 10;
|
|
72
|
}
|
|
73
|
if (con == 6)
|
|
74
|
{
|
|
75
|
con = 7;
|
|
76
|
snd_play(snd_impact);
|
|
77
|
instance_create(0, 0, obj_shake);
|
|
78
|
undynedesk.sprite_index = spr_undyne_police_table_break;
|
|
79
|
undynedesk.image_index = 1;
|
|
80
|
keycon = 1;
|
|
81
|
alarm[0] = 15; gml_Object_obj_npc_police_Alarm_0.gml
con++;
if (repeatalarm)
alarm[0] = 10;
|
|
82
|
}
|
|
83
|
if (con == 8)
|
|
84
|
{
|
|
85
|
con = 9;
|
|
86
|
undynedesk.sprite_index = spr_undyne_police_table_surprise;
|
|
87
|
undynedesk.image_index = 0;
|
|
88
|
}
|
|
89
|
if (keycon == 1)
|
|
90
|
{
|
|
91
|
if (i_ex(keys))
|
|
92
|
{
|
|
93
|
keycon = 2;
|
|
94
|
with (keys)
|
|
95
|
scr_jump_to_pointscr_jump_to_point
function scr_jump_to_point(arg0, arg1, arg2, arg3)
{
return scr_jump_to_point_sprite(arg0, arg1, arg2, arg3, 0, 0);
} (250, 75, 10, 25);
|
|
96
|
}
|
|
97
|
}
|
|
98
|
if (keycon == 2)
|
|
99
|
{
|
|
100
|
key_turn_timer++;
|
|
101
|
if (key_turn_timer >= 25 && keys.image_index == 0)
|
|
102
|
{
|
|
103
|
snd_play(snd_noise);
|
|
104
|
with (keys)
|
|
105
|
image_index = 1;
|
|
106
|
undynedesk.image_index = 1;
|
|
107
|
}
|
|
108
|
if (key_turn_timer >= 65 && keys.image_index == 1)
|
|
109
|
{
|
|
110
|
snd_play(snd_noise);
|
|
111
|
with (keys)
|
|
112
|
image_index = 2;
|
|
113
|
}
|
|
114
|
if (key_turn_timer >= 90 && keys.image_index == 2)
|
|
115
|
keycon = 3;
|
|
116
|
}
|
|
117
|
if (keycon == 3)
|
|
118
|
{
|
|
119
|
pausetimer++;
|
|
120
|
if (pausetimer >= 30)
|
|
121
|
{
|
|
122
|
keycon = 4;
|
|
123
|
instance_destroy(keys);
|
|
124
|
instance_destroy(undyneinteract);
|
|
125
|
instance_destroy(undynesideinteract);
|
|
126
|
snd_play(snd_dooropen);
|
|
127
|
bars.sprite_index = bg_lw_police_house_bars_open;
|
|
128
|
doorcollider = instance_create(223, 95, obj_solidblock);
|
|
129
|
doorcollider.image_xscale = 0.35;
|
|
130
|
doorcollider.image_yscale = 0.95;
|
|
131
|
}
|
|
132
|
}
|
|
133
|
if (global.flag[317 seen_police_scene] == 0 && con == 9 && keycon == 3)
|
|
134
|
{
|
|
135
|
con = 10;
|
|
136
|
alarm[0] = 90; gml_Object_obj_npc_police_Alarm_0.gml
con++;
if (repeatalarm)
alarm[0] = 10;
|
|
137
|
repeatalarm = true;
|
|
138
|
}
|
|
139
|
if (global.flag[317 seen_police_scene] == 0 && kriscon == 1)
|
|
140
|
{
|
|
141
|
var stopcon = false;
|
|
142
|
with (obj_mainchara)
|
|
143
|
{
|
|
144
|
var runspeed = 8;
|
|
145
|
if (x > 130)
|
|
146
|
{
|
|
147
|
global.facing = 2;
|
|
148
|
x -= runspeed;
|
|
149
|
}
|
|
150
|
if (x <= 130)
|
|
151
|
{
|
|
152
|
global.facing = 0;
|
|
153
|
stopcon = true;
|
|
154
|
}
|
|
155
|
}
|
|
156
|
if (stopcon)
|
|
157
|
kriscon = -1;
|
|
158
|
}
|
|
159
|
if (con >= 12 && i_ex(doge))
|
|
160
|
{
|
|
161
|
var runspeed = 8;
|
|
162
|
doge.image_speed = 0.5;
|
|
163
|
doge.depth = 0;
|
|
164
|
if (doge.y < 90)
|
|
165
|
{
|
|
166
|
doge.y += runspeed;
|
|
167
|
}
|
|
168
|
else if (doge.x > 215)
|
|
169
|
{
|
|
170
|
doge.x -= runspeed;
|
|
171
|
}
|
|
172
|
else if (doge.y < 135)
|
|
173
|
{
|
|
174
|
doge.y += runspeed;
|
|
175
|
}
|
|
176
|
else if (doge.x > 155)
|
|
177
|
{
|
|
178
|
doge.x -= runspeed;
|
|
179
|
kriscon = 1;
|
|
180
|
}
|
|
181
|
else if (doge.y < 250)
|
|
182
|
{
|
|
183
|
doge.y += runspeed;
|
|
184
|
}
|
|
185
|
else
|
|
186
|
{
|
|
187
|
instance_destroy(doge);
|
|
188
|
}
|
|
189
|
}
|
|
190
|
if (con >= 13 && i_ex(dogc))
|
|
191
|
{
|
|
192
|
var runspeed = 8;
|
|
193
|
dogc.image_speed = 0.5;
|
|
194
|
if (dogc.x < 220 && dogc.y < 65)
|
|
195
|
{
|
|
196
|
dogc.x += runspeed;
|
|
197
|
}
|
|
198
|
else
|
|
199
|
{
|
|
200
|
dogc.depth = 0;
|
|
201
|
if (dogc.y < 65)
|
|
202
|
dogc.y += runspeed;
|
|
203
|
else if (dogc.x > 195)
|
|
204
|
dogc.x -= runspeed;
|
|
205
|
else if (dogc.y < 120)
|
|
206
|
dogc.y += runspeed;
|
|
207
|
else if (dogc.x > 145)
|
|
208
|
dogc.x -= runspeed;
|
|
209
|
else if (dogc.y < 250)
|
|
210
|
dogc.y += runspeed;
|
|
211
|
else
|
|
212
|
instance_destroy(dogc);
|
|
213
|
}
|
|
214
|
}
|
|
215
|
if (con >= 14 && i_ex(dogd))
|
|
216
|
{
|
|
217
|
var runspeed = 8;
|
|
218
|
dogd.image_speed = 0.5;
|
|
219
|
if (dogd.x < 230 && dogd.y < 80)
|
|
220
|
{
|
|
221
|
dogd.x += runspeed;
|
|
222
|
}
|
|
223
|
else
|
|
224
|
{
|
|
225
|
dogd.depth = 0;
|
|
226
|
if (dogd.y < 80)
|
|
227
|
{
|
|
228
|
dogd.y += runspeed;
|
|
229
|
}
|
|
230
|
else
|
|
231
|
{
|
|
232
|
dogd.depth = 0;
|
|
233
|
if (dogd.x > 205)
|
|
234
|
dogd.x -= runspeed;
|
|
235
|
else if (dogd.y < 130)
|
|
236
|
dogd.y += runspeed;
|
|
237
|
else if (dogd.x > 160)
|
|
238
|
dogd.x -= runspeed;
|
|
239
|
else if (dogd.y < 250)
|
|
240
|
dogd.y += runspeed;
|
|
241
|
else
|
|
242
|
instance_destroy(dogd);
|
|
243
|
}
|
|
244
|
}
|
|
245
|
}
|
|
246
|
if (con >= 15 && i_ex(dogb))
|
|
247
|
{
|
|
248
|
var runspeed = 8;
|
|
249
|
dogb.image_speed = 0.5;
|
|
250
|
if (dogb.x < 230 && dogb.y < 80)
|
|
251
|
{
|
|
252
|
dogb.x += runspeed;
|
|
253
|
}
|
|
254
|
else
|
|
255
|
{
|
|
256
|
dogb.depth = 0;
|
|
257
|
if (dogb.y < 80)
|
|
258
|
{
|
|
259
|
dogb.y += runspeed;
|
|
260
|
}
|
|
261
|
else if (dogb.x > 205)
|
|
262
|
{
|
|
263
|
dogb.x -= runspeed;
|
|
264
|
}
|
|
265
|
else
|
|
266
|
{
|
|
267
|
dogb.depth = 0;
|
|
268
|
if (dogb.y < 130)
|
|
269
|
dogb.y += runspeed;
|
|
270
|
else if (dogb.x > 160)
|
|
271
|
dogb.x -= runspeed;
|
|
272
|
else if (dogb.y < 250)
|
|
273
|
dogb.y += runspeed;
|
|
274
|
else
|
|
275
|
instance_destroy(dogb);
|
|
276
|
}
|
|
277
|
}
|
|
278
|
}
|
|
279
|
if (con >= 16 && i_ex(doga))
|
|
280
|
{
|
|
281
|
var runspeed = 8;
|
|
282
|
doga.image_speed = 0.5;
|
|
283
|
if (doga.x < 230 && doga.y < 80)
|
|
284
|
{
|
|
285
|
doga.x += runspeed;
|
|
286
|
}
|
|
287
|
else
|
|
288
|
{
|
|
289
|
doga.depth = 0;
|
|
290
|
if (doga.y < 80)
|
|
291
|
{
|
|
292
|
doga.y += runspeed;
|
|
293
|
}
|
|
294
|
else if (doga.x > 205)
|
|
295
|
{
|
|
296
|
doga.x -= runspeed;
|
|
297
|
}
|
|
298
|
else
|
|
299
|
{
|
|
300
|
doga.depth = 0;
|
|
301
|
if (doga.y < 130)
|
|
302
|
doga.y += runspeed;
|
|
303
|
else if (doga.x > 160)
|
|
304
|
doga.x -= runspeed;
|
|
305
|
else if (doga.y < 250)
|
|
306
|
doga.y += runspeed;
|
|
307
|
else
|
|
308
|
instance_destroy(doga);
|
|
309
|
}
|
|
310
|
}
|
|
311
|
}
|
|
312
|
if (con == 17)
|
|
313
|
{
|
|
314
|
con = 18;
|
|
315
|
repeatalarm = false;
|
|
316
|
}
|
|
317
|
if (con == 19)
|
|
318
|
{
|
|
319
|
if (undyne == -1)
|
|
320
|
{
|
|
321
|
deskchairless.visible = 1;
|
|
322
|
deskchairless.depth = obj_mainchara.depth + 10;
|
|
323
|
undyne = scr_markerscr_marker
function scr_marker(arg0, arg1, arg2)
{
thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
sprite_index = arg2;
image_speed = 0;
}
return thismarker;
} (147, 91, spr_undyne_walk_down);
|
|
324
|
undyne.image_speed = 0;
|
|
325
|
undyne.depthcancel = 1;
|
|
326
|
undyne.depth = deskchairless.depth + 100;
|
|
327
|
undynedesk.sprite_index = spr_lw_police_table_broken;
|
|
328
|
undynedesk.depthcancel = 1;
|
|
329
|
undynedesk.depth = deskchairless.depth + 200;
|
|
330
|
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)
... ("undyne");
|
|
331
|
msgsetloc(0, Face 2* H-HEY,Delay 11 WAIT!!!!Wait for inputClose Message"\\E2* H-HEY^1, WAIT!!!!/%", "obj_npc_police_slash_Step_0_gml_430_0" );
|
|
332
|
d_make();
|
|
333
|
global.facing = 0;
|
|
334
|
}
|
|
335
|
con = 20;
|
|
336
|
alarm[0] = 10; gml_Object_obj_npc_police_Alarm_0.gml
con++;
if (repeatalarm)
alarm[0] = 10;
|
|
337
|
}
|
|
338
|
if (con == 21)
|
|
339
|
{
|
|
340
|
undyne.image_speed = 0.25;
|
|
341
|
if (undyne.x < 200 && undyne.y < 125)
|
|
342
|
{
|
|
343
|
undyne.sprite_index = spr_undyne_walk_right;
|
|
344
|
undyne.x += 7;
|
|
345
|
}
|
|
346
|
else if (undyne.y < 125)
|
|
347
|
{
|
|
348
|
undyne.depth = 0;
|
|
349
|
if (deskchairless.visible == 1)
|
|
350
|
deskchairless.visible = 0;
|
|
351
|
undyne.sprite_index = spr_undyne_walk_down;
|
|
352
|
undyne.y += 7;
|
|
353
|
}
|
|
354
|
else if (undyne.x > 150)
|
|
355
|
{
|
|
356
|
undyne.sprite_index = spr_undyne_walk_left;
|
|
357
|
undyne.x -= 7;
|
|
358
|
}
|
|
359
|
else if (undyne.y < 180)
|
|
360
|
{
|
|
361
|
undyne.sprite_index = spr_undyne_walk_down;
|
|
362
|
undyne.y += 7;
|
|
363
|
}
|
|
364
|
else
|
|
365
|
{
|
|
366
|
con = 22;
|
|
367
|
undyne.image_speed = 0;
|
|
368
|
undyne.image_index = 0;
|
|
369
|
}
|
|
370
|
}
|
|
371
|
if (con == 22 && !d_ex())
|
|
372
|
{
|
|
373
|
con = 50;
|
|
374
|
undyne.visible = 0;
|
|
375
|
scr_litemgetscr_litemget
function scr_litemget(arg0)
{
i = 0;
loop = 1;
noroom = 0;
global.litem[8] = 999;
while (loop == 1)
{
if (global.litem[i] == 0)
{
global.litem[i] = arg0;
break;
}
if (i == 8)
{
noroom = 1;
break;
}
i += 1;
}
scr_litemname();
} (10);
|
|
376
|
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;
} ();
|
|
377
|
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;
}
}
}
} ();
|
|
378
|
un = 2;
|
|
379
|
un_actor = instance_create(undyne.x, undyne.y, obj_actor);
|
|
380
|
scr_actor_setupscr_actor_setup
function scr_actor_setup(arg0, arg1, arg2)
{
_actorid = arg0;
_actorinstance = arg1;
_actorname = arg2;
obj_cutscene_master.actor_id[_actorid] = _actorinstance;
obj_cutscene_master.actor_name[_actorid] = _actorname;
with (_actorinstance)
{
number = arg0;
scr_set_facing_sprites(arg2);
}
} (un, un_actor, "undyne");
|
|
381
|
un_actor.sprite_index = spr_undyne_exasperated;
|
|
382
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (un);
|
|
383
|
c_autowalkc_autowalk
function c_autowalk(arg0)
{
c_cmd("autowalk", arg0, 0, 0, 0);
} (0);
|
|
384
|
c_imagespeedc_imagespeed
function c_imagespeed(arg0)
{
c_cmd("imagespeed", arg0, 0, 0, 0);
} (0);
|
|
385
|
c_speakerc_speaker
function c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
} ("undyne");
|
|
386
|
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 2* NGAAHHHH!!!Delay 11 NOT AGAIN!!!Wait for inputClose Message"\\E2* NGAAHHHH!!^1! NOT AGAIN!!!/%", "obj_npc_police_slash_Step_0_gml_501_0" );
|
|
387
|
c_talk_waitc_talk_wait
function c_talk_wait()
{
c_talk();
c_waittalk();
} ();
|
|
388
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_undyne_walk_up);
|
|
389
|
c_haltc_halt
function c_halt()
{
c_cmd("halt", 0, 0, 0, 0);
} ();
|
|
390
|
c_speakerc_speaker
function c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
} ("undyne");
|
|
391
|
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* Looks like I gotta go recapture those criminals...Wait for inputClose Message"\\E4* Looks like I gotta go recapture those criminals.../%", "obj_npc_police_slash_Step_0_gml_508_0" );
|
|
392
|
c_talk_waitc_talk_wait
function c_talk_wait()
{
c_talk();
c_waittalk();
} ();
|
|
393
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_undyne_walk_up);
|
|
394
|
c_imageindexc_imageindex
function c_imageindex(arg0)
{
c_cmd("imageindex", arg0, 0, 0, 0);
} (0);
|
|
395
|
c_imagespeedc_imagespeed
function c_imagespeed(arg0)
{
c_cmd("imagespeed", arg0, 0, 0, 0);
} (0.25);
|
|
396
|
c_walk_waitc_walk_wait
function c_walk_wait(arg0, arg1, arg2)
{
c_walk(arg0, arg1, arg2);
c_wait(arg2);
} ("u", 3, 20);
|
|
397
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_undyne_walk_left);
|
|
398
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (kr);
|
|
399
|
c_facingc_facing
function c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
} ("r");
|
|
400
|
c_speakerc_speaker
function c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
} ("undyne");
|
|
401
|
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 0* Hey,Delay 11 by the way,Delay 11 that yellow glasses lady.Wait for input"\\E0* Hey^1, by the way^1, that yellow glasses lady./", "obj_npc_police_slash_Step_0_gml_522_0" );
|
|
402
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (Face 2* Is she your teacher?Wait for input"\\E2* Is she your teacher?/", "obj_npc_police_slash_Step_0_gml_523_0" );
|
|
403
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (Face 7* She kinda had an accident earlier with her,Delay 11 uh,Delay 11 bike.Wait for input"\\E7* She kinda had an accident earlier with her^1, uh^1, bike./", "obj_npc_police_slash_Step_0_gml_524_0" );
|
|
404
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (Face 7* Just wanted to make sure she was feeling better.Wait for input"\\E7* Just wanted to make sure she was feeling better./", "obj_npc_police_slash_Step_0_gml_525_0" );
|
|
405
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (Face 1* So,Delay 11 uh...Delay 11 give her this!Wait for input"\\E1* So^1, uh..^1. give her this!/", "obj_npc_police_slash_Step_0_gml_526_0" );
|
|
406
|
c_facenextc_facenext
function c_facenext(arg0, arg1)
{
c_cmd("msgfacenext", arg0, arg1, 0, 0);
} ("none", 0);
|
|
407
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (* (You got a heart-shaped box of candies that says "Get Well Soon".)Wait for input"* (You got a heart-shaped box of candies that says \"Get Well Soon\".)/", "obj_npc_police_slash_Step_0_gml_528_0" );
|
|
408
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (* (It has "to your bike" hastily scrawled underneath the Get Well Soon.)Wait for input"* (It has \"to your bike\" hastily scrawled underneath the Get Well Soon.)/", "obj_npc_police_slash_Step_0_gml_529_0" );
|
|
409
|
c_facenextc_facenext
function c_facenext(arg0, arg1)
{
c_cmd("msgfacenext", arg0, arg1, 0, 0);
} ("undyne", "1");
|
|
410
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (Face 1* LOOK,Delay 11 "GET WELL SOON"S ALL THE STORE HAD!!Wait for input"\\E1* LOOK^1, \"GET WELL SOON\"S ALL THE STORE HAD!!/", "obj_npc_police_slash_Step_0_gml_531_0" );
|
|
411
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (Face 2* OPEN IT AND I'LL ARREST YOU!!Delay 11 LOOK!!Wait for input"\\E2* OPEN IT AND I'LL ARREST YOU!^1! LOOK!!/", "obj_npc_police_slash_Step_0_gml_532_0" );
|
|
412
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (Face 1* I'LL EVEN PUT A NOTE ON IT!!!Wait for input"\\E1* I'LL EVEN PUT A NOTE ON IT!!!/", "obj_npc_police_slash_Step_0_gml_533_0" );
|
|
413
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (Face 2* NOW STOP INTERRUPTING ME!!Delay 11 I GOTTA GO!!Wait for input"\\E2* NOW STOP INTERRUPTING ME!^1! I GOTTA GO!!/", "obj_npc_police_slash_Step_0_gml_534_0" );
|
|
414
|
c_facenextc_facenext
function c_facenext(arg0, arg1)
{
c_cmd("msgfacenext", arg0, arg1, 0, 0);
} ("none", 0);
|
|
415
|
c_msgnextlocc_msgnextloc
function c_msgnextloc(arg0, arg1)
{
var str = arg0;
var localized_string_id = arg1;
if (!is_english())
str = scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
} (* (You got the previously described box of candy with a note on it.)Wait for inputClose Message"* (You got the previously described box of candy with a note on it.)/%", "obj_npc_police_slash_Step_0_gml_536_0" );
|
|
416
|
c_talk_waitc_talk_wait
function c_talk_wait()
{
c_talk();
c_waittalk();
} ();
|
|
417
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (un);
|
|
418
|
c_autowalkc_autowalk
function c_autowalk(arg0)
{
c_cmd("autowalk", arg0, 0, 0, 0);
} (0);
|
|
419
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_undyne_walk_down);
|
|
420
|
c_imageindexc_imageindex
function c_imageindex(arg0)
{
c_cmd("imageindex", arg0, 0, 0, 0);
} (0);
|
|
421
|
c_imagespeedc_imagespeed
function c_imagespeed(arg0)
{
c_cmd("imagespeed", arg0, 0, 0, 0);
} (0.25);
|
|
422
|
c_walk_waitc_walk_wait
function c_walk_wait(arg0, arg1, arg2)
{
c_walk(arg0, arg1, arg2);
c_wait(arg2);
} ("d", 8, 30);
|
|
423
|
c_actortokrisc_actortokris
function c_actortokris()
{
c_cmd("actortokris", 0, 0, 0, 0);
} ();
|
|
424
|
c_terminatekillactorsc_terminatekillactors
function c_terminatekillactors()
{
c_cmd("terminatekillactors", 0, 0, 0, 0);
} ();
|
|
425
|
}
|
|
426
|
if (con == 50 && !i_ex(obj_cutscene_master))
|
|
427
|
{
|
|
428
|
con = -1;
|
|
429
|
global.interact = 0;
|
|
430
|
global.facing = 0;
|
|
431
|
global.flag[317 seen_police_scene] = 1;
|
|
432
|
with (jail_collider)
|
|
433
|
instance_destroy();
|
|
434
|
jail_collider_bottom = instance_create(180, 98, obj_solidblock);
|
|
435
|
jail_collider_bottom.image_xscale = 2;
|
|
436
|
jail_collider_bottom.image_yscale = 0.35;
|
|
437
|
jail_collider_side = instance_create(255, 98, obj_solidblock);
|
|
438
|
jail_collider_side.image_xscale = 1;
|
|
439
|
jail_collider_side.image_yscale = 0.35;
|
|
440
|
}
|
|
441
|
if (napstacon == 10 && global.flag[317 seen_police_scene] == 1)
|
|
442
|
{
|
|
443
|
global.interact = 1;
|
|
444
|
global.flag[317 seen_police_scene] = 2;
|
|
445
|
napstacon = 20;
|
|
446
|
alarm_sounded = 1;
|
|
447
|
with (obj_doorAny)
|
|
448
|
doorFadeMusic = 1;
|
|
449
|
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;
} ();
|
|
450
|
c_var_instancec_var_instance
function c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
} (napstablook, "visible", 0);
|
|
451
|
na = 1;
|
|
452
|
na_actor = instance_create(92, 84, obj_actor);
|
|
453
|
scr_actor_setupscr_actor_setup
function scr_actor_setup(arg0, arg1, arg2)
{
_actorid = arg0;
_actorinstance = arg1;
_actorname = arg2;
obj_cutscene_master.actor_id[_actorid] = _actorinstance;
obj_cutscene_master.actor_name[_actorid] = _actorname;
with (_actorinstance)
{
number = arg0;
scr_set_facing_sprites(arg2);
}
} (na, na_actor, "napstablook");
|
|
454
|
na_actor.sprite_index = spr_npc_napstablook_police_up;
|
|
455
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (na);
|
|
456
|
c_autowalkc_autowalk
function c_autowalk(arg0)
{
c_cmd("autowalk", arg0, 0, 0, 0);
} (0);
|
|
457
|
c_var_lerpc_var_lerp
function c_var_lerp()
{
if (argument_count < 5)
c_cmd_x("var", 0, argument[0], argument[1], argument[2], argument[3], 0);
else
c_cmd_x("var", 0, argument[0], argument[1], argument[2], argument[3], argument[4]);
} ("y", 84, 64, 15);
|
|
458
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (15);
|
|
459
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (5);
|
|
460
|
c_musc_mus
function c_mus(arg0)
{
c_cmd("mus", arg0, 0, 0, 0);
} ("free_all");
|
|
461
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (5);
|
|
462
|
c_mus2c_mus2
function c_mus2(arg0, arg1, arg2)
{
c_cmd("mus", arg0, arg1, arg2, 0);
} ("initloop", "napsta_alarm.ogg", 0);
|
|
463
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (5);
|
|
464
|
c_var_lerpc_var_lerp
function c_var_lerp()
{
if (argument_count < 5)
c_cmd_x("var", 0, argument[0], argument[1], argument[2], argument[3], 0);
else
c_cmd_x("var", 0, argument[0], argument[1], argument[2], argument[3], argument[4]);
} ("y", 64, 84, 15);
|
|
465
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (15);
|
|
466
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_npc_napstablook_police_down);
|
|
467
|
c_var_instancec_var_instance
function c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
} (napstablook, "visible", 1);
|
|
468
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (15);
|
|
469
|
c_terminatekillactorsc_terminatekillactors
function c_terminatekillactors()
{
c_cmd("terminatekillactors", 0, 0, 0, 0);
} ();
|
|
470
|
}
|
|
471
|
if (napstacon == 20 && !i_ex(obj_cutscene_master))
|
|
472
|
{
|
|
473
|
with (napstablook)
|
|
474
|
con = -1;
|
|
475
|
napstacon = -1;
|
|
476
|
global.interact = 0;
|
|
477
|
}
|