|
1
|
if (global.mnfight == 3)
|
|
2
|
attacked = 0;
|
|
3
|
if (alarm[5] > 0)
|
|
4
|
{
|
|
5
|
if (global.monster[0] == 1)
|
|
6
|
{
|
|
7
|
if (global.monsterinstance[0].alarm[5] > alarm[5]) gml_Object_obj_sansb_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.faceemotion = 0;
global.flag[20 animation_index] = 0;
global.mnfight = 2;
|
|
8
|
alarm[5] = global.monsterinstance[0].alarm[5]; gml_Object_obj_sansb_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.faceemotion = 0;
global.flag[20 animation_index] = 0;
global.mnfight = 2;
|
|
9
|
}
|
|
10
|
if (global.monster[1] == 1)
|
|
11
|
{
|
|
12
|
if (global.monsterinstance[1].alarm[5] > alarm[5]) gml_Object_obj_sansb_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.faceemotion = 0;
global.flag[20 animation_index] = 0;
global.mnfight = 2;
|
|
13
|
alarm[5] = global.monsterinstance[1].alarm[5]; gml_Object_obj_sansb_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.faceemotion = 0;
global.flag[20 animation_index] = 0;
global.mnfight = 2;
|
|
14
|
}
|
|
15
|
if (global.monster[2] == 1)
|
|
16
|
{
|
|
17
|
if (global.monsterinstance[2].alarm[5] > alarm[5]) gml_Object_obj_sansb_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.faceemotion = 0;
global.flag[20 animation_index] = 0;
global.mnfight = 2;
|
|
18
|
alarm[5] = global.monsterinstance[2].alarm[5]; gml_Object_obj_sansb_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.faceemotion = 0;
global.flag[20 animation_index] = 0;
global.mnfight = 2;
|
|
19
|
}
|
|
20
|
}
|
|
21
|
if (global.mnfight == 1)
|
|
22
|
{
|
|
23
|
if (talked == 0)
|
|
24
|
{
|
|
25
|
alarm[5] = 15; gml_Object_obj_sansb_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.faceemotion = 0;
global.flag[20 animation_index] = 0;
global.mnfight = 2;
|
|
26
|
alarm[6] = 1; gml_Object_obj_sansb_Alarm_6.gml
sm = obj_backgrounder_parent;
gg = floor(random(3));
mycommand = round(random(100));
global.msg[0] = "del";
global.msg[1] = "%%%";
yoff = 0;
if (hit_try > hit_reached)
{
if (hit_try == 1)
{
global.faceemotion = 3;
global.flag[20 animation_index] = 1;
global.msg[0] = what?Delay 11 you think i'm just gonna stand there and take it?Wait for inputClose MessageClose Message ;
}
if (hit_try == 2)
{
global.msg[0] = our reports showed a massive anomaly in the timespace continuum.Wait for input ;
global.msg[1] = timelines jumping left and right, stopping and starting...Wait for inputClose MessageClose Message ;
}
if (hit_try == 3)
global.msg[0] = \E4until suddenly,Delay 11 everything ends.Wait for inputClose MessageClose Message ;
if (hit_try == 4)
{
global.msg[0] = \E4heh heh heh...Wait for input ;
global.msg[1] = \E5that's your fault,Delay 11 isn't it?Wait for inputClose MessageClose Message ;
}
if (hit_try == 5)
global.msg[0] = \E1you can't understand how this feels.Wait for inputClose MessageClose Message ;
if (hit_try == 6)
{
global.msg[0] = \E4knowing that one day,Delay 11 without any warning...Wait for input ;
global.msg[1] = \E9it's all going to be reset.Wait for inputClose MessageClose Message ;
}
if (hit_try == 7)
{
global.flag[20 animation_index] = 1;
global.msg[0] = \E9look.Delay 11 i gave up trying to go back a long time ago.Wait for inputClose MessageClose Message ;
}
if (hit_try == 8)
{
global.flag[20 animation_index] = 1;
global.msg[0] = \E4and getting to the surface doesn't really appeal anymore,Delay 11 either.Wait for inputClose MessageClose Message ;
}
if (hit_try == 9)
{
global.flag[20 animation_index] = 1;
global.msg[0] = \E4cause even if we do...Wait for input ;
global.msg[1] = \E5we'll just end up right back here,Delay 11 without any memory of it,Delay 11 right?Wait for inputClose MessageClose Message ;
}
if (hit_try == 10)
{
global.flag[20 animation_index] = 1;
global.msg[0] = \E1to be blunt...Wait for input ;
global.msg[1] = \E4it makes it kind of hard to give it my all.Wait for inputClose MessageClose Message ;
}
if (hit_try == 11)
{
global.flag[20 animation_index] = 1;
global.msg[0] = \E1... or is that just a poor excuse for being lazy...?Wait for input ;
global.msg[1] = \E3hell if i know.Wait for inputClose MessageClose Message ;
}
if (hit_try == 12)
{
global.flag[20 animation_index] = 1;
global.msg[0] = \E4all i know is...Delay 11 seeing what comes next...Wait for input ;
global.msg[1] = \E9i can't afford not to care anymore.Wait for inputClose MessageClose Message ;
}
if (hit_try == 13)
{
global.flag[20 animation_index] = 0;
with (mypart1)
sweat = 2;
caster_pause(global.batmusic);
drama = 1;
obj_heart.speed = 0;
ossafe_ini_open("undertale.ini");
SS = ini_read_real("Sans", "SS", 0);
MP = ini_read_real("Sans", "MP", 0);
ini_write_real("Sans", "MP", MP + 1);
ossafe_ini_close();
global.msg[0] = \E9ugh...Delay 11 that being said...Wait for input ;
global.msg[1] = \E1you,Delay 11 uh,Delay 11 really like swinging that thing around,Delay 11 huh?Wait for input ;
global.msg[2] = ;
global.msg[3] = ;
global.msg[4] = i know you didn't answer me before,Delay 11 but...Wait for input ;
global.msg[5] = \E4somewhere in there.Delay 11 i can feel it.Wait for input ;
global.msg[6] = \E0there's a glimmer of a good person inside of you.Wait for input ;
global.msg[7] = \E4the memory of someone who once wanted to do the right thing.Wait for input ;
global.msg[8] = \E1someone who,Delay 11 in another time,Delay 11 might have even been...Wait for input ;
global.msg[9] = \E4a friend?Wait for input ;
global.msg[10] = \E3c'mon,Delay 11 buddy.Wait for input ;
global.msg[11] = \E0do you remember me?Wait for input ;
global.msg[12] = \E4please,Delay 11 if you're listening...Wait for input ;
global.msg[13] = \E9let's forget all this,Delay 11 ok?Wait for input ;
global.msg[14] = \E3just lay down your weapon,Delay 11 and...Wait for input ;
global.msg[15] = \E4well,Delay 11 my job will be a lot easier.Wait for inputClose MessageClose Message ;
if (SS > 0)
{
global.msg[0] = \E9ugh...Delay 11 that being said...Wait for input ;
global.msg[1] = \E1you,Delay 11 uh,Delay 11 really like swinging that thing around,Delay 11 huh?Wait for input ;
global.msg[2] = ;
...
|
|
27
|
talked = 1;
|
|
28
|
global.heard = 0;
|
|
29
|
}
|
|
30
|
}
|
|
31
|
if (talked == 1 && instance_exists(OBJ_WRITER))
|
|
32
|
{
|
|
33
|
scr_textskipscr_textskip
if (instance_exists(OBJ_WRITER))
{
if (control_check_pressed(1))
{
with (OBJ_WRITER)
stringpos = string_length(originalstring);
control_clear(1);
}
} ();
|
|
34
|
if (alarm[5] <= 3)
|
|
35
|
alarm[5] = 3; gml_Object_obj_sansb_Alarm_5.gml
with (blconwd)
instance_destroy();
with (blcon)
instance_destroy();
talked = 0;
global.faceemotion = 0;
global.flag[20 animation_index] = 0;
global.mnfight = 2;
|
|
36
|
}
|
|
37
|
if (global.hurtanim[myself] == 1)
|
|
38
|
{
|
|
39
|
shudder = 8;
|
|
40
|
alarm[3] = global.damagetimer; gml_Object_obj_sansb_Alarm_3.gml
if (mypart1.pause != 1)
{
dmgwriter = instance_create((x + (sprite_width / 2)) - 48, y - 50, obj_dmgwriter);
global.damage = 0;
with (dmgwriter)
dmg = 0;
mypart1.pause = 1;
hit_try += 1;
alarm[8]
}
if (sha == 0)
sha = x;
x = sha + shudder;
if (shudder < 0)
shudder = -(shudder + 1);
else
shudder = -shudder;
if (shudder == 0)
{
sha = 0;
global.hurtanim[myself] = 2;
exit;
}
alarm[3] = 2;
|
|
41
|
global.hurtanim[myself] = 3;
|
|
42
|
}
|
|
43
|
if (global.hurtanim[myself] == 2)
|
|
44
|
{
|
|
45
|
with (dmgwriter)
|
|
46
|
alarm[2]
|
|
47
|
global.hurtanim[myself] = 0;
|
|
48
|
mypart1.pause = 0;
|
|
49
|
global.myfight = 0;
|
|
50
|
global.mnfight = 1;
|
|
51
|
}
|
|
52
|
if (global.hurtanim[myself] == 5)
|
|
53
|
{
|
|
54
|
global.damage = 0;
|
|
55
|
instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
|
|
56
|
with (obj_dmgwriter)
|
|
57
|
alarm[2]
|
|
58
|
global.myfight = 0;
|
|
59
|
global.mnfight = 1;
|
|
60
|
global.hurtanim[myself] = 0;
|
|
61
|
}
|
|
62
|
if (global.mnfight == 2 && normalfight == 1)
|
|
63
|
{
|
|
64
|
if (attacked == 0)
|
|
65
|
{
|
|
66
|
global.flag[271 fighting_sans] = 1;
|
|
67
|
if (global.sp < 5)
|
|
68
|
global.sp = 5;
|
|
69
|
global.turntimer = 10;
|
|
70
|
timer_on = 1;
|
|
71
|
if (mercy_death == 0)
|
|
72
|
{
|
|
73
|
if (hit_try < 13)
|
|
74
|
{
|
|
75
|
obj_heart.movement = 2;
|
|
76
|
obj_heart.sprite_index = spr_heartblue;
|
|
77
|
if (part == 0)
|
|
78
|
{
|
|
79
|
with (obj_sansb_body)
|
|
80
|
{
|
|
81
|
a_type = 0;
|
|
82
|
event_user(0);
|
|
83
|
}
|
|
84
|
}
|
|
85
|
if (part == 1)
|
|
86
|
{
|
|
87
|
with (obj_sansb_body)
|
|
88
|
{
|
|
89
|
a_type = 3;
|
|
90
|
event_user(0);
|
|
91
|
}
|
|
92
|
}
|
|
93
|
if (part == 2)
|
|
94
|
{
|
|
95
|
with (obj_sansb_body)
|
|
96
|
{
|
|
97
|
a_type = 23;
|
|
98
|
event_user(0);
|
|
99
|
}
|
|
100
|
}
|
|
101
|
if (part == 3)
|
|
102
|
{
|
|
103
|
with (obj_sansb_body)
|
|
104
|
{
|
|
105
|
a_type = 6;
|
|
106
|
event_user(0);
|
|
107
|
}
|
|
108
|
}
|
|
109
|
if (part == 4)
|
|
110
|
{
|
|
111
|
with (obj_sansb_body)
|
|
112
|
{
|
|
113
|
a_type = 7;
|
|
114
|
event_user(0);
|
|
115
|
}
|
|
116
|
}
|
|
117
|
if (part == 5)
|
|
118
|
{
|
|
119
|
with (obj_sansb_body)
|
|
120
|
{
|
|
121
|
a_type = 8;
|
|
122
|
event_user(0);
|
|
123
|
}
|
|
124
|
}
|
|
125
|
if (part == 6)
|
|
126
|
{
|
|
127
|
with (obj_sansb_body)
|
|
128
|
{
|
|
129
|
a_type = 17;
|
|
130
|
event_user(0);
|
|
131
|
}
|
|
132
|
}
|
|
133
|
if (part == 7)
|
|
134
|
{
|
|
135
|
with (obj_sansb_body)
|
|
136
|
{
|
|
137
|
a_type = 15;
|
|
138
|
event_user(0);
|
|
139
|
}
|
|
140
|
}
|
|
141
|
if (part == 8)
|
|
142
|
{
|
|
143
|
with (obj_sansb_body)
|
|
144
|
{
|
|
145
|
a_type = 18;
|
|
146
|
event_user(0);
|
|
147
|
}
|
|
148
|
}
|
|
149
|
if (part == 9)
|
|
150
|
{
|
|
151
|
with (obj_sansb_body)
|
|
152
|
{
|
|
153
|
a_type = 1;
|
|
154
|
event_user(0);
|
|
155
|
}
|
|
156
|
}
|
|
157
|
if (part == 10)
|
|
158
|
{
|
|
159
|
with (obj_sansb_body)
|
|
160
|
{
|
|
161
|
a_type = 5;
|
|
162
|
event_user(0);
|
|
163
|
}
|
|
164
|
}
|
|
165
|
if (part == 11)
|
|
166
|
{
|
|
167
|
with (obj_sansb_body)
|
|
168
|
{
|
|
169
|
a_type = 21;
|
|
170
|
event_user(0);
|
|
171
|
}
|
|
172
|
}
|
|
173
|
if (part == 12)
|
|
174
|
{
|
|
175
|
with (obj_sansb_body)
|
|
176
|
{
|
|
177
|
a_type = 16;
|
|
178
|
event_user(0);
|
|
179
|
}
|
|
180
|
}
|
|
181
|
if (part >= 13)
|
|
182
|
{
|
|
183
|
b_choose = choose(0, 1, 2, 3);
|
|
184
|
if (b_choose == 0)
|
|
185
|
{
|
|
186
|
with (obj_sansb_body)
|
|
187
|
{
|
|
188
|
a_type = 1;
|
|
189
|
event_user(0);
|
|
190
|
}
|
|
191
|
}
|
|
192
|
if (b_choose == 1)
|
|
193
|
{
|
|
194
|
with (obj_sansb_body)
|
|
195
|
{
|
|
196
|
a_type = 5;
|
|
197
|
event_user(0);
|
|
198
|
}
|
|
199
|
}
|
|
200
|
if (b_choose == 2)
|
|
201
|
{
|
|
202
|
with (obj_sansb_body)
|
|
203
|
{
|
|
204
|
a_type = 21;
|
|
205
|
event_user(0);
|
|
206
|
}
|
|
207
|
}
|
|
208
|
if (b_choose == 3)
|
|
209
|
{
|
|
210
|
with (obj_sansb_body)
|
|
211
|
{
|
|
212
|
a_type = 16;
|
|
213
|
event_user(0);
|
|
214
|
}
|
|
215
|
}
|
|
216
|
}
|
|
217
|
if (global.border == 39)
|
|
218
|
{
|
|
219
|
obj_heart.y = global.idealborder[3] - 70;
|
|
220
|
obj_heart.vspeed = 2;
|
|
221
|
}
|
|
222
|
}
|
|
223
|
if (hit_try >= 14 && hit_try < 23 && nx == 1)
|
|
224
|
{
|
|
225
|
global.turntimer = 20;
|
|
226
|
timer_on = 0;
|
|
227
|
obj_heart.movement = 1;
|
|
228
|
obj_heart.sprite_index = spr_heart;
|
|
229
|
if (part == 0)
|
|
230
|
{
|
|
231
|
with (obj_sansb_body)
|
|
232
|
{
|
|
233
|
a_type = 12;
|
|
234
|
event_user(0);
|
|
235
|
}
|
|
236
|
timer_on = 1;
|
|
237
|
}
|
|
238
|
if (part == 1)
|
|
239
|
{
|
|
240
|
shadow = instance_create(0, 0, obj_sansshadowgen);
|
|
241
|
shadow.level = 1;
|
|
242
|
shadow.shadow_max = 5;
|
|
243
|
}
|
|
244
|
if (part == 2)
|
|
245
|
{
|
|
246
|
with (obj_sansb_body)
|
|
247
|
{
|
|
248
|
smasher = 1;
|
|
249
|
smashlv = 0;
|
|
250
|
smashcon = 0;
|
|
251
|
}
|
|
252
|
}
|
|
253
|
if (part == 3)
|
|
254
|
{
|
|
255
|
with (obj_sansb_body)
|
|
256
|
{
|
|
257
|
smasher = 1;
|
|
258
|
smashlv = 1;
|
|
259
|
smashcon = 0;
|
|
260
|
}
|
|
261
|
}
|
|
262
|
if (part == 4)
|
|
263
|
{
|
|
264
|
with (obj_sansb_body)
|
|
265
|
{
|
|
266
|
a_type = 13;
|
|
267
|
event_user(0);
|
|
268
|
}
|
|
269
|
timer_on = 1;
|
|
270
|
}
|
|
271
|
if (part == 5)
|
|
272
|
{
|
|
273
|
with (obj_sansb_body)
|
|
274
|
{
|
|
275
|
a_type = 22;
|
|
276
|
event_user(0);
|
|
277
|
}
|
|
278
|
timer_on = 1;
|
|
279
|
}
|
|
280
|
if (part == 6)
|
|
281
|
{
|
|
282
|
shadow = instance_create(0, 0, obj_sansshadowgen);
|
|
283
|
with (shadow)
|
|
284
|
alarm[0]
|
|
285
|
shadow.level = 2;
|
|
286
|
shadow.shadow_max = 6;
|
|
287
|
}
|
|
288
|
if (part == 7)
|
|
289
|
{
|
|
290
|
with (obj_sansb_body)
|
|
291
|
{
|
|
292
|
smasher = 1;
|
|
293
|
smashlv = 2;
|
|
294
|
smashcon = 0;
|
|
295
|
}
|
|
296
|
}
|
|
297
|
if (part >= 8)
|
|
298
|
{
|
|
299
|
if (c_choose == 1)
|
|
300
|
{
|
|
301
|
with (obj_sansb_body)
|
|
302
|
{
|
|
303
|
smasher = 1;
|
|
304
|
smashlv = 2;
|
|
305
|
smashcon = 0;
|
|
306
|
}
|
|
307
|
}
|
|
308
|
if (c_choose == 2)
|
|
309
|
{
|
|
310
|
shadow = instance_create(0, 0, obj_sansshadowgen);
|
|
311
|
with (shadow)
|
|
312
|
alarm[0]
|
|
313
|
shadow.level = 2;
|
|
314
|
shadow.shadow_max = 6;
|
|
315
|
}
|
|
316
|
if (c_choose == 3)
|
|
317
|
{
|
|
318
|
with (obj_sansb_body)
|
|
319
|
{
|
|
320
|
a_type = 13;
|
|
321
|
event_user(0);
|
|
322
|
}
|
|
323
|
timer_on = 1;
|
|
324
|
}
|
|
325
|
}
|
|
326
|
}
|
|
327
|
if (hit_try == 23)
|
|
328
|
{
|
|
329
|
global.border = -1;
|
|
330
|
with (obj_sansb_body)
|
|
331
|
lac = 4;
|
|
332
|
with (obj_borderparent)
|
|
333
|
instaborder = 1;
|
|
334
|
timer_on = 0;
|
|
335
|
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2);
|
|
336
|
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8;
|
|
337
|
}
|
|
338
|
if (hit_try == 14 && nx == 0)
|
|
339
|
{
|
|
340
|
nx = 1;
|
|
341
|
mercymod = -10000;
|
|
342
|
caster_resume(global.batmusic);
|
|
343
|
part = -1;
|
|
344
|
shadow = instance_create(0, 0, obj_sansshadowgen);
|
|
345
|
shadow.level = 0;
|
|
346
|
shadow.shadow_max = 5;
|
|
347
|
timer_on = 0;
|
|
348
|
}
|
|
349
|
}
|
|
350
|
else
|
|
351
|
{
|
|
352
|
mercymod = -999999;
|
|
353
|
timer_on = 0;
|
|
354
|
obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8;
|
|
355
|
obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8;
|
|
356
|
obj_heart.sprite_index = spr_heart;
|
|
357
|
obj_heart.movement = 1;
|
|
358
|
with (obj_sansb_body)
|
|
359
|
{
|
|
360
|
a_type = 20;
|
|
361
|
event_user(0);
|
|
362
|
}
|
|
363
|
}
|
|
364
|
turns += 1;
|
|
365
|
part += 1;
|
|
366
|
if (hit_try < 4)
|
|
367
|
{
|
|
368
|
if (mycommand >= 0)
|
|
369
|
global.msg[0] = * Just keep attacking.scr_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_sansb_954") ;
|
|
370
|
}
|
|
371
|
if (hit_try >= 4)
|
|
372
|
{
|
|
373
|
if (mycommand >= 0)
|
|
374
|
global.msg[0] = * Sans's movements grow a little wearier.scr_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_sansb_956") ;
|
|
375
|
}
|
|
376
|
if (hit_try >= 8)
|
|
377
|
{
|
|
378
|
if (mycommand >= 0)
|
|
379
|
global.msg[0] = * Sans's movements seem to be slower.scr_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_sansb_958") ;
|
|
380
|
}
|
|
381
|
if (hit_try >= 13)
|
|
382
|
{
|
|
383
|
if (mycommand >= 0)
|
|
384
|
global.msg[0] = * Felt like a turning point.scr_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_sansb_960") ;
|
|
385
|
}
|
|
386
|
if (global.km > 0)
|
|
387
|
global.msg[0] = * You felt your sins crawling on your back.scr_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_sansb_962") ;
|
|
388
|
if (global.km >= 10)
|
|
389
|
global.msg[0] = * You felt your sins weighing on your neck.scr_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_sansb_963") ;
|
|
390
|
if (global.km >= 20)
|
|
391
|
global.msg[0] = * KARMA coursing through your veins.scr_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_sansb_964") ;
|
|
392
|
if (global.km >= 30)
|
|
393
|
global.msg[0] = * Doomed to death of KARMA!scr_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_sansb_965") ;
|
|
394
|
if (hit_try == 15)
|
|
395
|
{
|
|
396
|
if (mycommand >= 0)
|
|
397
|
global.msg[0] = * The REAL battle finally begins.scr_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_sansb_969") ;
|
|
398
|
}
|
|
399
|
if (hit_try >= 19)
|
|
400
|
{
|
|
401
|
if (mycommand >= 0)
|
|
402
|
global.msg[0] = * Reading this doesn't seem like the best use of time.scr_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_sansb_971") ;
|
|
403
|
}
|
|
404
|
if (hit_try >= 20)
|
|
405
|
{
|
|
406
|
if (mycommand >= 0)
|
|
407
|
global.msg[0] = * Sans is starting to look really tired.scr_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_sansb_973") ;
|
|
408
|
}
|
|
409
|
if (hit_try >= 21)
|
|
410
|
{
|
|
411
|
if (mycommand >= 0)
|
|
412
|
global.msg[0] = * Sans is preparing something.scr_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_sansb_975") ;
|
|
413
|
}
|
|
414
|
if (hit_try >= 22)
|
|
415
|
{
|
|
416
|
if (mycommand >= 0)
|
|
417
|
global.msg[0] = * Sans is getting ready to use his special attack.scr_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_sansb_977") ;
|
|
418
|
}
|
|
419
|
attacked = 1;
|
|
420
|
}
|
|
421
|
if (mercymod == 999999)
|
|
422
|
{
|
|
423
|
obj_heart.speed = 0;
|
|
424
|
global.msg[0] = * Sans is sparing you.scr_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_sansb_985") ;
|
|
425
|
global.turntimer = -1;
|
|
426
|
global.mnfight = 3;
|
|
427
|
}
|
|
428
|
whatiheard = -1;
|
|
429
|
}
|
|
430
|
if (global.myfight == 2)
|
|
431
|
{
|
|
432
|
if (whatiheard != -1)
|
|
433
|
{
|
|
434
|
if (global.heard == 0)
|
|
435
|
{
|
|
436
|
if (whatiheard == 0)
|
|
437
|
{
|
|
438
|
global.msc = 0;
|
|
439
|
if (hit_try > 0)
|
|
440
|
{
|
|
441
|
global.msg[0] = * SANS 1 ATK 1 DEF * The easiest enemy.Delay 11 * Can only deal 1 damage.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_sansb_1013") ;
|
|
442
|
global.msg[1] = * Can't keep dodging forever.Delay 11 * Keep attacking.Wait for input^scr_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_sansb_1014") ;
|
|
443
|
}
|
|
444
|
else
|
|
445
|
{
|
|
446
|
global.msg[0] = * SANS 1 ATK 1 DEF * The easiest enemy.Delay 11 * Can only deal 1 damage.Wait for input^scr_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_sansb_1018") ;
|
|
447
|
}
|
|
448
|
OBJ_WRITER.halt = 3;
|
|
449
|
iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
|
|
450
|
with (iii)
|
|
451
|
halt = 0;
|
|
452
|
whatiheard = 9;
|
|
453
|
}
|
|
454
|
global.heard = 1;
|
|
455
|
}
|
|
456
|
}
|
|
457
|
}
|
|
458
|
if (global.myfight == 4)
|
|
459
|
{
|
|
460
|
if (global.mercyuse == 0)
|
|
461
|
{
|
|
462
|
script_execute(scr_mercystandard);
|
|
463
|
if (mercy < 0)
|
|
464
|
mercy_death = 1;
|
|
465
|
}
|
|
466
|
}
|
|
467
|
if (mercymod == 222 && instance_exists(OBJ_WRITER) == 0)
|
|
468
|
{
|
|
469
|
script_execute(scr_mercystandard);
|
|
470
|
if (mercy < 0)
|
|
471
|
mercy_death = 1;
|
|
472
|
}
|
|
473
|
if (con == 1 && skip == 0)
|
|
474
|
{
|
|
475
|
with (OBJ_WRITER)
|
|
476
|
instance_destroy();
|
|
477
|
global.mnfight = 99;
|
|
478
|
global.myfight = 99;
|
|
479
|
obj_heart.visible = false;
|
|
480
|
global.sp = 5;
|
|
481
|
}
|
|
482
|
if (con == 1 && skip == 1)
|
|
483
|
{
|
|
484
|
global.mnfight = 99;
|
|
485
|
global.myfight = 99;
|
|
486
|
caster_loop(global.batmusic, 0.9, 0.95);
|
|
487
|
global.sp = 5;
|
|
488
|
with (OBJ_WRITER)
|
|
489
|
instance_destroy();
|
|
490
|
with (mypart1)
|
|
491
|
fac = 20;
|
|
492
|
}
|
|
493
|
if (con == 2)
|
|
494
|
{
|
|
495
|
global.msc = 0;
|
|
496
|
global.typer = 107;
|
|
497
|
global.msg[0] = it's a beautiful day outside.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_sansb_1079") ;
|
|
498
|
global.msg[1] = birds are singing,Delay 11 flowers are blooming...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_sansb_1080") ;
|
|
499
|
global.msg[2] = on days like these,Delay 11 kids like you...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_sansb_1081") ;
|
|
500
|
if (intro == 1)
|
|
501
|
{
|
|
502
|
global.msg[0] = it's a beautiful day outside.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_sansb_1084") ;
|
|
503
|
global.msg[1] = birds are singing,Delay 11Close 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_sansb_1085") ;
|
|
504
|
}
|
|
505
|
if (intro >= 2)
|
|
506
|
global.msg[0] = ready?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_sansb_1089") ;
|
|
507
|
con = 3;
|
|
508
|
scr_blcon_xscr_blcon_x
scr_blcon(argument0, argument1, 0); (x + 120, y);
|
|
509
|
}
|
|
510
|
if (con == 3 && instance_exists(OBJ_WRITER) == 0)
|
|
511
|
{
|
|
512
|
con = 5;
|
|
513
|
alarm[4] = 10; gml_Object_obj_sansb_Alarm_4.gml
con += 1;
|
|
514
|
if (intro >= 1)
|
|
515
|
alarm[4] = 2; gml_Object_obj_sansb_Alarm_4.gml
con += 1;
|
|
516
|
}
|
|
517
|
if (con == 6)
|
|
518
|
{
|
|
519
|
caster_stop(birdnoise);
|
|
520
|
snd_play(snd_noise);
|
|
521
|
blk = scr_markerscr_marker
thismarker = instance_create(argument0, argument1, obj_npc_marker);
thismarker.visible = true;
thismarker.image_speed = 0;
thismarker.sprite_index = argument2;
return thismarker; (-10, -10, spr_pixblk);
|
|
522
|
blk.image_xscale = 999;
|
|
523
|
blk.image_yscale = 999;
|
|
524
|
blk.depth = -9999;
|
|
525
|
global.bmenuno = 999;
|
|
526
|
with (obj_borderparent)
|
|
527
|
instaborder = 1;
|
|
528
|
global.border = -1;
|
|
529
|
global.idealborder[0] = 240;
|
|
530
|
global.idealborder[1] = 400;
|
|
531
|
global.idealborder[2] = global.idealborder[3] - 160;
|
|
532
|
obj_heart.x = global.idealborder[0] + 75;
|
|
533
|
obj_heart.y = global.idealborder[2] + 75;
|
|
534
|
con = 7;
|
|
535
|
alarm[4] = 8; gml_Object_obj_sansb_Alarm_4.gml
con += 1;
|
|
536
|
if (intro >= 1)
|
|
537
|
alarm[4] = 2; gml_Object_obj_sansb_Alarm_4.gml
con += 1;
|
|
538
|
}
|
|
539
|
if (con == 8)
|
|
540
|
{
|
|
541
|
global.faceemotion = 5;
|
|
542
|
global.flag[271 fighting_sans] = 1;
|
|
543
|
obj_heart.visible = true;
|
|
544
|
with (blk)
|
|
545
|
instance_destroy();
|
|
546
|
snd_play(snd_noise);
|
|
547
|
normalfight = 0;
|
|
548
|
global.myfight = -1;
|
|
549
|
global.mnfight = 2;
|
|
550
|
con = 9;
|
|
551
|
obj_borderparent.visible = true;
|
|
552
|
alarm[4] = 20; gml_Object_obj_sansb_Alarm_4.gml
con += 1;
|
|
553
|
if (intro >= 1)
|
|
554
|
{
|
|
555
|
con = 11;
|
|
556
|
alarm[4] = -1; gml_Object_obj_sansb_Alarm_4.gml
con += 1;
|
|
557
|
}
|
|
558
|
}
|
|
559
|
if (con == 10)
|
|
560
|
{
|
|
561
|
global.typer = 108;
|
|
562
|
global.msg[0] = Should be burning in hell.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_sansb_1152") ;
|
|
563
|
con = 11;
|
|
564
|
scr_blcon_xscr_blcon_x
scr_blcon(argument0, argument1, 0); (x + 120, y - 30);
|
|
565
|
blcon.sprite_index = spr_blconsm;
|
|
566
|
}
|
|
567
|
if (con == 11 && instance_exists(OBJ_WRITER) == 0)
|
|
568
|
{
|
|
569
|
with (obj_sansb_body)
|
|
570
|
fac = 1;
|
|
571
|
con = 12;
|
|
572
|
}
|
|
573
|
if (p_cut == 1)
|
|
574
|
{
|
|
575
|
caster_stop(cutsfx);
|
|
576
|
caster_play(cutsfx, 0.8, 1.4);
|
|
577
|
snd_stop(snd_arrow);
|
|
578
|
snd_play(snd_arrow);
|
|
579
|
p_cut = 0;
|
|
580
|
}
|
|
581
|
if (p_power == 1)
|
|
582
|
{
|
|
583
|
dopower = 0;
|
|
584
|
if (global.osflavor == 2 && hit_try >= 23)
|
|
585
|
dopower = 1;
|
|
586
|
if (dopower == 0)
|
|
587
|
{
|
|
588
|
caster_stop(beam_up_sfx);
|
|
589
|
caster_play(beam_up_sfx, 0.8, 1.2);
|
|
590
|
}
|
|
591
|
p_power = 0;
|
|
592
|
}
|
|
593
|
if (p_beam == 1)
|
|
594
|
{
|
|
595
|
caster_stop(beamsfx);
|
|
596
|
caster_play(beamsfx, 0.8, 1.2);
|
|
597
|
if (global.osflavor != 2)
|
|
598
|
caster_stop(beamsfx_a);
|
|
599
|
caster_play(beamsfx_a, 0.6, 1.2);
|
|
600
|
p_beam = 0;
|
|
601
|
}
|
|
602
|
if (timer_on == 1)
|
|
603
|
{
|
|
604
|
if (global.turntimer <= 0)
|
|
605
|
{
|
|
606
|
if (hit_try >= 15 && hit_try < 23)
|
|
607
|
instance_create(0, 0, obj_menubone_maker);
|
|
608
|
global.mnfight = 3;
|
|
609
|
global.movement = 0;
|
|
610
|
timer_on = 0;
|
|
611
|
with (obj_bonestab)
|
|
612
|
instance_destroy();
|
|
613
|
with (obj_sans_shaker)
|
|
614
|
instance_destroy();
|
|
615
|
with (obj_bonewall_normal)
|
|
616
|
instance_destroy();
|
|
617
|
with (obj_bonewall)
|
|
618
|
instance_destroy();
|
|
619
|
with (obj_boneplat)
|
|
620
|
instance_destroy();
|
|
621
|
with (obj_sans_bonebul)
|
|
622
|
instance_destroy();
|
|
623
|
with (obj_gasterblaster)
|
|
624
|
instance_destroy();
|
|
625
|
with (obj_boneloop_v)
|
|
626
|
instance_destroy();
|
|
627
|
with (obj_gasterbl_gen)
|
|
628
|
instance_destroy();
|
|
629
|
with (obj_3platgen)
|
|
630
|
instance_destroy();
|
|
631
|
}
|
|
632
|
}
|
|
633
|
if (drama == 1)
|
|
634
|
{
|
|
635
|
if (instance_exists(OBJ_WRITER))
|
|
636
|
{
|
|
637
|
if (OBJ_WRITER.stringno == 2)
|
|
638
|
{
|
|
639
|
d_music = caster_load("music/chokedup.ogg");
|
|
640
|
caster_loop(d_music, 0.8, 0.9);
|
|
641
|
drama = 2;
|
|
642
|
}
|
|
643
|
}
|
|
644
|
}
|
|
645
|
if (global.debug == 1 && keyboard_check_pressed(ord("Q")))
|
|
646
|
{
|
|
647
|
if (hit_try < 12)
|
|
648
|
{
|
|
649
|
hit_try = 12;
|
|
650
|
hit_reached = 11;
|
|
651
|
}
|
|
652
|
}
|
|
653
|
if (global.debug == 1 && keyboard_check_pressed(ord("E")))
|
|
654
|
{
|
|
655
|
if (hit_try < 22)
|
|
656
|
{
|
|
657
|
hit_try = 22;
|
|
658
|
hit_reached = 21;
|
|
659
|
}
|
|
660
|
}
|