|
1
|
if (con == 1)
|
|
2
|
{
|
|
3
|
global.facing = 2;
|
|
4
|
global.interact = 1;
|
|
5
|
image_speed = 0.08;
|
|
6
|
}
|
|
7
|
if (con == 2)
|
|
8
|
{
|
|
9
|
con = 3;
|
|
10
|
global.msc = 0;
|
|
11
|
global.faceemotion = 3;
|
|
12
|
global.facechoice = 9;
|
|
13
|
global.typer = 89;
|
|
14
|
global.msg[0] = * I'm so sorry.Wait for inputClose MessageClose Messagescr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asriel_overworldanim_174") ;
|
|
15
|
instance_create(0, 0, obj_dialoguer);
|
|
16
|
}
|
|
17
|
if (con == 3 && instance_exists(OBJ_WRITER) == 0)
|
|
18
|
{
|
|
19
|
con = 4;
|
|
20
|
alarm[4] = 90; gml_Object_obj_asriel_overworldanim_Alarm_4.gml
con += 1;
|
|
21
|
}
|
|
22
|
if (con == 4)
|
|
23
|
{
|
|
24
|
image_speed = 0.1;
|
|
25
|
sprite_index = spr_asriel_rubtears;
|
|
26
|
}
|
|
27
|
if (con == 5)
|
|
28
|
{
|
|
29
|
con = 6;
|
|
30
|
alarm[4] = 90; gml_Object_obj_asriel_overworldanim_Alarm_4.gml
con += 1;
|
|
31
|
image_speed = 0;
|
|
32
|
image_index = 0;
|
|
33
|
y -= 2;
|
|
34
|
sprite_index = spr_asriel_tearsdry;
|
|
35
|
}
|
|
36
|
if (con == 6)
|
|
37
|
{
|
|
38
|
if (image_index < 2)
|
|
39
|
image_index += (1/30);
|
|
40
|
else
|
|
41
|
image_index = 2;
|
|
42
|
}
|
|
43
|
if (con == 7)
|
|
44
|
{
|
|
45
|
caster_loop(musicbox, 1, 0.8);
|
|
46
|
sprite_index = spr_asriel_d;
|
|
47
|
global.msc = 800;
|
|
48
|
global.faceemotion = 7;
|
|
49
|
global.facechoice = 9;
|
|
50
|
global.typer = 89;
|
|
51
|
instance_create(0, 0, obj_dialoguer);
|
|
52
|
con = 7.1;
|
|
53
|
mvol = caster_get_volume(musicbox);
|
|
54
|
}
|
|
55
|
if (con == 7.1 && instance_exists(OBJ_WRITER) == 0)
|
|
56
|
{
|
|
57
|
mvol -= 0.02;
|
|
58
|
caster_set_volume(musicbox, mvol);
|
|
59
|
if (mvol < -0.5)
|
|
60
|
con = 8;
|
|
61
|
}
|
|
62
|
if (con == 8 && instance_exists(OBJ_WRITER) == 0)
|
|
63
|
{
|
|
64
|
alarm[3] = 60; gml_Object_obj_asriel_overworldanim_Alarm_3.gml
caster_play(xpart, 1, 0.92);
|
|
65
|
con = 9;
|
|
66
|
image_index = 0;
|
|
67
|
siner = 0;
|
|
68
|
thisy = y;
|
|
69
|
upy = 0;
|
|
70
|
times = 0;
|
|
71
|
}
|
|
72
|
if (con == 9)
|
|
73
|
{
|
|
74
|
con = 10;
|
|
75
|
alarm[4] = 420; gml_Object_obj_asriel_overworldanim_Alarm_4.gml
con += 1;
|
|
76
|
whited = 0;
|
|
77
|
shaked = -3;
|
|
78
|
powered = 1;
|
|
79
|
}
|
|
80
|
if (con == 10 || con == 11)
|
|
81
|
{
|
|
82
|
shaked += 0.01;
|
|
83
|
if (shaked > 0)
|
|
84
|
{
|
|
85
|
if (shaked < 1)
|
|
86
|
shaked = 1;
|
|
87
|
view_xview[0] = (0 + random(shaked)) - random(shaked);
|
|
88
|
view_yview[0] = (0 + random(shaked)) - random(shaked);
|
|
89
|
}
|
|
90
|
}
|
|
91
|
if (powered == 1)
|
|
92
|
{
|
|
93
|
sprite_index = spr_asriel_power;
|
|
94
|
if (image_index < 7)
|
|
95
|
image_index += 0.03;
|
|
96
|
if (image_index >= 7)
|
|
97
|
{
|
|
98
|
image_index += 0.2;
|
|
99
|
if (image_index >= 8.8)
|
|
100
|
{
|
|
101
|
times += 1;
|
|
102
|
image_index = 7;
|
|
103
|
}
|
|
104
|
if (times > 6)
|
|
105
|
{
|
|
106
|
if (emerge == 0)
|
|
107
|
emerge = 1;
|
|
108
|
}
|
|
109
|
}
|
|
110
|
if (image_index >= 5)
|
|
111
|
{
|
|
112
|
if (upy < 10)
|
|
113
|
upy += 0.25;
|
|
114
|
siner += 1;
|
|
115
|
y = thisy - upy - (sin(siner / 8) * 1);
|
|
116
|
}
|
|
117
|
}
|
|
118
|
if (emerge == 1)
|
|
119
|
{
|
|
120
|
m = instance_create(x + 3, y + 10, obj_mhd);
|
|
121
|
m.spec = 1;
|
|
122
|
m.rno[0] = 6;
|
|
123
|
alarm[5] = 10; gml_Object_obj_asriel_overworldanim_Alarm_5.gml
instance_create(x + 3, y + 10, obj_mhd);
alarm[5] = 6;
|
|
124
|
emerge = 2;
|
|
125
|
}
|
|
126
|
if (con == 20)
|
|
127
|
{
|
|
128
|
mc.sprite_index = spr_maincharal;
|
|
129
|
mc.x = x + 60;
|
|
130
|
mc.y = thisy - 2;
|
|
131
|
sprite_index = spr_asriel_powerdown;
|
|
132
|
image_index = 0;
|
|
133
|
image_speed = 0;
|
|
134
|
con = 21;
|
|
135
|
alarm[4] = 50; gml_Object_obj_asriel_overworldanim_Alarm_4.gml
con += 1;
|
|
136
|
}
|
|
137
|
if (con == 22)
|
|
138
|
con = 23;
|
|
139
|
if (con == 23)
|
|
140
|
{
|
|
141
|
image_index += 0.05;
|
|
142
|
if (y < thisy)
|
|
143
|
y += 0.2;
|
|
144
|
else
|
|
145
|
y = thisy;
|
|
146
|
if (image_index >= 10)
|
|
147
|
{
|
|
148
|
con = 24;
|
|
149
|
alarm[4] = 70; gml_Object_obj_asriel_overworldanim_Alarm_4.gml
con += 1;
|
|
150
|
}
|
|
151
|
}
|
|
152
|
if (con == 25)
|
|
153
|
{
|
|
154
|
sprite_index = spr_asriel_rsad;
|
|
155
|
con = 26;
|
|
156
|
alarm[4] = 70; gml_Object_obj_asriel_overworldanim_Alarm_4.gml
con += 1;
|
|
157
|
}
|
|
158
|
if (con == 27)
|
|
159
|
{
|
|
160
|
sprite_index = spr_asriel_lookdown;
|
|
161
|
con = 27.1;
|
|
162
|
global.msc = 803;
|
|
163
|
global.faceemotion = 7;
|
|
164
|
global.facechoice = 9;
|
|
165
|
global.typer = 89;
|
|
166
|
dl = instance_create(0, 0, obj_dialoguer);
|
|
167
|
dl.side = 0;
|
|
168
|
}
|
|
169
|
if (con == 28 && instance_exists(OBJ_WRITER) == 0)
|
|
170
|
{
|
|
171
|
sprite_index = spr_asriel_lookdown;
|
|
172
|
mc.x = x + 60;
|
|
173
|
mc.y = thisy - 2;
|
|
174
|
mc.depth = depth - 1;
|
|
175
|
con = 29;
|
|
176
|
}
|
|
177
|
if (con == 29)
|
|
178
|
{
|
|
179
|
mc.x -= 1;
|
|
180
|
mc.image_index += 0.1;
|
|
181
|
if (mc.x <= (x + 2))
|
|
182
|
{
|
|
183
|
mc.x = x + 2;
|
|
184
|
con = 30;
|
|
185
|
alarm[4] = 20; gml_Object_obj_asriel_overworldanim_Alarm_4.gml
con += 1;
|
|
186
|
}
|
|
187
|
}
|
|
188
|
if (con == 31)
|
|
189
|
{
|
|
190
|
mc.image_index = 0;
|
|
191
|
mc.visible = false;
|
|
192
|
image_index = 0;
|
|
193
|
sprite_index = spr_asriel_hug;
|
|
194
|
con = 32;
|
|
195
|
}
|
|
196
|
if (con == 32)
|
|
197
|
{
|
|
198
|
image_index += 0.2;
|
|
199
|
if (image_index >= 4)
|
|
200
|
{
|
|
201
|
con = 33;
|
|
202
|
alarm[4] = 40; gml_Object_obj_asriel_overworldanim_Alarm_4.gml
con += 1;
|
|
203
|
}
|
|
204
|
}
|
|
205
|
if (con == 34)
|
|
206
|
{
|
|
207
|
image_index += 0.2;
|
|
208
|
if (image_index >= 8)
|
|
209
|
{
|
|
210
|
con = 35;
|
|
211
|
alarm[4] = 40; gml_Object_obj_asriel_overworldanim_Alarm_4.gml
con += 1;
|
|
212
|
}
|
|
213
|
}
|
|
214
|
if (con == 36)
|
|
215
|
{
|
|
216
|
pattimer = 0;
|
|
217
|
image_index += 0.2;
|
|
218
|
if (image_index >= 11)
|
|
219
|
{
|
|
220
|
con = 37;
|
|
221
|
alarm[4] = 80; gml_Object_obj_asriel_overworldanim_Alarm_4.gml
con += 1;
|
|
222
|
}
|
|
223
|
}
|
|
224
|
if (con == 38 || con == 38.1)
|
|
225
|
{
|
|
226
|
image_index += 0.05;
|
|
227
|
if (image_index >= 11.8)
|
|
228
|
image_index = 10.2;
|
|
229
|
pattimer += 1;
|
|
230
|
if (pattimer == 90)
|
|
231
|
{
|
|
232
|
con = 38.1;
|
|
233
|
global.msc = 0;
|
|
234
|
global.faceemotion = 0;
|
|
235
|
global.facechoice = 0;
|
|
236
|
global.typer = 90;
|
|
237
|
global.msg[0] = * Ha...Delay 11 ha...Wait for inputscr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asriel_overworldanim_440") ;
|
|
238
|
global.msg[1] = * I don't want to let go...Wait for inputClose MessageClose Messagescr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asriel_overworldanim_441") ;
|
|
239
|
dl = instance_create(0, 0, obj_dialoguer);
|
|
240
|
dl.side = 0;
|
|
241
|
}
|
|
242
|
}
|
|
243
|
if (con == 38.1 && instance_exists(OBJ_WRITER) == 0)
|
|
244
|
{
|
|
245
|
con = 38.2;
|
|
246
|
alarm[4] = 60; gml_Object_obj_asriel_overworldanim_Alarm_4.gml
con += 1;
|
|
247
|
}
|
|
248
|
if (con == 39.2)
|
|
249
|
{
|
|
250
|
con = 39;
|
|
251
|
hug_rev = 11;
|
|
252
|
image_index = 11;
|
|
253
|
}
|
|
254
|
if (con == 39)
|
|
255
|
{
|
|
256
|
if (hug_rev > 0.3)
|
|
257
|
{
|
|
258
|
hug_rev -= 0.1;
|
|
259
|
image_index -= 0.1;
|
|
260
|
}
|
|
261
|
else
|
|
262
|
{
|
|
263
|
image_index = 0;
|
|
264
|
con = 40;
|
|
265
|
alarm[4] = 30; gml_Object_obj_asriel_overworldanim_Alarm_4.gml
con += 1;
|
|
266
|
mcx = mc.x;
|
|
267
|
mc.visible = true;
|
|
268
|
sprite_index = spr_asriel_lookdown;
|
|
269
|
}
|
|
270
|
}
|
|
271
|
if (con == 41)
|
|
272
|
{
|
|
273
|
mc.image_index += 0.1;
|
|
274
|
mc.x += 1;
|
|
275
|
if (mc.x > (mcx + 30))
|
|
276
|
{
|
|
277
|
mc.image_index = 0;
|
|
278
|
con = 49;
|
|
279
|
alarm[4] = 50; gml_Object_obj_asriel_overworldanim_Alarm_4.gml
con += 1;
|
|
280
|
}
|
|
281
|
}
|
|
282
|
if (con == 50 && instance_exists(OBJ_WRITER) == 0)
|
|
283
|
{
|
|
284
|
sprite_index = spr_asriel_r;
|
|
285
|
global.msg[0] = \E7* Frisk...Wait for inputscr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asriel_overworldanim_495") ;
|
|
286
|
global.msg[1] = * You're...Wait for inputscr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asriel_overworldanim_496") ;
|
|
287
|
global.msg[2] = \E0* You're going to do a great job,Delay 11 OK?Wait for inputscr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asriel_overworldanim_497") ;
|
|
288
|
global.msg[3] = * No matter what you do.Wait for inputscr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asriel_overworldanim_498") ;
|
|
289
|
global.msg[4] = * Everyone will be there for you,Delay 11 okay?Wait for inputClose MessageClose Messagescr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asriel_overworldanim_499") ;
|
|
290
|
global.msc = 0;
|
|
291
|
global.faceemotion = 7;
|
|
292
|
global.facechoice = 9;
|
|
293
|
global.typer = 89;
|
|
294
|
dl = instance_create(0, 0, obj_dialoguer);
|
|
295
|
dl.side = 1;
|
|
296
|
con = 50.1;
|
|
297
|
}
|
|
298
|
if (con == 50.1 && instance_exists(OBJ_WRITER) == 0)
|
|
299
|
{
|
|
300
|
con = 49.2;
|
|
301
|
alarm[4] = 40; gml_Object_obj_asriel_overworldanim_Alarm_4.gml
con += 1;
|
|
302
|
}
|
|
303
|
if (con == 50.2)
|
|
304
|
{
|
|
305
|
sprite_index = spr_asriel_u;
|
|
306
|
con = 49.3;
|
|
307
|
alarm[4] = 50; gml_Object_obj_asriel_overworldanim_Alarm_4.gml
con += 1;
|
|
308
|
}
|
|
309
|
if (con == 50.3)
|
|
310
|
{
|
|
311
|
global.msc = 0;
|
|
312
|
global.faceemotion = 7;
|
|
313
|
global.facechoice = 9;
|
|
314
|
global.typer = 89;
|
|
315
|
global.msg[0] = \E7* Well...Delay 11 * My time's running out.Wait for inputscr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asriel_overworldanim_533") ;
|
|
316
|
global.msg[1] = * Goodbye.Wait for inputClose MessageClose Messagescr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asriel_overworldanim_534") ;
|
|
317
|
dl = instance_create(0, 0, obj_dialoguer);
|
|
318
|
dl.side = 1;
|
|
319
|
con = 52;
|
|
320
|
}
|
|
321
|
if (con == 52 && instance_exists(OBJ_WRITER) == 0)
|
|
322
|
{
|
|
323
|
vspeed = -0.25;
|
|
324
|
image_speed = 0.1;
|
|
325
|
con = 54;
|
|
326
|
alarm[4] = 80; gml_Object_obj_asriel_overworldanim_Alarm_4.gml
con += 1;
|
|
327
|
}
|
|
328
|
if (con == 55)
|
|
329
|
{
|
|
330
|
y = round(y);
|
|
331
|
vspeed = 0;
|
|
332
|
image_speed = 0;
|
|
333
|
image_index = 0;
|
|
334
|
con = 56;
|
|
335
|
alarm[4] = 80; gml_Object_obj_asriel_overworldanim_Alarm_4.gml
con += 1;
|
|
336
|
}
|
|
337
|
if (con == 57)
|
|
338
|
{
|
|
339
|
sprite_index = spr_asriel_d;
|
|
340
|
con = 58;
|
|
341
|
alarm[4] = 60; gml_Object_obj_asriel_overworldanim_Alarm_4.gml
con += 1;
|
|
342
|
}
|
|
343
|
if (con == 59)
|
|
344
|
{
|
|
345
|
global.msc = 0;
|
|
346
|
global.faceemotion = 0;
|
|
347
|
global.facechoice = 9;
|
|
348
|
global.typer = 89;
|
|
349
|
global.msg[0] = * By the way...Wait for inputscr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asriel_overworldanim_572") ;
|
|
350
|
global.msg[1] = * Frisk.Wait for inputscr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asriel_overworldanim_573") ;
|
|
351
|
global.msg[2] = \E6* ... take care of Mom and Dad for me,Delay 11 OK?Wait for inputClose MessageClose Messagescr_gettextscr_gettext
var text_id = argument[0];
var text = ds_map_find_value(global.text_data_en, text_id);
if (is_undefined(text))
text = "";
if (global.language == "ja")
{
var loc_text = ds_map_find_value(global.text_data_ja, text_id);
if (!is_undefined(loc_text))
text = loc_text;
}
for (var i = 1; i <= (string_length(text) - 3); i++)
{
if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]")
{
var sel = string_char_at(text, i + 2);
var replace;
if (sel == "C")
replace = global.charname;
else if (sel == "G")
replace = string(global.gold);
else if (sel == "I")
replace = global.itemname[global.menucoord[1]];
else if (sel == "1" && argument_count > 1)
replace = argument[1];
else if (sel == "2" && argument_count > 2)
replace = argument[2];
else if (sel == "3" && argument_count > 3)
replace = argument[3];
else if (sel == "4" && argument_count > 4)
replace = argument[4];
else if (sel == "5" && argument_count > 5)
replace = argument[5];
else if (sel == "6" && argument_count > 6)
replace = argument[6];
else if (sel == "7" && argument_count > 7)
replace = argument[7];
else if (sel == "8" && argument_count > 8)
replace = argument[8];
else if (sel == "9" && argument_count > 9)
replace = argument[9];
else
replace = "";
var before = string_copy(text, 1, i - 1);
var after = string_copy(text, i + 4, string_length(text));
text = before + replace + after;
i += (string_length(replace) - 1);
}
}
return text; ("obj_asriel_overworldanim_574") ;
|
|
352
|
dl = instance_create(0, 0, obj_dialoguer);
|
|
353
|
dl.side = 1;
|
|
354
|
con = 60;
|
|
355
|
}
|
|
356
|
if (con == 60 && instance_exists(OBJ_WRITER) == 0)
|
|
357
|
{
|
|
358
|
con = 61;
|
|
359
|
alarm[4] = 40; gml_Object_obj_asriel_overworldanim_Alarm_4.gml
con += 1;
|
|
360
|
}
|
|
361
|
if (con == 62)
|
|
362
|
{
|
|
363
|
con = 63;
|
|
364
|
alarm[4] = 40; gml_Object_obj_asriel_overworldanim_Alarm_4.gml
con += 1;
|
|
365
|
sprite_index = spr_asriel_u;
|
|
366
|
ttimer = 0;
|
|
367
|
}
|
|
368
|
if (con == 64)
|
|
369
|
{
|
|
370
|
mc.sprite_index = spr_maincharau;
|
|
371
|
sprite_index = spr_asriel_u;
|
|
372
|
vspeed = -0.25;
|
|
373
|
image_speed = 0.05;
|
|
374
|
ttimer += 1;
|
|
375
|
if (ttimer == 40)
|
|
376
|
{
|
|
377
|
sw = instance_create(0, 0, obj_screenwhiter);
|
|
378
|
sw.ex = 1;
|
|
379
|
}
|
|
380
|
if (ttimer == 104)
|
|
381
|
{
|
|
382
|
global.flag[510 plot_over] = 1;
|
|
383
|
global.plot = 999;
|
|
384
|
global.flag[7 true_pacifist] = 1;
|
|
385
|
ossafe_ini_open("undertale.ini");
|
|
386
|
ini_write_real("F7", "F7", 1);
|
|
387
|
ossafe_ini_close();
|
|
388
|
ossafe_savedata_save();
|
|
389
|
scr_enable_screen_borderscr_enable_screen_border
var flag = argument0;
flag = flag != 0;
if (flag != global.screen_border_active)
{
global.screen_border_active = flag != 0;
global.screen_border_state = 0;
global.screen_border_dynamic_fade_id = 0;
global.screen_border_dynamic_fade_level = 0;
} (1);
|
|
390
|
room_goto(room_castle_prebarrier The End [SAVE]);
|
|
391
|
}
|
|
392
|
}
|