forked from fachinformatiker/undertale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobj_multitileevent.object.gmx
538 lines (538 loc) · 16.9 KB
/
obj_multitileevent.object.gmx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName><undefined></spriteName>
<solid>0</solid>
<visible>-1</visible>
<depth>0</depth>
<persistent>0</persistent>
<parentName><undefined></parentName>
<maskName><undefined></maskName>
<events>
<event eventtype="0" enumb="0">
<action>
<libid>1</libid>
<id>603</id>
<kind>7</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>con= 0;
if(global.plot > 167) instance_destroy();
else con= 1;
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="2" enumb="4">
<action>
<libid>1</libid>
<id>603</id>
<kind>7</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>con++;
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="3" enumb="0">
<action>
<libid>1</libid>
<id>603</id>
<kind>7</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>if(con == 1) {
global.phasing= 1;
global.flag[17]= 1;
global.interact= 1;
obj_mainchara.x= 140;
obj_mainchara.y= -20;
obj_mainchara.vspeed= 3;
con= 2;
turntimer= 0;
}
if(con == 2) {
turntimer++;
if(turntimer > 15) {
turntimer= 0;
global.facing++;
if(global.facing > 3) global.facing= 0;
}
if(obj_mainchara.y > 100) {
con= 3;
obj_mainchara.vspeed= 0;
alarm[4]= 23;
mett= instance_create(140, -20, 1206/* obj_mettaton_flightdress */);
mett.vspeed= 3;
}
}
if(con == 4) {
mett.vspeed= 0;
con= 5;
alarm[4]= 20;
}
if(con == 6) {
global.msc= 0;
global.typer= 27;
global.facechoice= 0;
global.msg[0]= "* OH NO!&* WHATEVER SHALL I DO?/";
global.msg[1]= "* MY LOVE HAS BEEN CAST AWAY& INTO THE DUNGEON./";
global.msg[2]= "* A DUNGEON WITH A PUZZLE SO& DASTARDLY^1, MY PARAMOUR WILL& SURELY PERISH!/%%";
dia= instance_create(0, 0, 779/* obj_dialoguer */);
dia.side= 1;
con= 7;
}
if(con == 7 && !instance_exists(782/* OBJ_WRITER */)) {
view_object[0]= -4;
obj_mainchara.cutscene= 1;
view_xview[0]+= 5;
if(view_xview[0] >= 96) {
view_xview[0]= 100;
con= 8;
alarm[4]= 15;
}
}
if(con == 9) {
global.msg[0]= "* O, HEAVENS HAVE MERCY!&* THE HORRIBLE COLORED TILE& MAZE!/";
global.msg[1]= "* EACH COLORED TILE HAS ITS& OWN SADISTIC FUNCTION./";
global.msg[2]= "* FOR EXAMPLE, A GREEN TILE& SOUNDS A NOISE, AND THEN& YOU MUST FIGHT A MONSTER./";
global.msg[3]= "* RED TILES WILL...&* ACTUALLY, WAIT A SECOND./";
global.msg[4]= "* DIDN\'T WE SEE THIS PUZZLE& ABOUT A HUNDRED ROOMS& AGO?/";
global.msg[5]= "* THAT\'S RIGHT.&* YOU REMEMBER ALL THE& RULES, DON\'T YOU?/";
global.msg[6]= "* GREAT...&* THEN I WON\'T WASTE YOUR& TIME REPEATING THEM!!/%%";
instance_create(0, 0, 779/* obj_dialoguer */);
con= 10;
}
if(con == 10 && !instance_exists(782/* OBJ_WRITER */)) {
con= 11;
alarm[4]= 40;
}
if(con == 12) {
global.msg[0]= "* OH, AND YOU\'D BETTER HURRY./";
global.msg[1]= "\\W* BECAUSE IF YOU DON\'T GET& THROUGH IN \\Y30 SECONDS\\W.../%%";
instance_create(0, 0, 779/* obj_dialoguer */);
con= 13;
}
if(con == 13 && !instance_exists(782/* OBJ_WRITER */)) {
view_xview[0]-= 5;
if(view_xview[0] <= 4) {
view_xview[0]= 0;
con= 14;
alarm[4]= 20;
}
}
if(con == 15) {
snd_play(106/* snd_noise */);
flame1= instance_create(40, 20, 1200/* obj_flamedrawer */);
flame2= instance_create(1160, 20, 1200/* obj_flamedrawer */);
con= 16;
alarm[4]= 30;
}
if(con == 17) {
global.msg[0]= "* YOU\'LL BE INCINERATED BY& THESE JETS OF FIRE!!/";
global.msg[1]= "* AHAHAHAHAHAHA!&* AHAHA... HA... HA!/";
global.msg[2]= "* MY POOR LOVE!&* I\'M SO FILLED WITH GRIEF,& I CAN\'T STOP LAUGHING!/";
global.msg[3]= "* GOOD LUCK, DARLING!/%%";
instance_create(0, 0, 779/* obj_dialoguer */);
con= 18;
}
if(con == 18 && !instance_exists(782/* OBJ_WRITER */)) {
racesong= caster_load("music/operatile.ogg");
// obj_mettaton_flightdress
with(1206) {
middle= 1;
event_user(1);
}
caster_play(racesong, 1, 1);
cooltimer= 900;
instance_create(0, 0, 1209/* obj_tilehud */);
flavor= 0;
global.phasing= 0;
obj_mainchara.cutscene= 0;
view_object[0]= 1570;
global.interact= 0;
con= 20;
}
if(con == 20) {
if(!instance_exists(1212/* obj_tileguy */) && obj_mainchara.x > room_width / 2) {
global.interact= 1;
con= 75;
}
cooltimer--;
if(cooltimer == 0) con= 30;
}
if(con == 30) {
// obj_insidiousconveyor
with(1211) {
collide= 0;
active= -1;
}
obj_tileguytileparent.grey= 1;
// obj_mettaton_flightdress
with(1206) middle= 2;
global.facing= 2;
obj_mainchara.visible= 1;
global.interact= 1;
if(instance_exists(1212/* obj_tileguy */)) {
// obj_tileguy
with(1212) instance_destroy();
}
if(flame1.x < view_xview[0] - 20)
flame1.x= view_xview[0] - 20;
if(flame2.x > view_xview[0] + view_wview[0])
flame2.x= view_xview[0] + view_wview[0];
con= 31;
alarm[4]= 60;
}
if(con == 31) {
global.interact= 1;
global.facing= 2;
}
if(con == 32) {
// obj_tilehud
with(1209) finished= 1;
global.typer= 27;
global.facechoice= 0;
global.msc= 0;
global.msg[0]= "* OOOOH, I\'M SO SORRY!&* LOOKS LIKE YOU\'RE OUT OF& TIME!!!/%%";
instance_create(0, 0, 779/* obj_dialoguer */);
con= 33;
}
if(con == 33 && !instance_exists(782/* OBJ_WRITER */)) {
con= 34;
alarm[4]= 40;
}
if(con == 34) {
if(flame1.x < obj_mainchara.x - 20) flame1.x+= 2;
if(flame2.x > obj_mainchara.x + 20) flame2.x-= 2;
}
if(con == 35) {
global.msg[0]= "* HERE COME THE FLAMES, DARLING!/%%";
instance_create(0, 0, 779/* obj_dialoguer */);
con= 36;
}
if(con == 36 && !instance_exists(782/* OBJ_WRITER */)) {
con= 37;
alarm[4]= 40;
}
if(con == 37 && !instance_exists(782/* OBJ_WRITER */)) {
if(flame1.x < obj_mainchara.x - 20) flame1.x++;
if(flame2.x > obj_mainchara.x + 20) flame2.x--;
}
if(con == 38) {
global.msg[0]= "* THEY\'RE CLOSING IN!/%%";
instance_create(0, 0, 779/* obj_dialoguer */);
con= 39;
}
if(con == 39 && !instance_exists(782/* OBJ_WRITER */)) {
con= 40;
alarm[4]= 40;
}
if(con == 40 && !instance_exists(782/* OBJ_WRITER */)) {
if(flame1.x < obj_mainchara.x - 20)
flame1.x+= 0.5;
if(flame2.x > obj_mainchara.x + 20)
flame2.x-= 0.5;
}
if(con == 41) {
global.msg[0]= "* GETTING!&* CLOSER!&* OH MY!/%%";
instance_create(0, 0, 779/* obj_dialoguer */);
con= 42;
}
if(con == 42 && !instance_exists(782/* OBJ_WRITER */)) {
con= 43;
alarm[4]= 40;
}
if(con == 43 && !instance_exists(782/* OBJ_WRITER */)) {
if(flame1.x < obj_mainchara.x - 20)
flame1.x+= 0.5;
if(flame2.x > obj_mainchara.x + 20)
flame2.x-= 0.5;
}
if(con == 44) {
global.msg[0]= "* ANY MINUTE NOW!!!/%%";
instance_create(0, 0, 779/* obj_dialoguer */);
con= 45;
}
if(con == 45 && !instance_exists(782/* OBJ_WRITER */)) {
con= 46;
alarm[4]= 90;
}
if(con == 46 && !instance_exists(782/* OBJ_WRITER */)) {
if(flame1.x < obj_mainchara.x - 20)
flame1.x+= 0.5;
if(flame2.x > obj_mainchara.x + 20)
flame2.x-= 0.5;
}
if(con == 47) {
global.msg[0]= "* ...&* ...&* (ROBOTIC COUGH)/%%";
instance_create(0, 0, 779/* obj_dialoguer */);
con= 48;
}
if(con == 48 && !instance_exists(782/* OBJ_WRITER */)) {
con= 49;
alarm[4]= 20;
}
if(con == 50) {
global.typer= 5;
global.facechoice= 0;
global.faceemotion= 6;
snd_play(104/* snd_phone */);
global.msg[0]= "* Ring.../";
global.msg[1]= "* \\TS \\F6 \\TA %";
global.msg[2]= "* Watch out!^1!&* I\'ll save you!!/";
global.msg[3]= "* I\'m hacking into the& firewall right now!/%%";
instance_create(0, 0, 779/* obj_dialoguer */);
con= 51;
}
if(con == 51 && !instance_exists(782/* OBJ_WRITER */)) {
snd_play(106/* snd_noise */);
with(flame1) instance_destroy();
with(flame2) instance_destroy();
con= 52;
alarm[4]= 30;
}
if(con == 53) {
global.facechoice= 0;
global.typer= 27;
global.msg[0]= "* OH NO!!!&* HOW COULD THIS HAPPEN???/";
global.msg[1]= "* FOILED AGAIN BY THE BRILLIANT& DOCTOR ALPHYS!!/%%";
instance_create(0, 0, 779/* obj_dialoguer */);
con= 54;
}
if(con == 54 && !instance_exists(782/* OBJ_WRITER */)) {
con= 55;
alarm[4]= 90;
}
if(con == 56) {
global.faceemotion= 5;
global.facechoice= 0;
global.typer= 27;
global.msg[0]= "* THA-%";
global.msg[1]= "\\TS \\F6 \\TA %";
global.msg[2]= "\\E6* That\'s right!/";
global.msg[3]= "\\E6* Come on^1, Mettaton^1,& give up already!/";
global.msg[4]= "* You\'ll never be& able to defeat& us.../";
global.msg[5]= "\\E0* Not as long as& we work together!/";
global.msg[6]= "\\E6* Your puzzle\'s over..&* Now go home and& leave us alone!/";
global.msg[7]= "\\TS \\F0 \\TM %";
global.msg[8]= "* PUZZLE^1?&* OVER?/";
global.msg[9]= "* ALPHYS^1, DARLING^1, WHAT ARE YOU& TALKING ABOUT...?/";
global.msg[10]= "* DID YOU FORGET WHAT THE& GREEN TILES DO?/";
global.msg[11]= "* THEY MAKE A SOUND, THEN& YOU HAVE TO FIGHT A MONSTER./";
global.msg[12]= "* WELL, DARLING...&* THAT MONSTER.../";
global.msg[13]= "* IS ME!!/%%";
if(global.flag[289] == 0) {
global.msg[12]= "* WELL, DARLING...!/";
global.msg[13]= "* WELL, WELL, WELL./";
global.msg[14]= "* WELLY WELL WELL./";
global.msg[15]= "* WELL WELLY WELL WELL,& WELL WELL WELLY./";
global.msg[16]= "* YOU NEVER STEPPED ON A& GREEN TILE./";
global.msg[17]= "* .../";
global.msg[18]= "* AND NOW YOU\'RE GOING TO DIE./%%";
}
instance_create(0, 0, 779/* obj_dialoguer */);
con= 55.1;
}
if(con == 55.1 && !instance_exists(782/* OBJ_WRITER */)) {
caster_free(racesong);
con= 56.1;
alarm[4]= 20;
mett.vspeed= 3;
snd_play(30/* snd_break2 */);
}
if(con == 57.1 && !instance_exists(782/* OBJ_WRITER */)) {
con= 58;
global.battlegroup= 57;
global.mercy= 1;
instance_create(0, 0, 142/* obj_battler */);
talkedto= 0;
alarm[4]= 32;
}
if(con == 58 && global.interact == 0) global.interact= 1;
if(con == 59) {
if(instance_exists(1206/* obj_mettaton_flightdress */)) {
// obj_mettaton_flightdress
with(1206) instance_destroy();
}
obj_mainchara.cutscene= 0;
view_object[0]= 1570;
global.interact= 1;
if(global.interact == 0) global.interact= 1;
con= 60;
alarm[4]= 15;
}
if(con == 60) global.interact= 1;
if(con == 61) {
global.mercy= 0;
if(global.interact == 0) global.interact= 1;
global.typer= 5;
global.facechoice= 0;
global.faceemotion= 0;
global.msc= 690;
global.facing= 0;
snd_play(104/* snd_phone */);
instance_create(0, 0, 779/* obj_dialoguer */);
con= 62;
}
if(con == 62 && !instance_exists(782/* OBJ_WRITER */)) {
if(instance_exists(1570/* obj_mainchara */) && obj_mainchara.x >= 340)
flowey= instance_create(100, 120, 1339/* obj_stalkerflowey */);
global.mercy= 0;
global.border= 0;
global.currentsong= caster_load("music/anothermedium.ogg");
caster_loop(global.currentsong, 1, 1);
global.interact= 0;
global.flag[17]= 0;
global.plot= 168;
instance_destroy();
}
if(con == 75) {
// obj_mettaton_flightdress
with(1206) middle= 2;
obj_mettaton_flightdress.sing= -1;
caster_free(-3);
obj_tileguytileparent.grey= 1;
snd_play(26/* snd_dumbvictory */);
global.interact= 1;
con= 76;
alarm[4]= 30;
}
if(con == 76) global.interact= 1;
if(con == 77) {
// obj_tilehud
with(1209) finished= 1;
global.typer= 27;
global.facechoice= 0;
global.msc= 0;
global.flag[278]= 1;
global.msg[0]= "* CONGRATULATIONS!/";
global.msg[1]= "* YOU MADE IT THROUGH THE& PUZZLE!!!/";
global.msg[2]= "* AND NOW, WITHOUT FURTHER ADO,& THE FLAMES WILL BE DEACTIVATED!/%%";
instance_create(0, 0, 779/* obj_dialoguer */);
con= 78;
}
if(con == 78 && !instance_exists(782/* OBJ_WRITER */)) {
snd_play(106/* snd_noise */);
with(flame1) instance_destroy();
with(flame2) instance_destroy();
con= 79;
alarm[4]= 30;
}
if(con == 80) {
global.facechoice= 0;
global.typer= 27;
global.msc= 0;
global.msg[0]= "* NO!&* MORE!&* FIRE!/";
global.msg[1]= "* ... BUT IT\'S AS THE PHRASE& GOES./";
global.msg[2]= "* " + chr(ord('"')) + "OUT OF THE FIRE, AND INTO& THE FRYING PAN." + chr(ord('"')) + "/";
global.msg[3]= "* THAT\'S RIGHT, DARLING!/";
global.msg[4]= "* EVEN IF YOU MANAGE TO BEAT& THE HEAT.../";
global.msg[5]= "* YOU\'LL NEVER BE ABLE TO& WITHSTAND MY HOT METAL& BODY!/";
global.msg[6]= "* PREPARE YOURSELF FOR MY %%";
instance_create(0, 0, 779/* obj_dialoguer */);
con= 81;
}
if(con == 81 && !instance_exists(782/* OBJ_WRITER */)) {
global.typer= 5;
global.facechoice= 0;
global.faceemotion= 6;
snd_play(104/* snd_phone */);
global.msg[0]= "* Ring.../";
global.msg[1]= "* \\TS \\F6 \\TA %";
global.msg[2]= "* Watch out!^1!&* I\'ll save you!!/";
global.msg[3]= "* Flames^1, deactivate!!/";
global.msg[4]= "* .../";
global.msg[5]= "\\E3* ... huh?/";
global.msg[6]= "\\TS \\F0 \\TM %";
global.msg[7]= "* THE HUMAN FINISHED THE PUZZLE./";
global.msg[8]= "* I ALREADY TURNED OFF THE& FLAMES./";
global.msg[9]= "* IN FACT, I WAS ABOUT TO& FIGHT THE HUMAN./";
global.msg[10]= "\\TS \\F6 \\TA %";
global.msg[11]= "* Wh-wh-what?&* TH-THAT puzzle?/";
global.msg[12]= "\\E5* I mean, uhh.../";
global.msg[13]= "\\E6* Great job!&* We\'ve got him on& the ropes^1, now!/";
global.msg[14]= "\\TS \\F0 \\TM %";
global.msg[15]= "* ON THE ROPES^1?&* HA!/";
global.msg[16]= "* I ONLY DEACTIVATED THE& FLAMES KNOWING THAT ALPHYS& WOULD HAVE ANYWAY./";
global.msg[17]= "* ... NOW, WHERE WERE WE?/";
global.msg[18]= "* OH YES./";
global.msg[19]= "* I WAS GOING TO ERADICATE& YOU!/%%";
instance_create(0, 0, 779/* obj_dialoguer */);
con= 55.1;
}
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="7" enumb="0">
<action>
<libid>1</libid>
<id>603</id>
<kind>7</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>if(con >= 20) {
}
</string>
</argument>
</arguments>
</action>
</event>
</events>
<PhysicsObject>0</PhysicsObject>
<PhysicsObjectSensor>0</PhysicsObjectSensor>
<PhysicsObjectShape>0</PhysicsObjectShape>
<PhysicsObjectDensity>0.5</PhysicsObjectDensity>
<PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution>
<PhysicsObjectGroup>0</PhysicsObjectGroup>
<PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping>
<PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping>
<PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction>
<PhysicsObjectAwake>-1</PhysicsObjectAwake>
<PhysicsObjectKinematic>0</PhysicsObjectKinematic>
<PhysicsShapePoints/>
</object>