|
1
|
if (global.chapter == 1)
|
|
2
|
{
|
|
3
|
if (con > 0 && con < 50)
|
|
4
|
{
|
|
5
|
if (con == 1 && instance_exists(obj_dialoguer) == false)
|
|
6
|
{
|
|
7
|
with (t)
|
|
8
|
{
|
|
9
|
image_index = 0;
|
|
10
|
image_speed = 0.25;
|
|
11
|
vspeed = -2;
|
|
12
|
sprite_index = spr_toriel_u;
|
|
13
|
}
|
|
14
|
alarm[4] = 20; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
15
|
con = 2;
|
|
16
|
}
|
|
17
|
if (con == 3)
|
|
18
|
{
|
|
19
|
with (t)
|
|
20
|
{
|
|
21
|
image_index = 0;
|
|
22
|
image_speed = 0;
|
|
23
|
vspeed = 0;
|
|
24
|
}
|
|
25
|
alarm[4] = 10; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
26
|
con = 4;
|
|
27
|
}
|
|
28
|
if (con == 5)
|
|
29
|
{
|
|
30
|
with (t)
|
|
31
|
{
|
|
32
|
image_speed = 0.25;
|
|
33
|
sprite_index = spr_toriel_windowopen;
|
|
34
|
}
|
|
35
|
alarm[4] = 10; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
36
|
con = 6;
|
|
37
|
with (wallwindow)
|
|
38
|
image_index = 1;
|
|
39
|
snd_play(snd_wing);
|
|
40
|
}
|
|
41
|
if (con == 7)
|
|
42
|
{
|
|
43
|
with (t)
|
|
44
|
image_speed = 0;
|
|
45
|
con = 8;
|
|
46
|
alarm[4] = 20; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
47
|
}
|
|
48
|
if (con == 9)
|
|
49
|
{
|
|
50
|
with (t)
|
|
51
|
{
|
|
52
|
sprite_index = spr_toriel_d;
|
|
53
|
image_index = 0;
|
|
54
|
image_speed = 0.25;
|
|
55
|
vspeed = 2;
|
|
56
|
}
|
|
57
|
alarm[4] = 20; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
58
|
con = 10;
|
|
59
|
}
|
|
60
|
if (con == 11)
|
|
61
|
{
|
|
62
|
with (t)
|
|
63
|
{
|
|
64
|
image_index = 0;
|
|
65
|
image_speed = 0;
|
|
66
|
vspeed = 0;
|
|
67
|
}
|
|
68
|
alarm[4] = 20; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
69
|
con = 12;
|
|
70
|
}
|
|
71
|
if (con == 13)
|
|
72
|
{
|
|
73
|
with (t)
|
|
74
|
sprite_index = spr_toriel_rt;
|
|
75
|
alarm[4] = 20; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
76
|
con = 14;
|
|
77
|
}
|
|
78
|
if (con == 15)
|
|
79
|
{
|
|
80
|
global.fe = 0;
|
|
81
|
with (t)
|
|
82
|
image_speed = 0.25;
|
|
83
|
global.msg[0] = stringsetloc(* I will wait outside for you,Delay 11 alright?Wait for inputClose Message"* I will wait outside for you^1, alright?/%", "obj_krisroom_slash_Step_0_gml_94_0" );
|
|
84
|
d = instance_create(0, 0, obj_dialoguer);
|
|
85
|
con = 20;
|
|
86
|
}
|
|
87
|
if (con == 20 && instance_exists(obj_dialoguer) == false)
|
|
88
|
{
|
|
89
|
with (t)
|
|
90
|
{
|
|
91
|
image_index = 0;
|
|
92
|
sprite_index = spr_toriel_d;
|
|
93
|
image_speed = 0.25;
|
|
94
|
vspeed = 3;
|
|
95
|
}
|
|
96
|
alarm[4] = 90; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
97
|
con = 21;
|
|
98
|
}
|
|
99
|
if (con == 22)
|
|
100
|
{
|
|
101
|
snd_play(snd_wing);
|
|
102
|
image_index = 1;
|
|
103
|
alarm[4] = 40; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
104
|
con = 23;
|
|
105
|
}
|
|
106
|
if (con == 24)
|
|
107
|
{
|
|
108
|
with (obj_mainchara)
|
|
109
|
{
|
|
110
|
fun = 1;
|
|
111
|
image_speed = 0.25;
|
|
112
|
sprite_index = spr_krisl;
|
|
113
|
hspeed = -1;
|
|
114
|
}
|
|
115
|
alarm[4] = 40; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
116
|
if (button2_h())
|
|
117
|
{
|
|
118
|
with (obj_mainchara)
|
|
119
|
{
|
|
120
|
fun = 1;
|
|
121
|
image_speed = 0.25;
|
|
122
|
sprite_index = spr_krisl;
|
|
123
|
hspeed = -4;
|
|
124
|
}
|
|
125
|
alarm[4] = 10; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
126
|
}
|
|
127
|
con = 25;
|
|
128
|
}
|
|
129
|
if (con == 26)
|
|
130
|
{
|
|
131
|
global.facing = 3;
|
|
132
|
with (obj_mainchara)
|
|
133
|
{
|
|
134
|
image_index = 0;
|
|
135
|
hspeed = 0;
|
|
136
|
image_speed = 0;
|
|
137
|
fun = 0;
|
|
138
|
}
|
|
139
|
con = 27;
|
|
140
|
alarm[4] = 20; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
141
|
if (button2_h())
|
|
142
|
alarm[4] = 5; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
143
|
}
|
|
144
|
if (con == 28)
|
|
145
|
{
|
|
146
|
global.facing = 0;
|
|
147
|
with (obj_mainchara)
|
|
148
|
{
|
|
149
|
image_index = 0;
|
|
150
|
hspeed = 0;
|
|
151
|
sprite_index = spr_krisd;
|
|
152
|
image_speed = 0;
|
|
153
|
fun = 0;
|
|
154
|
}
|
|
155
|
scr_depthscr_depth
function scr_depth(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10));
} ();
|
|
156
|
con = 30;
|
|
157
|
global.interact = 0;
|
|
158
|
scr_tempsavescr_tempsave
function scr_tempsave()
{
filechoicebk2 = global.filechoice;
global.filechoice = 9;
scr_saveprocess(global.filechoice);
global.filechoice = filechoicebk2;
} ();
|
|
159
|
if (global.plot < 1)
|
|
160
|
global.plot = 1;
|
|
161
|
}
|
|
162
|
}
|
|
163
|
if (con >= 50 && con < 100)
|
|
164
|
{
|
|
165
|
global.interact = 1;
|
|
166
|
global.facing = 1;
|
|
167
|
if (con == 50 && !d_ex())
|
|
168
|
{
|
|
169
|
_remfilechoice = global.filechoice;
|
|
170
|
global.filechoice += 3;
|
|
171
|
scr_savescr_save
function scr_save()
{
scr_saveprocess(global.filechoice);
filechoicebk2 = global.filechoice;
global.filechoice = 9;
scr_saveprocess(9);
global.filechoice = filechoicebk2;
iniwrite = ossafe_ini_open("dr.ini");
ini_write_string(scr_ini_chapter(global.chapter, global.filechoice), "Name", global.truename);
ini_write_real(scr_ini_chapter(global.chapter, global.filechoice), "Level", global.lv);
ini_write_real(scr_ini_chapter(global.chapter, global.filechoice), "Love", global.llv);
ini_write_real(scr_ini_chapter(global.chapter, global.filechoice), "Time", global.time);
ini_write_real(scr_ini_chapter(global.chapter, global.filechoice), "Date", date_current_datetime());
ini_write_real(scr_ini_chapter(global.chapter, global.filechoice), "Room", scr_get_id_by_room_index(room));
ini_write_real(scr_ini_chapter(global.chapter, global.filechoice), "InitLang", global.flag[912 language]);
var uraboss = 0;
if (global.chapter == 1)
{
if (global.flag[241 JEVIL_plot] == 6)
uraboss = 1;
else if (global.flag[241 JEVIL_plot] == 7)
uraboss = 2;
}
else
{
uraboss = scr_get_secret_boss_result(global.chapter);
}
ini_write_real(scr_ini_chapter(global.chapter, global.filechoice), "UraBoss", uraboss);
ini_write_string(scr_ini_chapter(global.chapter, global.filechoice), "Version", string(global.versionno));
ossafe_ini_close();
scr_store_ura_result(global.chapter, global.filechoice, uraboss);
ossafe_ini_open("keyconfig_" + string(global.filechoice) + ".ini");
for (i = 0; i < 10; i += 1)
ini_write_real("KEYBOARD_CONTROLS", string(i), global.input_k[i]);
for (i = 0; i < 10; i += 1)
ini_write_real("GAMEPAD_CONTROLS", string(i), global.input_g[i]);
ini_write_real("SHOULDERLB_REASSIGN", "SHOULDERLB_REASSIGN", obj_gamecontroller.gamepad_shoulderlb_reassign);
ossafe_ini_close();
ossafe_savedata_save();
} ();
|
|
172
|
global.filechoice = _remfilechoice;
|
|
173
|
mus_volume(global.currentsong[1], 0, 100);
|
|
174
|
fade = instance_create(0, 0, obj_fadeout);
|
|
175
|
with (fade)
|
|
176
|
fadespeed = 0.01;
|
|
177
|
con = 51;
|
|
178
|
alarm[4] = 100; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
179
|
}
|
|
180
|
if (con == 52)
|
|
181
|
{
|
|
182
|
snd_free_all();
|
|
183
|
con = 53;
|
|
184
|
alarm[4] = 150; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
185
|
}
|
|
186
|
if (con == 54)
|
|
187
|
{
|
|
188
|
scr_windowcaptionscr_windowcaption
function scr_windowcaption(arg0)
{
if (global.tempflag[10] != 1 && global.chapter == 1)
window_set_caption(arg0);
else
window_set_caption("DELTARUNE Chapter 4");
} (" ");
|
|
189
|
room_goto(room_myroom_dark);
|
|
190
|
}
|
|
191
|
}
|
|
192
|
if (con >= 100 && con < 150)
|
|
193
|
{
|
|
194
|
global.interact = 1;
|
|
195
|
global.facing = 1;
|
|
196
|
if (con == 100 && !d_ex())
|
|
197
|
{
|
|
198
|
mus_volume(global.currentsong[1], 0, 50);
|
|
199
|
fade = instance_create(0, 0, obj_fadeout);
|
|
200
|
with (fade)
|
|
201
|
{
|
|
202
|
fadespeed = 0.02;
|
|
203
|
depth = 10000;
|
|
204
|
}
|
|
205
|
con = 101;
|
|
206
|
alarm[4] = 50; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
207
|
}
|
|
208
|
if (con == 102)
|
|
209
|
{
|
|
210
|
snd_free_all();
|
|
211
|
con = 103;
|
|
212
|
alarm[4] = 50; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
213
|
}
|
|
214
|
if (con == 104)
|
|
215
|
{
|
|
216
|
scr_windowcaptionscr_windowcaption
function scr_windowcaption(arg0)
{
if (global.tempflag[10] != 1 && global.chapter == 1)
window_set_caption(arg0);
else
window_set_caption("DELTARUNE Chapter 4");
} (" ");
|
|
217
|
global.typer = 5;
|
|
218
|
global.fc = 0;
|
|
219
|
global.msg[0] = stringsetloc(* (But,Delay 11 when you opened your eyes...)Wait for inputClose Message"* (But^1, when you opened your eyes...)/%", "obj_krisroom_slash_Step_0_gml_283_0" );
|
|
220
|
instance_create(0, 0, obj_dialoguer);
|
|
221
|
con = 105;
|
|
222
|
}
|
|
223
|
if (con == 105 && !d_ex())
|
|
224
|
{
|
|
225
|
instance_create(0, 0, obj_persistentfadein);
|
|
226
|
scr_windowcaptionscr_windowcaption
function scr_windowcaption(arg0)
{
if (global.tempflag[10] != 1 && global.chapter == 1)
window_set_caption(arg0);
else
window_set_caption("DELTARUNE Chapter 4");
} (stringsetloc(THE DARK"THE DARK", "obj_krisroom_slash_Step_0_gml_293_0" ));
|
|
227
|
global.plot = 10;
|
|
228
|
scr_become_darkscr_become_dark
function scr_become_dark()
{
global.darkzone = 1;
scr_equip_dw_weapon_by_lw_id(global.lweapon);
for (var i = 0; i < 8; i++)
{
var weapon = get_weapon_by_lw_id(global.litem[i]);
if (weapon != -4)
{
if (!scr_weaponcheck_inventory(weapon.dw_id) && !scr_weaponcheck_equipped_any(weapon.dw_id))
scr_weaponget(weapon.dw_id);
}
}
global.hp[1] = ceil((global.lhp / global.lmaxhp) * global.maxhp[1]);
if (global.hp[1] < 1)
global.hp[1] = 1;
if (global.hp[1] > global.maxhp[1])
global.hp[1] = global.maxhp[1];
} ();
|
|
229
|
}
|
|
230
|
}
|
|
231
|
}
|
|
232
|
if (global.chapter == 2)
|
|
233
|
{
|
|
234
|
if (con == 2)
|
|
235
|
{
|
|
236
|
talkedtimes = 0;
|
|
237
|
global.flag[6 disable_text_skip] = global.tempflag[39] == 0;
|
|
238
|
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 == "gerson" || _speaker == "ger" || _speaker == "gers")
global.typer = 85;
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;
... ("toriel");
|
|
239
|
con = 3;
|
|
240
|
alarm[4] = 50; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
241
|
}
|
|
242
|
if (con == 4 && !instance_exists(obj_writer))
|
|
243
|
{
|
|
244
|
msgsetloc(0, Kris...? Wait for inputClose Message"Kris...? /%", "obj_krisroom_slash_Step_0_gml_321_0" );
|
|
245
|
if (talkedtimes == 1)
|
|
246
|
msgsetloc(0, Kris, honey... Are you awake...? Delay 66Close MessageClose Message"Kris, honey...&Are you awake...?^6 %%", "obj_krisroom_slash_Step_0_gml_322_0" );
|
|
247
|
if (talkedtimes == 2)
|
|
248
|
msgsetloc(0, ... w.... wait! Delay 66Close MessageClose Message"... w.... wait!^6 %%", "obj_krisroom_slash_Step_0_gml_323_0" );
|
|
249
|
if (talkedtimes == 3)
|
|
250
|
msgsetloc(0, Is that a... Delay 66Close MessageClose Message"Is that a...^6 %%", "obj_krisroom_slash_Step_0_gml_324_0" );
|
|
251
|
if (talkedtimes == 4)
|
|
252
|
msgsetloc(0, A knife!!? Delay 66Close MessageClose Message"A knife!!?^6 %%", "obj_krisroom_slash_Step_0_gml_325_0" );
|
|
253
|
instance_create(100, 100, obj_writer);
|
|
254
|
scr_writer_autocenterscr_writer_autocenter
function scr_writer_autocenter(arg0)
{
with (obj_writer)
autocenter = arg0;
} (1);
|
|
255
|
scr_writer_setspeedscr_writer_setspeed
function scr_writer_setspeed(arg0)
{
with (obj_writer)
rate = arg0;
} (3);
|
|
256
|
talkedtimes++;
|
|
257
|
con = 5;
|
|
258
|
if (talkedtimes == 5)
|
|
259
|
con = 6;
|
|
260
|
}
|
|
261
|
if (con == 5)
|
|
262
|
{
|
|
263
|
con = 3;
|
|
264
|
alarm[4] = 15; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
265
|
}
|
|
266
|
if (con == 6 && !instance_exists(obj_writer))
|
|
267
|
{
|
|
268
|
snd_free_all();
|
|
269
|
whitefade = instance_create(0, 0, obj_fadeout);
|
|
270
|
whitefade.fadespeed = 0.01;
|
|
271
|
whitefade.image_blend = c_white;
|
|
272
|
msgsetloc(0, NOOOOOOOO---!!! Close MessageClose Message"NOOOOOOOO---!!! %%", "obj_krisroom_slash_Step_0_gml_353_0" );
|
|
273
|
instance_create(100, 100, obj_writer);
|
|
274
|
scr_writer_autocenterscr_writer_autocenter
function scr_writer_autocenter(arg0)
{
with (obj_writer)
autocenter = arg0;
} (1);
|
|
275
|
scr_writer_setspeedscr_writer_setspeed
function scr_writer_setspeed(arg0)
{
with (obj_writer)
rate = arg0;
} (8);
|
|
276
|
scr_writer_setshakescr_writer_setshake
function scr_writer_setshake(arg0)
{
with (obj_writer)
shake = arg0;
} (1);
|
|
277
|
con = 7;
|
|
278
|
alarm[4] = 100; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
279
|
}
|
|
280
|
if (con == 8 && !instance_exists(obj_writer))
|
|
281
|
{
|
|
282
|
global.flag[6 disable_text_skip] = 0;
|
|
283
|
with (whitefade)
|
|
284
|
instance_destroy();
|
|
285
|
with (obj_marker)
|
|
286
|
instance_destroy();
|
|
287
|
show_border = true;
|
|
288
|
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;
} ();
|
|
289
|
tor = 0;
|
|
290
|
tor_actor = instance_create(151, 207, obj_actor);
|
|
291
|
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);
}
} (tor, tor_actor, "toriel");
|
|
292
|
tor_actor.sprite_index = spr_toriel_u;
|
|
293
|
c_selc_sel
function c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
} (0);
|
|
294
|
c_walk_waitc_walk_wait
function c_walk_wait(arg0, arg1, arg2)
{
c_walk(arg0, arg1, arg2);
c_wait(arg2);
}
function c_walkwait(arg0, arg1, arg2)
{
c_walk_wait(arg0, arg1, arg2);
} ("u", 4, 27.5);
|
|
295
|
c_autowalkc_autowalk
function c_autowalk(arg0)
{
c_cmd("autowalk", arg0, 0, 0, 0);
} (0);
|
|
296
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_cutscene_01_toriel_holding_tin_upset_right);
|
|
297
|
c_imagespeedc_imagespeed
function c_imagespeed(arg0)
{
c_cmd("imagespeed", arg0, 0, 0, 0);
} (0.25);
|
|
298
|
c_walk_waitc_walk_wait
function c_walk_wait(arg0, arg1, arg2)
{
c_walk(arg0, arg1, arg2);
c_wait(arg2);
}
function c_walkwait(arg0, arg1, arg2)
{
c_walk_wait(arg0, arg1, arg2);
} ("r", 4, 12.5);
|
|
299
|
c_haltc_halt
function c_halt()
{
c_cmd("halt", 0, 0, 0, 0);
} ();
|
|
300
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (30);
|
|
301
|
c_speakerc_speaker
function c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
} ("toriel");
|
|
302
|
c_fec_fe
function c_fe(arg0)
{
c_cmd("fe", arg0, -2, 0, 0);
} (5);
|
|
303
|
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, * Kris,Delay 11 did you eat all of the pie!?Wait for inputClose Message"* Kris^1, did you eat all of the pie!?/%", "obj_krisroom_slash_Step_0_gml_388_0" );
|
|
304
|
c_talk_waitc_talk_wait
function c_talk_wait()
{
c_talk();
c_waittalk();
}
function c_talkwait()
{
c_talk_wait();
} ();
|
|
305
|
c_soundplayc_soundplay
function c_soundplay(arg0)
{
c_cmd("soundplay", arg0, 0, 0, 0);
}
function c_sndplay(arg0)
{
c_soundplay(arg0);
}
function c_snd_play(arg0)
{
c_soundplay(arg0);
}
function c_sound_play(arg0)
{
c_soundplay(arg0);
} (snd_whip_crack_only);
|
|
306
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_cutscene_01_toriel_holding_tin_facepalm);
|
|
307
|
c_waitc_wait
function c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
} (60);
|
|
308
|
c_speakerc_speaker
function c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
} ("toriel");
|
|
309
|
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 3* It is YOUR knife in this empty tin, is it not!?Wait for input"\\E3* It is YOUR knife in this empty tin, is it not!?/", "obj_krisroom_slash_Step_0_gml_393_0" );
|
|
310
|
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 8* Oh, Kris...Wait for inputClose Message"\\E8* Oh, Kris.../%", "obj_krisroom_slash_Step_0_gml_394_0" );
|
|
311
|
c_talk_waitc_talk_wait
function c_talk_wait()
{
c_talk();
c_waittalk();
}
function c_talkwait()
{
c_talk_wait();
} ();
|
|
312
|
c_autowalkc_autowalk
function c_autowalk(arg0)
{
c_cmd("autowalk", arg0, 0, 0, 0);
} (0);
|
|
313
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_cutscene_01_toriel_laugh_pie_tin);
|
|
314
|
c_imagespeedc_imagespeed
function c_imagespeed(arg0)
{
c_cmd("imagespeed", arg0, 0, 0, 0);
} (0.25);
|
|
315
|
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* Am I going to have to lock the oven again?Wait for inputClose Message"\\E4* Am I going to have to lock the oven again?/%", "obj_krisroom_slash_Step_0_gml_399_0" );
|
|
316
|
c_talk_waitc_talk_wait
function c_talk_wait()
{
c_talk();
c_waittalk();
}
function c_talkwait()
{
c_talk_wait();
} ();
|
|
317
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_cutscene_01_toriel_walk_left_pie);
|
|
318
|
c_walk_waitc_walk_wait
function c_walk_wait(arg0, arg1, arg2)
{
c_walk(arg0, arg1, arg2);
c_wait(arg2);
}
function c_walkwait(arg0, arg1, arg2)
{
c_walk_wait(arg0, arg1, arg2);
} ("l", 2, 25);
|
|
319
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_cutscene_01_toriel_walk_right_pie);
|
|
320
|
c_haltc_halt
function c_halt()
{
c_cmd("halt", 0, 0, 0, 0);
} ();
|
|
321
|
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 1* Well,Delay 11 hurry out of bed.Delay 11 It is time for school.Wait for inputClose Message"\\E1* Well^1, hurry out of bed^1. It is time for school./%", "obj_krisroom_slash_Step_0_gml_406_0" );
|
|
322
|
c_talk_waitc_talk_wait
function c_talk_wait()
{
c_talk();
c_waittalk();
}
function c_talkwait()
{
c_talk_wait();
} ();
|
|
323
|
c_spritec_sprite
function c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
} (spr_cutscene_01_toriel_walk_down_pie);
|
|
324
|
c_imagespeedc_imagespeed
function c_imagespeed(arg0)
{
c_cmd("imagespeed", arg0, 0, 0, 0);
} (0.25);
|
|
325
|
c_walk_waitc_walk_wait
function c_walk_wait(arg0, arg1, arg2)
{
c_walk(arg0, arg1, arg2);
c_wait(arg2);
}
function c_walkwait(arg0, arg1, arg2)
{
c_walk_wait(arg0, arg1, arg2);
} ("d", 2, 75);
|
|
326
|
con = 9;
|
|
327
|
}
|
|
328
|
if (con == 9 && !instance_exists(obj_cutscene_master))
|
|
329
|
con = 22;
|
|
330
|
if (con == 22)
|
|
331
|
{
|
|
332
|
snd_play(snd_wing);
|
|
333
|
image_index = 1;
|
|
334
|
alarm[4] = 40; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
335
|
con = 23;
|
|
336
|
}
|
|
337
|
if (con == 24)
|
|
338
|
{
|
|
339
|
with (obj_mainchara)
|
|
340
|
{
|
|
341
|
fun = 1;
|
|
342
|
image_speed = 0.25;
|
|
343
|
sprite_index = spr_krisl;
|
|
344
|
hspeed = -1;
|
|
345
|
}
|
|
346
|
alarm[4] = 40; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
347
|
if (button2_h())
|
|
348
|
{
|
|
349
|
with (obj_mainchara)
|
|
350
|
{
|
|
351
|
fun = 1;
|
|
352
|
image_speed = 0.25;
|
|
353
|
sprite_index = spr_krisl;
|
|
354
|
hspeed = -4;
|
|
355
|
}
|
|
356
|
alarm[4] = 10; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
357
|
}
|
|
358
|
con = 25;
|
|
359
|
}
|
|
360
|
if (con == 26)
|
|
361
|
{
|
|
362
|
global.facing = 3;
|
|
363
|
with (obj_mainchara)
|
|
364
|
{
|
|
365
|
image_index = 0;
|
|
366
|
hspeed = 0;
|
|
367
|
image_speed = 0;
|
|
368
|
fun = 0;
|
|
369
|
}
|
|
370
|
con = 27;
|
|
371
|
alarm[4] = 20; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
372
|
if (button2_h())
|
|
373
|
alarm[4] = 5; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
374
|
}
|
|
375
|
if (con == 28)
|
|
376
|
{
|
|
377
|
global.facing = 0;
|
|
378
|
with (obj_mainchara)
|
|
379
|
{
|
|
380
|
image_index = 0;
|
|
381
|
hspeed = 0;
|
|
382
|
sprite_index = spr_krisd;
|
|
383
|
image_speed = 0;
|
|
384
|
fun = 0;
|
|
385
|
}
|
|
386
|
scr_depthscr_depth
function scr_depth(arg0 = id, arg1 = 0)
{
with (arg0)
depth = 100000 - ((y * 10) + (sprite_height * 10) + (arg1 * 10));
} ();
|
|
387
|
con = 30;
|
|
388
|
global.interact = 0;
|
|
389
|
scr_tempsavescr_tempsave
function scr_tempsave()
{
filechoicebk2 = global.filechoice;
global.filechoice = 9;
scr_saveprocess(global.filechoice);
global.filechoice = filechoicebk2;
} ();
|
|
390
|
if (global.plot < 1)
|
|
391
|
global.plot = 1;
|
|
392
|
}
|
|
393
|
if (con >= 100 && con < 150)
|
|
394
|
{
|
|
395
|
global.tempflag[38] = 1;
|
|
396
|
global.interact = 1;
|
|
397
|
global.facing = 1;
|
|
398
|
if (con == 100 && !d_ex())
|
|
399
|
{
|
|
400
|
if (scr_keyitemcheckscr_keyitemcheck
function scr_keyitemcheck(arg0)
{
haveit = 0;
itemcount = 0;
for (i = 0; i < 12; i += 1)
{
if (global.keyitem[i] == arg0)
haveit = 1;
if (global.keyitem[i] == arg0)
itemcount += 1;
}
return haveit;
} (8) == 0)
|
|
401
|
scr_keyitemgetscr_keyitemget
function scr_keyitemget(arg0)
{
i = 0;
loop = 1;
noroom = 0;
global.item[12] = 999;
while (loop == 1)
{
if (global.keyitem[i] == 0)
{
global.keyitem[i] = arg0;
break;
}
if (i == 12)
{
noroom = 1;
break;
}
i += 1;
}
script_execute(scr_keyiteminfo_all);
} (8);
|
|
402
|
if (scr_litemcheckscr_litemcheck
function scr_litemcheck(arg0)
{
haveit = 0;
itemcount = 0;
for (i = 0; i < 8; i += 1)
{
if (global.litem[i] == arg0)
haveit = 1;
if (global.litem[i] == arg0)
itemcount += 1;
}
return haveit;
} (5) == 0)
|
|
403
|
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();
} (5);
|
|
404
|
if (scr_litemcheckscr_litemcheck
function scr_litemcheck(arg0)
{
haveit = 0;
itemcount = 0;
for (i = 0; i < 8; i += 1)
{
if (global.litem[i] == arg0)
haveit = 1;
if (global.litem[i] == arg0)
itemcount += 1;
}
return haveit;
} (9) == 0)
|
|
405
|
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();
} (9);
|
|
406
|
global.flag[302 toy_deliver_progress] = 2;
|
|
407
|
global.flag[432 told_to_explore] = 1;
|
|
408
|
mus_volume(global.currentsong[1], 0, 50);
|
|
409
|
fade = instance_create(0, 0, obj_fadeout);
|
|
410
|
with (fade)
|
|
411
|
{
|
|
412
|
fadespeed = 0.02;
|
|
413
|
depth = 10000;
|
|
414
|
}
|
|
415
|
con = 101;
|
|
416
|
alarm[4] = 50; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
417
|
}
|
|
418
|
if (con == 102)
|
|
419
|
{
|
|
420
|
snd_free_all();
|
|
421
|
con = 103;
|
|
422
|
alarm[4] = 50; gml_Object_obj_krisroom_Alarm_4.gml
con += 1;
|
|
423
|
}
|
|
424
|
if (con == 104)
|
|
425
|
{
|
|
426
|
scr_windowcaptionscr_windowcaption
function scr_windowcaption(arg0)
{
if (global.tempflag[10] != 1 && global.chapter == 1)
window_set_caption(arg0);
else
window_set_caption("DELTARUNE Chapter 4");
} (" ");
|
|
427
|
global.typer = 5;
|
|
428
|
global.fc = 0;
|
|
429
|
global.msg[0] = stringsetloc(* (But,Delay 11 when you opened your eyes...)Wait for inputClose Message"* (But^1, when you opened your eyes...)/%", "obj_krisroom_slash_Step_0_gml_283_0" );
|
|
430
|
instance_create(0, 0, obj_dialoguer);
|
|
431
|
con = 105;
|
|
432
|
}
|
|
433
|
if (con == 105 && !d_ex())
|
|
434
|
{
|
|
435
|
instance_create(0, 0, obj_persistentfadein);
|
|
436
|
scr_windowcaptionscr_windowcaption
function scr_windowcaption(arg0)
{
if (global.tempflag[10] != 1 && global.chapter == 1)
window_set_caption(arg0);
else
window_set_caption("DELTARUNE Chapter 4");
} (stringsetloc(THE DARK"THE DARK", "obj_krisroom_slash_Step_0_gml_293_0" ));
|
|
437
|
global.plot = 49;
|
|
438
|
scr_become_darkscr_become_dark
function scr_become_dark()
{
global.darkzone = 1;
scr_equip_dw_weapon_by_lw_id(global.lweapon);
for (var i = 0; i < 8; i++)
{
var weapon = get_weapon_by_lw_id(global.litem[i]);
if (weapon != -4)
{
if (!scr_weaponcheck_inventory(weapon.dw_id) && !scr_weaponcheck_equipped_any(weapon.dw_id))
scr_weaponget(weapon.dw_id);
}
}
global.hp[1] = ceil((global.lhp / global.lmaxhp) * global.maxhp[1]);
if (global.hp[1] < 1)
global.hp[1] = 1;
if (global.hp[1] > global.maxhp[1])
global.hp[1] = global.maxhp[1];
} ();
|
|
439
|
room_goto(room_dw_cyber_intro_1 );
|
|
440
|
}
|
|
441
|
}
|
|
442
|
}
|