|
1
|
inv_check = 0;
|
|
2
|
inv_timer += 1;
|
|
3
|
if (global.inv >= 45 && inv_timer >= 5)
|
|
4
|
{
|
|
5
|
inv_check = 1;
|
|
6
|
inv_timer = 0;
|
|
7
|
}
|
|
8
|
if (global.inv >= 60 && inv_timer >= 4)
|
|
9
|
{
|
|
10
|
inv_check = 1;
|
|
11
|
inv_timer = 0;
|
|
12
|
}
|
|
13
|
if (global.inv >= 75 && inv_timer >= 3)
|
|
14
|
{
|
|
15
|
inv_check = 1;
|
|
16
|
inv_timer = 0;
|
|
17
|
}
|
|
18
|
if (lac >= 4 && global.hp <= 10 && inv_timer >= 2)
|
|
19
|
{
|
|
20
|
inv_check = 1;
|
|
21
|
inv_timer = 0;
|
|
22
|
}
|
|
23
|
if (inv_check == 0)
|
|
24
|
damageturn = 0;
|
|
25
|
y = global.idealborder[2] - 130;
|
|
26
|
if (bounce == 3)
|
|
27
|
{
|
|
28
|
siner += 1;
|
|
29
|
yoff = sin(siner / 18) * 2;
|
|
30
|
}
|
|
31
|
if (bounce == 2)
|
|
32
|
{
|
|
33
|
siner += 1;
|
|
34
|
yoff = sin(siner / 15) * 4;
|
|
35
|
}
|
|
36
|
if (bounce == 1)
|
|
37
|
{
|
|
38
|
siner += 1;
|
|
39
|
yoff = sin(siner / 3);
|
|
40
|
xoff = cos(siner / 6);
|
|
41
|
}
|
|
42
|
if (bounce == 0)
|
|
43
|
{
|
|
44
|
siner = 0;
|
|
45
|
yoff = 0;
|
|
46
|
xoff = 0;
|
|
47
|
}
|
|
48
|
if (deadtest == 0)
|
|
49
|
{
|
|
50
|
draw_sprite_ext(spr_sansb_legs, 0, x, y + 90, 2, 2, 0, c_white, 1);
|
|
51
|
if (movearm == 0)
|
|
52
|
draw_sprite_ext(spr_sansb_torso, global.flag[20 animation_index], x + xoff, y + 42 + (yoff / 1.5), 2, 2, 0, c_white, 1);
|
|
53
|
if (movearm == 1)
|
|
54
|
{
|
|
55
|
if (arm_i >= 11)
|
|
56
|
arm_i = 11;
|
|
57
|
draw_sprite_ext(spr_sansb_rightstrike, floor(arm_i / 2), x, y + 42, 2, 2, 0, c_white, 1);
|
|
58
|
if (arm_i == 2)
|
|
59
|
headx = -4;
|
|
60
|
if (arm_i == 4)
|
|
61
|
headx = -8;
|
|
62
|
if (arm_i == 6)
|
|
63
|
headx = 10;
|
|
64
|
if (arm_i == 8)
|
|
65
|
headx = 4;
|
|
66
|
if (arm_i < 11)
|
|
67
|
arm_i += aspeed;
|
|
68
|
else
|
|
69
|
arm_i = 11;
|
|
70
|
}
|
|
71
|
if (movearm == 2)
|
|
72
|
{
|
|
73
|
if (arm_i >= 11)
|
|
74
|
arm_i = 11;
|
|
75
|
draw_sprite_ext(spr_sansb_handup, floor(arm_i / 2), x, y + 42, 2, 2, 0, c_white, 1);
|
|
76
|
if (arm_i == 0)
|
|
77
|
heady = 4;
|
|
78
|
if (arm_i == 2)
|
|
79
|
heady = 10;
|
|
80
|
if (arm_i == 4)
|
|
81
|
heady = 4;
|
|
82
|
if (arm_i == 6)
|
|
83
|
heady = -4;
|
|
84
|
if (arm_i == 8)
|
|
85
|
heady = 0;
|
|
86
|
if (arm_i < 11)
|
|
87
|
arm_i += aspeed;
|
|
88
|
else
|
|
89
|
arm_i = 11;
|
|
90
|
}
|
|
91
|
if (movearm == 3)
|
|
92
|
{
|
|
93
|
if (arm_i >= 9)
|
|
94
|
arm_i = 9;
|
|
95
|
draw_sprite_ext(spr_sansb_handdown, floor(arm_i / 2), x, y + 42, 2, 2, 0, c_white, 1);
|
|
96
|
if (arm_i == 0)
|
|
97
|
heady = 0;
|
|
98
|
if (arm_i == 2)
|
|
99
|
heady = 0;
|
|
100
|
if (arm_i == 4)
|
|
101
|
heady = 6;
|
|
102
|
if (arm_i == 6)
|
|
103
|
heady = 10;
|
|
104
|
if (arm_i < 9)
|
|
105
|
arm_i += aspeed;
|
|
106
|
else
|
|
107
|
arm_i = 9;
|
|
108
|
}
|
|
109
|
if (movearm == 4)
|
|
110
|
{
|
|
111
|
if (arm_i >= 10)
|
|
112
|
arm_i = 10;
|
|
113
|
draw_sprite_ext(spr_sansb_rightstrike, floor(5 - (arm_i / 2)), x, y + 42, 2, 2, 0, c_white, 1);
|
|
114
|
if (arm_i >= 10)
|
|
115
|
headx = 0;
|
|
116
|
if (arm_i == 8)
|
|
117
|
headx = -4;
|
|
118
|
if (arm_i == 6)
|
|
119
|
headx = -8;
|
|
120
|
if (arm_i == 4)
|
|
121
|
headx = 10;
|
|
122
|
if (arm_i == 2)
|
|
123
|
headx = 4;
|
|
124
|
if (arm_i < 10)
|
|
125
|
arm_i += aspeed;
|
|
126
|
else
|
|
127
|
arm_i = 10;
|
|
128
|
}
|
|
129
|
if (facetype == 0)
|
|
130
|
draw_sprite_ext(spr_sansb_face, global.faceemotion, x + xoff + headx, y + yoff + heady, 2, 2, 0, c_white, 1);
|
|
131
|
if (sweat == 1)
|
|
132
|
draw_sprite_ext(spr_sansb_face_sweat, 0, x + xoff + headx, y + yoff + heady, 2, 2, 0, c_white, 1);
|
|
133
|
if (sweat == 2)
|
|
134
|
draw_sprite_ext(spr_sansb_face_sweat, 1, x + xoff + headx, y + yoff + heady, 2, 2, 0, c_white, 1);
|
|
135
|
if (sweat == 3)
|
|
136
|
draw_sprite_ext(spr_sansb_face_sweat, 2, x + xoff + headx, y + yoff + heady, 2, 2, 0, c_white, 1);
|
|
137
|
if (facetype == 1)
|
|
138
|
{
|
|
139
|
f_i += 1;
|
|
140
|
draw_sprite_ext(spr_sansb_blueeye, floor(f_i / 2), x + xoff + headx, y + yoff + heady, 2, 2, 0, c_white, 1);
|
|
141
|
}
|
|
142
|
}
|
|
143
|
if (deadtest == 1)
|
|
144
|
{
|
|
145
|
draw_sprite_ext(spr_sansb_legs_sit, 0, x + legx, y + 100 + legy, 2, 2, 0, c_white, 1);
|
|
146
|
draw_sprite_ext(spr_sansb_torso, global.flag[20 animation_index], x + xoff, y + 62 + (yoff / 1.5), 2, 2, 0, c_white, 1);
|
|
147
|
draw_sprite_ext(spr_sansb_face, global.faceemotion, x + xoff, y + yoff + 30, 2, 2, 0, c_white, 1);
|
|
148
|
}
|
|
149
|
if (drawborder == 1)
|
|
150
|
{
|
|
151
|
draw_set_color(c_white);
|
|
152
|
for (i = 0; i < 5; i += 1)
|
|
153
|
draw_rectangle(global.idealborder[0] + i, global.idealborder[2] + i, global.idealborder[1] + i, global.idealborder[3] + i, true);
|
|
154
|
}
|
|
155
|
if (fac == 1)
|
|
156
|
{
|
|
157
|
intensity = 25;
|
|
158
|
global.idealborder[0] = 240;
|
|
159
|
global.idealborder[1] = 400;
|
|
160
|
global.idealborder[2] = global.idealborder[3] - 160;
|
|
161
|
bounce = 0;
|
|
162
|
facetype = 1;
|
|
163
|
movearm = 3;
|
|
164
|
arm_i = 0;
|
|
165
|
heady = 0;
|
|
166
|
headx = 0;
|
|
167
|
with (obj_sansb)
|
|
168
|
p_cut = 1;
|
|
169
|
fac = 2;
|
|
170
|
alarm[7] = 7; gml_Object_obj_sansb_body_Alarm_7.gml
fac += 1;
|
|
171
|
}
|
|
172
|
if (fac == 3)
|
|
173
|
{
|
|
174
|
event_user(10);
|
|
175
|
fac = 4;
|
|
176
|
alarm[7] = 14; gml_Object_obj_sansb_body_Alarm_7.gml
fac += 1;
|
|
177
|
}
|
|
178
|
if (fac == 5)
|
|
179
|
{
|
|
180
|
fac = 6;
|
|
181
|
alarm[7] = 10; gml_Object_obj_sansb_body_Alarm_7.gml
fac += 1;
|
|
182
|
movearm = 2;
|
|
183
|
arm_i = 0;
|
|
184
|
heady = 0;
|
|
185
|
headx = 0;
|
|
186
|
facetype = 0;
|
|
187
|
bs = instance_create(0, 0, obj_bonestab);
|
|
188
|
bs.dir = 0;
|
|
189
|
bs.height = 55;
|
|
190
|
bs.warning = 6;
|
|
191
|
bs.retain = 30;
|
|
192
|
for (i = 0; i < 20; i += 1)
|
|
193
|
{
|
|
194
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (135 - (sin(i / 3) * 28), 12, 40 + (i * 2), 2);
|
|
195
|
bone.siner = i * 3;
|
|
196
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (90 - (sin(i / 3) * 28), 12, 40 + (i * 2), 0);
|
|
197
|
bone.siner = i * 3;
|
|
198
|
}
|
|
199
|
}
|
|
200
|
if (fac == 7)
|
|
201
|
{
|
|
202
|
intensity = 15;
|
|
203
|
fac = 8;
|
|
204
|
alarm[7] = 10; gml_Object_obj_sansb_body_Alarm_7.gml
fac += 1;
|
|
205
|
}
|
|
206
|
if (fac == 9)
|
|
207
|
{
|
|
208
|
movearm = 1;
|
|
209
|
arm_i = 0;
|
|
210
|
heady = 0;
|
|
211
|
headx = 0;
|
|
212
|
fac = 9.1;
|
|
213
|
alarm[7] = 8; gml_Object_obj_sansb_body_Alarm_7.gml
fac += 1;
|
|
214
|
obj_heart.movement = 1;
|
|
215
|
obj_heart.speed = 0;
|
|
216
|
obj_heart.sprite_index = spr_heart_battle_pl;
|
|
217
|
snd_play(snd_bell);
|
|
218
|
}
|
|
219
|
if (fac == 10.1)
|
|
220
|
{
|
|
221
|
with (obj_sansb)
|
|
222
|
p_cut = 1;
|
|
223
|
fac = 10;
|
|
224
|
alarm[7] = 37; gml_Object_obj_sansb_body_Alarm_7.gml
fac += 1;
|
|
225
|
}
|
|
226
|
if (fac == 11)
|
|
227
|
{
|
|
228
|
movearm = 0;
|
|
229
|
arm_i = 0;
|
|
230
|
heady = 0;
|
|
231
|
headx = 0;
|
|
232
|
gb = instance_create(0, 0, obj_gasterblaster);
|
|
233
|
gb.idealrot = 90;
|
|
234
|
gb.idealx = global.idealborder[0] - 50;
|
|
235
|
gb.idealy = global.idealborder[2] + 20;
|
|
236
|
gb.image_xscale = 2;
|
|
237
|
gb.image_yscale = 2;
|
|
238
|
gb = instance_create(640, 480, obj_gasterblaster);
|
|
239
|
gb.idealrot = -90;
|
|
240
|
gb.idealx = global.idealborder[1] + 50;
|
|
241
|
gb.idealy = global.idealborder[3] - 20;
|
|
242
|
gb.image_xscale = 2;
|
|
243
|
gb.image_yscale = 2;
|
|
244
|
gb = instance_create(0, 0, obj_gasterblaster);
|
|
245
|
gb.idealrot = 0;
|
|
246
|
gb.idealx = global.idealborder[0] + 20;
|
|
247
|
gb.idealy = global.idealborder[2] - 60;
|
|
248
|
gb.image_xscale = 2;
|
|
249
|
gb.image_yscale = 2;
|
|
250
|
gb = instance_create(640, 480, obj_gasterblaster);
|
|
251
|
gb.idealrot = 180;
|
|
252
|
gb.idealx = global.idealborder[1] - 20;
|
|
253
|
gb.idealy = global.idealborder[3] + 60;
|
|
254
|
gb.image_xscale = 2;
|
|
255
|
gb.image_yscale = 2;
|
|
256
|
obj_gasterblaster.pause = 10;
|
|
257
|
obj_gasterblaster.terminal = 8;
|
|
258
|
fac = 12;
|
|
259
|
alarm[7] = 25; gml_Object_obj_sansb_body_Alarm_7.gml
fac += 1;
|
|
260
|
}
|
|
261
|
if (fac == 13)
|
|
262
|
{
|
|
263
|
movearm = 0;
|
|
264
|
arm_i = 0;
|
|
265
|
heady = 0;
|
|
266
|
headx = 0;
|
|
267
|
gb = instance_create(0, 0, obj_gasterblaster);
|
|
268
|
gb.idealrot = 45;
|
|
269
|
gb.idealx = global.idealborder[0] - 50;
|
|
270
|
gb.idealy = global.idealborder[2] - 50;
|
|
271
|
gb.image_xscale = 2;
|
|
272
|
gb.image_yscale = 2;
|
|
273
|
gb = instance_create(640, 0, obj_gasterblaster);
|
|
274
|
gb.idealrot = -45;
|
|
275
|
gb.idealx = global.idealborder[1] + 50;
|
|
276
|
gb.idealy = global.idealborder[2] - 50;
|
|
277
|
gb.image_xscale = 2;
|
|
278
|
gb.image_yscale = 2;
|
|
279
|
gb = instance_create(0, 480, obj_gasterblaster);
|
|
280
|
gb.idealrot = 135;
|
|
281
|
gb.idealx = global.idealborder[0] - 50;
|
|
282
|
gb.idealy = global.idealborder[3] + 50;
|
|
283
|
gb.image_xscale = 2;
|
|
284
|
gb.image_yscale = 2;
|
|
285
|
gb = instance_create(640, 480, obj_gasterblaster);
|
|
286
|
gb.idealrot = -135;
|
|
287
|
gb.idealx = global.idealborder[1] + 50;
|
|
288
|
gb.idealy = global.idealborder[3] + 50;
|
|
289
|
gb.image_xscale = 2;
|
|
290
|
gb.image_yscale = 2;
|
|
291
|
obj_gasterblaster.pause = 10;
|
|
292
|
obj_gasterblaster.terminal = 8;
|
|
293
|
fac = 14;
|
|
294
|
alarm[7] = 25; gml_Object_obj_sansb_body_Alarm_7.gml
fac += 1;
|
|
295
|
}
|
|
296
|
if (fac == 15)
|
|
297
|
{
|
|
298
|
movearm = 0;
|
|
299
|
arm_i = 0;
|
|
300
|
heady = 0;
|
|
301
|
headx = 0;
|
|
302
|
gb = instance_create(0, 0, obj_gasterblaster);
|
|
303
|
gb.idealrot = 90;
|
|
304
|
gb.idealx = global.idealborder[0] - 50;
|
|
305
|
gb.idealy = global.idealborder[2] + 20;
|
|
306
|
gb.image_xscale = 2;
|
|
307
|
gb.image_yscale = 2;
|
|
308
|
gb = instance_create(640, 480, obj_gasterblaster);
|
|
309
|
gb.idealrot = -90;
|
|
310
|
gb.idealx = global.idealborder[1] + 50;
|
|
311
|
gb.idealy = global.idealborder[3] - 20;
|
|
312
|
gb.image_xscale = 2;
|
|
313
|
gb.image_yscale = 2;
|
|
314
|
gb = instance_create(0, 0, obj_gasterblaster);
|
|
315
|
gb.idealrot = 0;
|
|
316
|
gb.idealx = global.idealborder[0] + 20;
|
|
317
|
gb.idealy = global.idealborder[2] - 60;
|
|
318
|
gb.image_xscale = 2;
|
|
319
|
gb.image_yscale = 2;
|
|
320
|
gb = instance_create(640, 480, obj_gasterblaster);
|
|
321
|
gb.idealrot = 180;
|
|
322
|
gb.idealx = global.idealborder[1] - 20;
|
|
323
|
gb.idealy = global.idealborder[3] + 60;
|
|
324
|
gb.image_xscale = 2;
|
|
325
|
gb.image_yscale = 2;
|
|
326
|
obj_gasterblaster.pause = 10;
|
|
327
|
obj_gasterblaster.terminal = 8;
|
|
328
|
fac = 16;
|
|
329
|
alarm[7] = 20; gml_Object_obj_sansb_body_Alarm_7.gml
fac += 1;
|
|
330
|
}
|
|
331
|
if (fac == 17)
|
|
332
|
{
|
|
333
|
gb = instance_create(0, 240, obj_gasterblaster);
|
|
334
|
gb.idealrot = 90;
|
|
335
|
gb.idealx = global.idealborder[0] - 100;
|
|
336
|
gb.idealy = global.idealborder[2] + 80;
|
|
337
|
gb.image_xscale = 3;
|
|
338
|
gb.image_yscale = 3;
|
|
339
|
gb.pause = 20;
|
|
340
|
gb.terminal = 15;
|
|
341
|
gb = instance_create(640, 240, obj_gasterblaster);
|
|
342
|
gb.idealrot = -90;
|
|
343
|
gb.idealx = global.idealborder[1] + 100;
|
|
344
|
gb.idealy = global.idealborder[2] + 80;
|
|
345
|
gb.image_xscale = 3;
|
|
346
|
gb.image_yscale = 3;
|
|
347
|
gb.pause = 20;
|
|
348
|
gb.terminal = 15;
|
|
349
|
fac = 18;
|
|
350
|
alarm[7] = 90; gml_Object_obj_sansb_body_Alarm_7.gml
fac += 1;
|
|
351
|
}
|
|
352
|
if (fac == 19)
|
|
353
|
{
|
|
354
|
ossafe_ini_open("undertale.ini");
|
|
355
|
intr = ini_read_real("Sans", "Intro", 0);
|
|
356
|
ini_write_real("Sans", "Intro", intr + 1);
|
|
357
|
ossafe_ini_close();
|
|
358
|
ossafe_savedata_save();
|
|
359
|
global.faceemotion = 0;
|
|
360
|
global.flag[20 animation_index] = 0;
|
|
361
|
global.msc = 0;
|
|
362
|
global.typer = 109;
|
|
363
|
global.msg[0] = \E1huh.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_body_1446") ;
|
|
364
|
global.msg[1] = \M1always wondered why people never use their strongest attack first.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_body_1447") ;
|
|
365
|
if (intr == 1)
|
|
366
|
{
|
|
367
|
global.msg[0] = \E3anyway,Delay 11 as i was saying,Delay 11 it's a nice day 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_sansb_body_1450") ;
|
|
368
|
global.msg[1] = \M1why not relax and take a load off?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_body_1451") ;
|
|
369
|
}
|
|
370
|
if (intr >= 2)
|
|
371
|
global.msg[0] = here we 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_sansb_body_1455") ;
|
|
372
|
scr_blcon_xscr_blcon_x
scr_blcon(argument0, argument1, 0); (obj_sansb.x + 120, y - 10);
|
|
373
|
fac = 20;
|
|
374
|
}
|
|
375
|
if (fac == 20 && instance_exists(OBJ_WRITER) == 0)
|
|
376
|
{
|
|
377
|
global.faceemotion = 0;
|
|
378
|
global.flag[20 animation_index] = 0;
|
|
379
|
bounce = 1;
|
|
380
|
with (obj_borderparent)
|
|
381
|
instaborder = 0;
|
|
382
|
global.msg[0] = * You feel like you're going to have a bad 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_body_1468") ;
|
|
383
|
global.border = 0;
|
|
384
|
fac = 21;
|
|
385
|
alarm[7] = 5; gml_Object_obj_sansb_body_Alarm_7.gml
fac += 1;
|
|
386
|
}
|
|
387
|
if (fac == 22)
|
|
388
|
{
|
|
389
|
global.bmenuno = 0;
|
|
390
|
with (obj_sansb)
|
|
391
|
normalfight = 1;
|
|
392
|
caster_loop(global.batmusic, 0.9, 1);
|
|
393
|
global.mnfight = 3;
|
|
394
|
global.myfight = 0;
|
|
395
|
fac = -1;
|
|
396
|
}
|
|
397
|
if (smasher == 1)
|
|
398
|
{
|
|
399
|
if (smashcon == 0)
|
|
400
|
{
|
|
401
|
obj_heart.x = global.idealborder[0] + (floor(global.idealborder[1] - global.idealborder[0]) / 2);
|
|
402
|
obj_heart.y = global.idealborder[2] + (floor(global.idealborder[3] - global.idealborder[2]) / 2);
|
|
403
|
obj_heart.speed = 0;
|
|
404
|
obj_heart.movement = 1;
|
|
405
|
obj_heart.sprite_index = spr_heart_battle_pl;
|
|
406
|
smashdir = choose(0, 1, 2, 3);
|
|
407
|
repeat (10)
|
|
408
|
{
|
|
409
|
if (prevsmash == smashdir)
|
|
410
|
smashdir = choose(0, 1, 2, 3);
|
|
411
|
}
|
|
412
|
if (smashdir == prevsmash)
|
|
413
|
{
|
|
414
|
smashdir += 1;
|
|
415
|
if (smashdir > 3)
|
|
416
|
smashdir = 0;
|
|
417
|
}
|
|
418
|
prevsmash = smashdir;
|
|
419
|
smashcon = 1;
|
|
420
|
aspeed = 1;
|
|
421
|
if (smashlv == 2)
|
|
422
|
aspeed = 2;
|
|
423
|
if (smashdir == 0)
|
|
424
|
{
|
|
425
|
movearm = 3;
|
|
426
|
arm_i = 0;
|
|
427
|
heady = 0;
|
|
428
|
headx = 0;
|
|
429
|
}
|
|
430
|
if (smashdir == 1)
|
|
431
|
{
|
|
432
|
movearm = 1;
|
|
433
|
arm_i = 0;
|
|
434
|
heady = 0;
|
|
435
|
headx = 0;
|
|
436
|
}
|
|
437
|
if (smashdir == 2)
|
|
438
|
{
|
|
439
|
movearm = 2;
|
|
440
|
arm_i = 0;
|
|
441
|
heady = 0;
|
|
442
|
headx = 0;
|
|
443
|
}
|
|
444
|
if (smashdir == 3)
|
|
445
|
{
|
|
446
|
movearm = 4;
|
|
447
|
arm_i = 0;
|
|
448
|
heady = 0;
|
|
449
|
headx = 0;
|
|
450
|
}
|
|
451
|
alarm[8] = 8; gml_Object_obj_sansb_body_Alarm_8.gml
smashcon += 1;
|
|
452
|
if (smashlv == 2)
|
|
453
|
alarm[8] = 4; gml_Object_obj_sansb_body_Alarm_8.gml
smashcon += 1;
|
|
454
|
}
|
|
455
|
if (smashcon == 2)
|
|
456
|
{
|
|
457
|
xtimer = 0;
|
|
458
|
intensity = 16;
|
|
459
|
if (smashdir == 0)
|
|
460
|
event_user(10);
|
|
461
|
if (smashdir == 1)
|
|
462
|
event_user(11);
|
|
463
|
if (smashdir == 2)
|
|
464
|
event_user(12);
|
|
465
|
if (smashdir == 3)
|
|
466
|
event_user(13);
|
|
467
|
smashcon = 3;
|
|
468
|
}
|
|
469
|
if (smashcon == 3)
|
|
470
|
{
|
|
471
|
xtimer += 1;
|
|
472
|
if (obj_heart.speed < intensity && xtimer >= 5)
|
|
473
|
{
|
|
474
|
xtimer = 0;
|
|
475
|
bs = instance_create(0, 0, obj_bonestab);
|
|
476
|
bs.warning = 12;
|
|
477
|
bs.height = 25;
|
|
478
|
bs.retain = 4;
|
|
479
|
bs.dir = smashdir;
|
|
480
|
smashcon = 4;
|
|
481
|
alarm[8] = 18; gml_Object_obj_sansb_body_Alarm_8.gml
smashcon += 1;
|
|
482
|
if (smashlv == 1)
|
|
483
|
alarm[8] = 12; gml_Object_obj_sansb_body_Alarm_8.gml
smashcon += 1;
|
|
484
|
if (smashlv == 1)
|
|
485
|
bs.warning = 9;
|
|
486
|
if (smashlv == 1)
|
|
487
|
bs.retain = -2;
|
|
488
|
if (smashlv == 2)
|
|
489
|
alarm[8] = 7; gml_Object_obj_sansb_body_Alarm_8.gml
smashcon += 1;
|
|
490
|
if (smashlv == 2)
|
|
491
|
bs.retain = -7;
|
|
492
|
if (smashlv == 2)
|
|
493
|
bs.height = 40;
|
|
494
|
if (smashlv == 2)
|
|
495
|
warning = 11;
|
|
496
|
}
|
|
497
|
}
|
|
498
|
if (smashcon == 5)
|
|
499
|
{
|
|
500
|
if (smashlv == 2)
|
|
501
|
aspeed = 2;
|
|
502
|
smashdir = choose(0, 1, 2, 3);
|
|
503
|
smashcon = 1;
|
|
504
|
if (smashdir == 0)
|
|
505
|
{
|
|
506
|
movearm = 3;
|
|
507
|
arm_i = 0;
|
|
508
|
heady = 0;
|
|
509
|
headx = 0;
|
|
510
|
}
|
|
511
|
if (smashdir == 1)
|
|
512
|
{
|
|
513
|
movearm = 1;
|
|
514
|
arm_i = 0;
|
|
515
|
heady = 0;
|
|
516
|
headx = 0;
|
|
517
|
}
|
|
518
|
if (smashdir == 2)
|
|
519
|
{
|
|
520
|
movearm = 2;
|
|
521
|
arm_i = 0;
|
|
522
|
heady = 0;
|
|
523
|
headx = 0;
|
|
524
|
}
|
|
525
|
if (smashdir == 3)
|
|
526
|
{
|
|
527
|
movearm = 4;
|
|
528
|
arm_i = 0;
|
|
529
|
heady = 0;
|
|
530
|
headx = 0;
|
|
531
|
}
|
|
532
|
smashcon = 1;
|
|
533
|
smashamt += 1;
|
|
534
|
alarm[8] = 8; gml_Object_obj_sansb_body_Alarm_8.gml
smashcon += 1;
|
|
535
|
if (smashlv == 2)
|
|
536
|
alarm[8] = 7; gml_Object_obj_sansb_body_Alarm_8.gml
smashcon += 1;
|
|
537
|
if (smashamt > smashmax)
|
|
538
|
{
|
|
539
|
if (!instance_exists(obj_menubone_maker))
|
|
540
|
instance_create(0, 0, obj_menubone_maker);
|
|
541
|
smashcon = -1;
|
|
542
|
smashamt = 0;
|
|
543
|
smasher = 0;
|
|
544
|
with (obj_heart)
|
|
545
|
movement = 1;
|
|
546
|
with (obj_heart)
|
|
547
|
sprite_index = spr_heart;
|
|
548
|
with (obj_heart)
|
|
549
|
speed = 0;
|
|
550
|
movearm = 0;
|
|
551
|
arm_i = 0;
|
|
552
|
heady = 0;
|
|
553
|
headx = 0;
|
|
554
|
alarm[8] = -1; gml_Object_obj_sansb_body_Alarm_8.gml
smashcon += 1;
|
|
555
|
with (obj_sansb)
|
|
556
|
attacked = 0;
|
|
557
|
global.mnfight = 3;
|
|
558
|
}
|
|
559
|
}
|
|
560
|
}
|
|
561
|
if (lac == 4)
|
|
562
|
{
|
|
563
|
obj_heart.speed = 0;
|
|
564
|
global.idealborder[0] = 240;
|
|
565
|
global.idealborder[1] = 400;
|
|
566
|
global.idealborder[2] = global.idealborder[3] - 160;
|
|
567
|
obj_heart.movement = 1;
|
|
568
|
obj_heart.sprite_index = spr_heart_battle_pl;
|
|
569
|
smasher = 1;
|
|
570
|
smashcon = 0;
|
|
571
|
smashamt = 0;
|
|
572
|
smashlv = 2;
|
|
573
|
xtimer = 0;
|
|
574
|
lac = 5;
|
|
575
|
}
|
|
576
|
if (lac == 5)
|
|
577
|
{
|
|
578
|
if (smashamt == 3 && smashcon == 3 && xtimer == 3)
|
|
579
|
{
|
|
580
|
b1 = instance_create(global.idealborder[0] - 110, global.idealborder[2] - 300, obj_bonewall_normal);
|
|
581
|
b1.sprite_index = spr_s_bonewall_wide;
|
|
582
|
b1.vspeed = 11;
|
|
583
|
b1 = instance_create(global.idealborder[1] - 70, global.idealborder[3] + 300, obj_bonewall_normal);
|
|
584
|
b1.sprite_index = spr_s_bonewall_wide;
|
|
585
|
b1.vspeed = -11;
|
|
586
|
b1 = instance_create(global.idealborder[0] - 110, global.idealborder[2] - 525, obj_bonewall_normal);
|
|
587
|
b1.sprite_index = spr_s_bonewall_wide;
|
|
588
|
b1.vspeed = 11;
|
|
589
|
b1 = instance_create(global.idealborder[1] - 70, global.idealborder[3] + 525, obj_bonewall_normal);
|
|
590
|
b1.sprite_index = spr_s_bonewall_wide;
|
|
591
|
b1.vspeed = -11;
|
|
592
|
b1 = instance_create(global.idealborder[0] - 110, global.idealborder[2] - 750, obj_bonewall_normal);
|
|
593
|
b1.sprite_index = spr_s_bonewall_wide;
|
|
594
|
b1.vspeed = 11;
|
|
595
|
b1 = instance_create(global.idealborder[1] - 70, global.idealborder[3] + 750, obj_bonewall_normal);
|
|
596
|
b1.sprite_index = spr_s_bonewall_wide;
|
|
597
|
b1.vspeed = -11;
|
|
598
|
}
|
|
599
|
if (smashamt == 4 && smashcon == 3 && xtimer >= 0)
|
|
600
|
{
|
|
601
|
smashcon = -1;
|
|
602
|
smasher = -1;
|
|
603
|
obj_heart.speed = 0;
|
|
604
|
lac = 6;
|
|
605
|
alarm[5] = 60; gml_Object_obj_sansb_body_Alarm_5.gml
lac += 1;
|
|
606
|
obj_heart.movement = 1;
|
|
607
|
obj_heart.sprite_index = spr_heart_battle_pl;
|
|
608
|
}
|
|
609
|
}
|
|
610
|
if (lac == 7)
|
|
611
|
{
|
|
612
|
intensity = 25;
|
|
613
|
aspeed = 2;
|
|
614
|
movearm = 4;
|
|
615
|
arm_i = 0;
|
|
616
|
heady = 0;
|
|
617
|
headx = 0;
|
|
618
|
lac = 8;
|
|
619
|
alarm[5] = 6; gml_Object_obj_sansb_body_Alarm_5.gml
lac += 1;
|
|
620
|
}
|
|
621
|
if (lac == 9)
|
|
622
|
{
|
|
623
|
event_user(13);
|
|
624
|
lac = 10;
|
|
625
|
alarm[5] = 8; gml_Object_obj_sansb_body_Alarm_5.gml
lac += 1;
|
|
626
|
}
|
|
627
|
if (lac == 11)
|
|
628
|
{
|
|
629
|
movearm = 1;
|
|
630
|
arm_i = 0;
|
|
631
|
heady = 0;
|
|
632
|
headx = 0;
|
|
633
|
lac = 12;
|
|
634
|
alarm[5] = 6; gml_Object_obj_sansb_body_Alarm_5.gml
lac += 1;
|
|
635
|
}
|
|
636
|
if (lac == 13)
|
|
637
|
{
|
|
638
|
intensity = 15;
|
|
639
|
event_user(11);
|
|
640
|
lac = 14;
|
|
641
|
alarm[5] = 10; gml_Object_obj_sansb_body_Alarm_5.gml
lac += 1;
|
|
642
|
}
|
|
643
|
if (lac == 14)
|
|
644
|
{
|
|
645
|
obj_heart.jumpstage = 0;
|
|
646
|
global.idealborder[1] += 15;
|
|
647
|
}
|
|
648
|
if (lac == 15)
|
|
649
|
{
|
|
650
|
lac = 16;
|
|
651
|
alarm[5] = 40; gml_Object_obj_sansb_body_Alarm_5.gml
lac += 1;
|
|
652
|
}
|
|
653
|
if (lac == 16)
|
|
654
|
{
|
|
655
|
global.idealborder[0] -= 30;
|
|
656
|
global.idealborder[1] += 10;
|
|
657
|
repeater = 1;
|
|
658
|
rp_x = 0;
|
|
659
|
obj_heart.speed = 0;
|
|
660
|
if (obj_heart.x > 40)
|
|
661
|
obj_heart.x -= 10;
|
|
662
|
global.idealborder[2] += 1;
|
|
663
|
global.idealborder[3] -= 0.5;
|
|
664
|
}
|
|
665
|
if (lac == 17)
|
|
666
|
{
|
|
667
|
for (i = 0; i < 45; i += 1)
|
|
668
|
{
|
|
669
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (70 - (sin(i / 2) * 25), -30, 10 + (i * 2), 2);
|
|
670
|
bone.siner = i * 3;
|
|
671
|
bone.x += 15;
|
|
672
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (30 - (sin(i / 2) * 25), -30, 10 + (i * 2), 0);
|
|
673
|
bone.siner = i * 3;
|
|
674
|
bone.x += 15;
|
|
675
|
}
|
|
676
|
lac = 18;
|
|
677
|
alarm[5] = 100; gml_Object_obj_sansb_body_Alarm_5.gml
lac += 1;
|
|
678
|
}
|
|
679
|
if (lac == 19)
|
|
680
|
{
|
|
681
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 10, 2);
|
|
682
|
bone.x += 15;
|
|
683
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 10, 2);
|
|
684
|
bone.x += 30;
|
|
685
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 10, 2);
|
|
686
|
bone.x += 45;
|
|
687
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 21, 0);
|
|
688
|
bone.x += 15;
|
|
689
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 21, 0);
|
|
690
|
bone.x += 30;
|
|
691
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 21, 0);
|
|
692
|
bone.x += 45;
|
|
693
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 31, 2);
|
|
694
|
bone.x += 15;
|
|
695
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 31, 2);
|
|
696
|
bone.x += 30;
|
|
697
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 31, 2);
|
|
698
|
bone.x += 45;
|
|
699
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 41, 0);
|
|
700
|
bone.x += 15;
|
|
701
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 41, 0);
|
|
702
|
bone.x += 30;
|
|
703
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 41, 0);
|
|
704
|
bone.x += 45;
|
|
705
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 50, 2);
|
|
706
|
bone.x += 15;
|
|
707
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 50, 2);
|
|
708
|
bone.x += 30;
|
|
709
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 50, 2);
|
|
710
|
bone.x += 45;
|
|
711
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 59, 0);
|
|
712
|
bone.x += 15;
|
|
713
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 59, 0);
|
|
714
|
bone.x += 30;
|
|
715
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 59, 0);
|
|
716
|
bone.x += 45;
|
|
717
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 67, 2);
|
|
718
|
bone.x += 15;
|
|
719
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 67, 2);
|
|
720
|
bone.x += 30;
|
|
721
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 67, 2);
|
|
722
|
bone.x += 45;
|
|
723
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 78, 0);
|
|
724
|
bone.x += 15;
|
|
725
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 78, 0);
|
|
726
|
bone.x += 30;
|
|
727
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 78, 0);
|
|
728
|
bone.x += 45;
|
|
729
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 87, 2);
|
|
730
|
bone.x += 15;
|
|
731
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 87, 2);
|
|
732
|
bone.x += 30;
|
|
733
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (50, -30, 87, 2);
|
|
734
|
bone.x += 45;
|
|
735
|
for (i = 0; i < 24; i += 1)
|
|
736
|
{
|
|
737
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (90 - i, -30, 100 + i, 2);
|
|
738
|
bone.x += 15;
|
|
739
|
scr_sboscr_sbo
bone = instance_create(900, 900, obj_sans_bonebul);
bone.y = global.idealborder[3] - argument0;
bone.hspeed = argument1;
bone.type = argument3;
bone.x = 320 - (argument1 * argument2);
bone.yinit = bone.y; (10 + i, -30, 100 + i, 0);
|
|
740
|
bone.x += 15;
|
|
741
|
}
|
|
742
|
lac = 20;
|
|
743
|
alarm[5] = 134; gml_Object_obj_sansb_body_Alarm_5.gml
lac += 1;
|
|
744
|
}
|
|
745
|
if (lac == 21)
|
|
746
|
{
|
|
747
|
lac = 23;
|
|
748
|
global.idealborder[1] = 640;
|
|
749
|
obj_heart.hspeed = 11;
|
|
750
|
}
|
|
751
|
if (lac == 23)
|
|
752
|
{
|
|
753
|
if (global.idealborder[1] > 420)
|
|
754
|
global.idealborder[1] -= 18;
|
|
755
|
if (obj_heart.hspeed <= 0)
|
|
756
|
{
|
|
757
|
global.faceemotion = 0;
|
|
758
|
global.flag[20 animation_index] = 0;
|
|
759
|
repeater = 0;
|
|
760
|
lac = 24;
|
|
761
|
alarm[5] = 5; gml_Object_obj_sansb_body_Alarm_5.gml
lac += 1;
|
|
762
|
}
|
|
763
|
}
|
|
764
|
if (lac == 25)
|
|
765
|
{
|
|
766
|
bs = instance_create(0, 0, obj_bonestab);
|
|
767
|
bs.retain = 15;
|
|
768
|
bs.warning = 12;
|
|
769
|
bs.height = 50;
|
|
770
|
bs.dir = 1;
|
|
771
|
aspeed = 1;
|
|
772
|
movearm = 4;
|
|
773
|
arm_i = 0;
|
|
774
|
heady = 0;
|
|
775
|
headx = 0;
|
|
776
|
lac = 26;
|
|
777
|
alarm[5] = 28; gml_Object_obj_sansb_body_Alarm_5.gml
lac += 1;
|
|
778
|
}
|
|
779
|
if (lac == 27)
|
|
780
|
{
|
|
781
|
with (obj_heart)
|
|
782
|
speed = 0;
|
|
783
|
sh = instance_create(0, 0, obj_sansshadowgen);
|
|
784
|
sh.level = 3;
|
|
785
|
lac = 28;
|
|
786
|
}
|
|
787
|
if (repeater == 1)
|
|
788
|
{
|
|
789
|
movearm = 0;
|
|
790
|
rp_x += 0.05;
|
|
791
|
x -= floor(30 + rp_x);
|
|
792
|
if (x < -100)
|
|
793
|
{
|
|
794
|
global.faceemotion = choose(0, 1, 3, 4, 5);
|
|
795
|
global.flag[20 animation_index] = choose(0, 0, 0, 1);
|
|
796
|
x = 740;
|
|
797
|
}
|
|
798
|
}
|
|
799
|
if (lac == 50)
|
|
800
|
{
|
|
801
|
obj_heart.speed = 0;
|
|
802
|
obj_heart.movement = 1;
|
|
803
|
obj_heart.sprite_index = spr_heart_battle_pl;
|
|
804
|
gt = 0;
|
|
805
|
gin = 1;
|
|
806
|
lac = 51;
|
|
807
|
o_o = 0;
|
|
808
|
gnum = 0;
|
|
809
|
}
|
|
810
|
if (lac == 51)
|
|
811
|
{
|
|
812
|
if (o_o == 1)
|
|
813
|
{
|
|
814
|
disx = lengthdir_x(150, gt * 10);
|
|
815
|
disy = lengthdir_y(150, gt * 10);
|
|
816
|
gb[gnum] = instance_create(0, 0, obj_gasterblaster);
|
|
817
|
if (instance_exists(gb[gnum]))
|
|
818
|
{
|
|
819
|
gb[gnum].idealrot = -90 + (gt * 10);
|
|
820
|
gb[gnum].idealx = disx + global.idealborder[0] + ((global.idealborder[1] - global.idealborder[0]) / 2);
|
|
821
|
gb[gnum].idealy = disy + global.idealborder[2] + ((global.idealborder[3] - global.idealborder[2]) / 2);
|
|
822
|
gb[gnum].x = (disx * 3) + global.idealborder[0] + ((global.idealborder[1] - global.idealborder[0]) / 2);
|
|
823
|
gb[gnum].y = (disy * 3) + global.idealborder[2] + ((global.idealborder[3] - global.idealborder[2]) / 2);
|
|
824
|
gb[gnum].terminal = 0;
|
|
825
|
gb[gnum].pause = 15;
|
|
826
|
gb[gnum].image_yscale = 2;
|
|
827
|
}
|
|
828
|
gt += gin;
|
|
829
|
if (gin < 1.7)
|
|
830
|
gin += 0.015;
|
|
831
|
gnum += 1;
|
|
832
|
o_o = 0;
|
|
833
|
}
|
|
834
|
else
|
|
835
|
{
|
|
836
|
o_o = 1;
|
|
837
|
}
|
|
838
|
if (gt >= 190)
|
|
839
|
{
|
|
840
|
with (obj_heart)
|
|
841
|
slam_pain = 1;
|
|
842
|
pdd = -1;
|
|
843
|
bounce = 0;
|
|
844
|
intensity = 30;
|
|
845
|
aspeed = 2;
|
|
846
|
lc_t = 0;
|
|
847
|
lc_c = 0;
|
|
848
|
lc_a = 0;
|
|
849
|
lac = 52;
|
|
850
|
alarm[5] = 30; gml_Object_obj_sansb_body_Alarm_5.gml
lac += 1;
|
|
851
|
}
|
|
852
|
}
|
|
853
|
if (lac == 53)
|
|
854
|
{
|
|
855
|
if (lc_t == 0)
|
|
856
|
{
|
|
857
|
dd = choose(1, 2, 3, 4);
|
|
858
|
repeat (8)
|
|
859
|
{
|
|
860
|
if (dd == pdd)
|
|
861
|
dd = choose(1, 2, 3, 4);
|
|
862
|
}
|
|
863
|
if (lc_c == 0)
|
|
864
|
{
|
|
865
|
dd = 1;
|
|
866
|
facetype = 1;
|
|
867
|
}
|
|
868
|
if (lc_c == 18)
|
|
869
|
dd = 2;
|
|
870
|
movearm = dd;
|
|
871
|
arm_i = 0;
|
|
872
|
heady = 0;
|
|
873
|
headx = 0;
|
|
874
|
}
|
|
875
|
if (lc_t == (8 / aspeed))
|
|
876
|
{
|
|
877
|
if (lc_c == 18)
|
|
878
|
lc_a = 21;
|
|
879
|
if (lc_c == 17)
|
|
880
|
lc_a = 12;
|
|
881
|
if (dd == 1)
|
|
882
|
event_user(11);
|
|
883
|
if (dd == 3)
|
|
884
|
event_user(10);
|
|
885
|
if (dd == 2)
|
|
886
|
event_user(12);
|
|
887
|
if (dd == 4)
|
|
888
|
event_user(13);
|
|
889
|
}
|
|
890
|
if (lc_t == ((lc_a * 2) + (8 / aspeed) + 4))
|
|
891
|
{
|
|
892
|
if (lc_c == 18)
|
|
893
|
intensity = 2;
|
|
894
|
if (dd == 3)
|
|
895
|
dd = 2;
|
|
896
|
else if (dd == 1)
|
|
897
|
dd = 4;
|
|
898
|
else if (dd == 4)
|
|
899
|
dd = 1;
|
|
900
|
else if (dd == 2)
|
|
901
|
dd = 3;
|
|
902
|
pdd = dd;
|
|
903
|
if (lc_c == 18)
|
|
904
|
{
|
|
905
|
dd = 3;
|
|
906
|
sweat = 3;
|
|
907
|
global.faceemotion = 9;
|
|
908
|
}
|
|
909
|
movearm = dd;
|
|
910
|
arm_i = 0;
|
|
911
|
heady = 0;
|
|
912
|
headx = 0;
|
|
913
|
}
|
|
914
|
if (lc_t == ((lc_a * 2) + ((8 / aspeed) * 2) + 4))
|
|
915
|
{
|
|
916
|
if (dd == 1)
|
|
917
|
event_user(11);
|
|
918
|
if (dd == 3)
|
|
919
|
event_user(10);
|
|
920
|
if (dd == 2)
|
|
921
|
event_user(12);
|
|
922
|
if (dd == 4)
|
|
923
|
event_user(13);
|
|
924
|
if (lc_c == 18)
|
|
925
|
lc_a = 21;
|
|
926
|
}
|
|
927
|
lc_t += 1;
|
|
928
|
if (lc_t == ((lc_a * 4) + ((8 / aspeed) * 2) + 7))
|
|
929
|
{
|
|
930
|
lc_t = 0;
|
|
931
|
lc_c += 1;
|
|
932
|
if (lc_c == 11)
|
|
933
|
{
|
|
934
|
lc_a = 1;
|
|
935
|
caster_set_volume(global.batmusic, 0.8);
|
|
936
|
intensity = 20;
|
|
937
|
}
|
|
938
|
if (lc_c == 12)
|
|
939
|
{
|
|
940
|
lc_a = 2;
|
|
941
|
intensity = 20;
|
|
942
|
}
|
|
943
|
if (lc_c == 13)
|
|
944
|
{
|
|
945
|
lc_a = 0;
|
|
946
|
aspeed = 1;
|
|
947
|
intensity = 16;
|
|
948
|
sweat = 1;
|
|
949
|
facetype = 0;
|
|
950
|
global.faceemotion = 0;
|
|
951
|
}
|
|
952
|
if (lc_c == 14)
|
|
953
|
{
|
|
954
|
lc_a = 2;
|
|
955
|
caster_set_volume(global.batmusic, 0.7);
|
|
956
|
intensity = 14;
|
|
957
|
}
|
|
958
|
if (lc_c == 15)
|
|
959
|
{
|
|
960
|
lc_a = 4;
|
|
961
|
caster_set_volume(global.batmusic, 0.5);
|
|
962
|
intensity = 12;
|
|
963
|
}
|
|
964
|
if (lc_c == 16)
|
|
965
|
{
|
|
966
|
lc_a = 6;
|
|
967
|
caster_set_volume(global.batmusic, 0.25);
|
|
968
|
intensity = 12;
|
|
969
|
}
|
|
970
|
if (lc_c == 17)
|
|
971
|
{
|
|
972
|
lc_a = 8;
|
|
973
|
caster_set_volume(global.batmusic, 0.15);
|
|
974
|
aspeed = 0.5;
|
|
975
|
intensity = 11;
|
|
976
|
sweat = 2;
|
|
977
|
global.faceemotion = 2;
|
|
978
|
}
|
|
979
|
if (lc_c == 18)
|
|
980
|
{
|
|
981
|
lc_a = 15;
|
|
982
|
caster_set_volume(global.batmusic, 0.07);
|
|
983
|
intensity = 8;
|
|
984
|
}
|
|
985
|
if (lc_c == 19)
|
|
986
|
{
|
|
987
|
lac = 60;
|
|
988
|
caster_set_volume(global.batmusic, 0);
|
|
989
|
movearm = 0;
|
|
990
|
headx = 0;
|
|
991
|
heady = 0;
|
|
992
|
bounce = 2;
|
|
993
|
test_timer_on = 0;
|
|
994
|
}
|
|
995
|
}
|
|
996
|
}
|
|
997
|
if (lac == 60)
|
|
998
|
{
|
|
999
|
lac = 61;
|
|
1000
|
alarm[5] = 80; gml_Object_obj_sansb_body_Alarm_5.gml
lac += 1;
|
|
1001
|
}
|
|
1002
|
if (lac == 62)
|
|
1003
|
{
|
|
1004
|
sleep_c = 9;
|
|
1005
|
obj_heart.movement = 1;
|
|
1006
|
obj_heart.speed = 0;
|
|
1007
|
obj_heart.sprite_index = spr_heart;
|
|
1008
|
sweat = 3;
|
|
1009
|
global.faceemotion = 9;
|
|
1010
|
global.flag[20 animation_index] = 0;
|
|
1011
|
global.msc = 0;
|
|
1012
|
global.typer = 109;
|
|
1013
|
global.msg[0] = huff...Delay 11 puff...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_body_2091") ;
|
|
1014
|
global.msg[1] = all right.Delay 11 that's it.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_body_2092") ;
|
|
1015
|
global.msg[2] = \Xi\M1t's time for my\R special attack\X.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_body_2093") ;
|
|
1016
|
global.msg[3] = \E3are you ready?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_body_2094") ;
|
|
1017
|
global.msg[4] = \E4here goes nothing.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_body_2095") ;
|
|
1018
|
scr_blcon_xscr_blcon_x
scr_blcon(argument0, argument1, 0); (obj_sansb.x + 120, y - 10);
|
|
1019
|
lac = 63;
|
|
1020
|
}
|
|
1021
|
if (lac == 63 && instance_exists(OBJ_WRITER) == 0)
|
|
1022
|
{
|
|
1023
|
global.flag[20 animation_index] = 0;
|
|
1024
|
lac = 64;
|
|
1025
|
alarm[5] = 300; gml_Object_obj_sansb_body_Alarm_5.gml
lac += 1;
|
|
1026
|
}
|
|
1027
|
if (lac == 65)
|
|
1028
|
{
|
|
1029
|
global.msc = 0;
|
|
1030
|
global.typer = 109;
|
|
1031
|
global.msg[0] = \E1yep.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_body_2111") ;
|
|
1032
|
global.msg[1] = \E1that's right.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_body_2112") ;
|
|
1033
|
global.msg[2] = \E3it's literally nothing.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_body_2113") ;
|
|
1034
|
global.msg[3] = \E1and it's not gonna be anything,Delay 11 either.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_body_2114") ;
|
|
1035
|
global.msg[4] = \E4heh heh heh...Delay 11 ya get it?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_body_2115") ;
|
|
1036
|
global.msg[5] = \E1i know i can't beat you.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_body_2116") ;
|
|
1037
|
global.msg[6] = \E4one of your turns...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_body_2117") ;
|
|
1038
|
global.msg[7] = \E9you're just gonna kill me.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_body_2118") ;
|
|
1039
|
global.msg[8] = \E1so,Delay 11 uh.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_body_2119") ;
|
|
1040
|
global.msg[9] = \E4i've decided...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_body_2120") ;
|
|
1041
|
global.msg[10] = it's not gonna BE your turn.Delay 11 ever.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_body_2121") ;
|
|
1042
|
global.msg[11] = \E3i'm just gonna keep having MY turn until you give up.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_body_2122") ;
|
|
1043
|
global.msg[12] = \E5even if it means we have to stand here until the end of time.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_body_2123") ;
|
|
1044
|
global.msg[13] = \E1capiche?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_body_2124") ;
|
|
1045
|
scr_blcon_xscr_blcon_x
scr_blcon(argument0, argument1, 0); (obj_sansb.x + 120, y - 10);
|
|
1046
|
lac = 66;
|
|
1047
|
}
|
|
1048
|
if (lac == 66 && instance_exists(OBJ_WRITER) == 0)
|
|
1049
|
{
|
|
1050
|
global.faceemotion = 0;
|
|
1051
|
lac = 67;
|
|
1052
|
alarm[5] = 300; gml_Object_obj_sansb_body_Alarm_5.gml
lac += 1;
|
|
1053
|
}
|
|
1054
|
if (lac == 68)
|
|
1055
|
{
|
|
1056
|
global.msc = 0;
|
|
1057
|
global.typer = 109;
|
|
1058
|
global.msg[0] = \E9you'll get bored here.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_body_2141") ;
|
|
1059
|
global.msg[1] = \E1if you haven't gotten bored already,Delay 11 i mean.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_body_2142") ;
|
|
1060
|
global.msg[2] = \E5and then,Delay 11 you'll finally quit.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_body_2143") ;
|
|
1061
|
scr_blcon_xscr_blcon_x
scr_blcon(argument0, argument1, 0); (obj_sansb.x + 120, y - 10);
|
|
1062
|
lac = 69;
|
|
1063
|
}
|
|
1064
|
if (lac == 69 && instance_exists(OBJ_WRITER) == 0)
|
|
1065
|
{
|
|
1066
|
global.faceemotion = 0;
|
|
1067
|
lac = 70;
|
|
1068
|
alarm[5] = 300; gml_Object_obj_sansb_body_Alarm_5.gml
lac += 1;
|
|
1069
|
}
|
|
1070
|
if (lac == 71)
|
|
1071
|
{
|
|
1072
|
global.msc = 0;
|
|
1073
|
global.typer = 109;
|
|
1074
|
global.msg[0] = \E5i know your type.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_body_2161") ;
|
|
1075
|
global.msg[1] = \E1you're,Delay 11 uh,Delay 11 very determined,Delay 11 aren't you?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_body_2162") ;
|
|
1076
|
global.msg[2] = \E4you'll never give up,Delay 11 even if there's,Delay 11 uh...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_body_2163") ;
|
|
1077
|
global.msg[3] = \E3absolutely NO benefit to persevering whatsoever.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_body_2164") ;
|
|
1078
|
global.msg[4] = \E1if i can make that clear.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_body_2165") ;
|
|
1079
|
global.msg[5] = \E4no matter what,Delay 11 you'll just keep going.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_body_2166") ;
|
|
1080
|
global.msg[6] = \E9not out of any desire for good or evil...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_body_2167") ;
|
|
1081
|
global.msg[7] = \E3but just because you think you can.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_body_2168") ;
|
|
1082
|
global.msg[8] = \E1and because you "can"...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_body_2169") ;
|
|
1083
|
global.msg[9] = \E9... you "have to."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_body_2170") ;
|
|
1084
|
scr_blcon_xscr_blcon_x
scr_blcon(argument0, argument1, 0); (obj_sansb.x + 120, y - 10);
|
|
1085
|
lac = 72;
|
|
1086
|
}
|
|
1087
|
if (lac == 72 && instance_exists(OBJ_WRITER) == 0)
|
|
1088
|
{
|
|
1089
|
global.faceemotion = 0;
|
|
1090
|
lac = 73;
|
|
1091
|
alarm[5] = 300; gml_Object_obj_sansb_body_Alarm_5.gml
lac += 1;
|
|
1092
|
}
|
|
1093
|
if (lac == 74)
|
|
1094
|
{
|
|
1095
|
global.msc = 0;
|
|
1096
|
global.typer = 109;
|
|
1097
|
global.msg[0] = \E9but now,Delay 11 you've reached the end.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_body_2188") ;
|
|
1098
|
global.msg[1] = \E4there is nothing left for you now.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_body_2189") ;
|
|
1099
|
global.msg[2] = \E1so,Delay 11 uh,Delay 11 in my personal opinion...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_body_2190") ;
|
|
1100
|
global.msg[3] = \E3the most "determined" thing you can do here?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_body_2191") ;
|
|
1101
|
global.msg[4] = \E1is to,Delay 11 uh,Delay 11 completely give up.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_body_2192") ;
|
|
1102
|
global.msg[5] = \E3and...Delay 11 (yawn) do literally anything else.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_body_2193") ;
|
|
1103
|
scr_blcon_xscr_blcon_x
scr_blcon(argument0, argument1, 0); (obj_sansb.x + 120, y - 10);
|
|
1104
|
lac = 75;
|
|
1105
|
}
|
|
1106
|
if (lac == 75 && instance_exists(OBJ_WRITER) == 0)
|
|
1107
|
{
|
|
1108
|
global.faceemotion = 0;
|
|
1109
|
lac = -1;
|
|
1110
|
}
|
|
1111
|
if (lac == 999)
|
|
1112
|
{
|
|
1113
|
obj_heart.speed = 0;
|
|
1114
|
lac = 6;
|
|
1115
|
obj_heart.movement = 1;
|
|
1116
|
b1 = instance_create(-40, global.idealborder[2] - 120, obj_bonewall_normal);
|
|
1117
|
b1.sprite_index = spr_s_bonewall_tall;
|
|
1118
|
b1.hspeed = 7;
|
|
1119
|
b1 = instance_create(720, global.idealborder[3] - 80, obj_bonewall_normal);
|
|
1120
|
b1.sprite_index = spr_s_bonewall_tall;
|
|
1121
|
b1.hspeed = -8;
|
|
1122
|
b1 = instance_create(global.idealborder[0] - 110, global.idealborder[2] - 150, obj_bonewall_normal);
|
|
1123
|
b1.sprite_index = spr_s_bonewall_wide;
|
|
1124
|
b1.vspeed = 6;
|
|
1125
|
b1 = instance_create(global.idealborder[1] - 70, global.idealborder[3] + 150, obj_bonewall_normal);
|
|
1126
|
b1.sprite_index = spr_s_bonewall_wide;
|
|
1127
|
b1.vspeed = -6;
|
|
1128
|
lac = 10;
|
|
1129
|
}
|
|
1130
|
if (test_timer_on == 1)
|
|
1131
|
test_timer += 1;
|
|
1132
|
if (mk_c == 1)
|
|
1133
|
{
|
|
1134
|
mk_c_timer += 1;
|
|
1135
|
if (mk_c_timer >= 15)
|
|
1136
|
{
|
|
1137
|
global.flag[20 animation_index] = 1;
|
|
1138
|
global.faceemotion = 3;
|
|
1139
|
mk_c = 2;
|
|
1140
|
bs = instance_create(0, 0, obj_bonestab);
|
|
1141
|
bs.retain = 300;
|
|
1142
|
bs.height = 100;
|
|
1143
|
bs.dir = 0;
|
|
1144
|
bs.warning = 0;
|
|
1145
|
}
|
|
1146
|
}
|
|
1147
|
if (global.damagetimer > 0 && dodge == 0)
|
|
1148
|
dodge = 1;
|
|
1149
|
if (dodge == 1)
|
|
1150
|
{
|
|
1151
|
timerbonus = global.damagetimer;
|
|
1152
|
dg_t = 0;
|
|
1153
|
dg_x = x;
|
|
1154
|
hspeed = -12;
|
|
1155
|
dodge = 2;
|
|
1156
|
}
|
|
1157
|
if (dodge == 2)
|
|
1158
|
{
|
|
1159
|
if (x < (dg_x - 60) && dg_t < 20)
|
|
1160
|
{
|
|
1161
|
if (hspeed < 0)
|
|
1162
|
hspeed += 2;
|
|
1163
|
else
|
|
1164
|
hspeed = 0;
|
|
1165
|
}
|
|
1166
|
dg_t += 1;
|
|
1167
|
if (dg_t >= (20 + timerbonus))
|
|
1168
|
{
|
|
1169
|
if (hspeed < 12)
|
|
1170
|
hspeed += 2;
|
|
1171
|
if (x >= (dg_x - 13))
|
|
1172
|
{
|
|
1173
|
hspeed = 0;
|
|
1174
|
x = dg_x;
|
|
1175
|
dodge = 0;
|
|
1176
|
global.damagetimer = -1;
|
|
1177
|
}
|
|
1178
|
}
|
|
1179
|
}
|
|
1180
|
if (death_c == 1)
|
|
1181
|
{
|
|
1182
|
snd_play(snd_laz);
|
|
1183
|
global.faceemotion = 0;
|
|
1184
|
asleep = 0;
|
|
1185
|
sweat = 0;
|
|
1186
|
bounce = 0;
|
|
1187
|
dg_t = 0;
|
|
1188
|
dg_x = x;
|
|
1189
|
st = instance_create(x, y - 30, obj_strike_temp);
|
|
1190
|
st.image_xscale = 1.5;
|
|
1191
|
st.image_yscale = 1.5;
|
|
1192
|
st.image_speed = 0.334;
|
|
1193
|
hspeed = -12;
|
|
1194
|
death_c = 2;
|
|
1195
|
}
|
|
1196
|
if (death_c == 2)
|
|
1197
|
{
|
|
1198
|
if (x < (dg_x - 60) && dg_t < 50)
|
|
1199
|
{
|
|
1200
|
if (hspeed < 0)
|
|
1201
|
{
|
|
1202
|
hspeed += 2;
|
|
1203
|
}
|
|
1204
|
else
|
|
1205
|
{
|
|
1206
|
hspeed = 0;
|
|
1207
|
death_c = 3;
|
|
1208
|
global.msc = 0;
|
|
1209
|
global.typer = 109;
|
|
1210
|
global.msg[0] = heh,Delay 11 didja really think you would be able toscr_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_body_2344") ;
|
|
1211
|
scr_blcon_xscr_blcon_x
scr_blcon(argument0, argument1, 0); (x + 80, y - 10);
|
|
1212
|
alarm[6] = 50; gml_Object_obj_sansb_body_Alarm_6.gml
death_c += 1;
|
|
1213
|
}
|
|
1214
|
}
|
|
1215
|
}
|
|
1216
|
if (death_c == 3)
|
|
1217
|
{
|
|
1218
|
global.faceemotion = 3;
|
|
1219
|
global.flag[20 animation_index] = 1;
|
|
1220
|
bof_d = 0;
|
|
1221
|
}
|
|
1222
|
if (death_c == 4)
|
|
1223
|
{
|
|
1224
|
with (OBJ_WRITER)
|
|
1225
|
instance_destroy();
|
|
1226
|
with (obj_blconwideslave)
|
|
1227
|
instance_destroy();
|
|
1228
|
snd_play(snd_laz);
|
|
1229
|
st = instance_create(x - 10, y - 30, obj_strike_temp);
|
|
1230
|
st.image_xscale = 1.5;
|
|
1231
|
st.image_yscale = 1.5;
|
|
1232
|
st.image_speed = 0.25;
|
|
1233
|
death_c = 5;
|
|
1234
|
alarm[6] = 50; gml_Object_obj_sansb_body_Alarm_6.gml
death_c += 1;
|
|
1235
|
hit_x = x;
|
|
1236
|
global.faceemotion = 6;
|
|
1237
|
}
|
|
1238
|
if (death_c == 5)
|
|
1239
|
{
|
|
1240
|
if (bof_d < 4)
|
|
1241
|
draw_sprite_ext(spr_bof_what, floor(bof_d), x, y - 50, 2, 2, 0, c_white, 1);
|
|
1242
|
bof_d += 1;
|
|
1243
|
}
|
|
1244
|
if (death_c == 6)
|
|
1245
|
{
|
|
1246
|
with (obj_sansb)
|
|
1247
|
{
|
|
1248
|
x = mypart1.x - 60;
|
|
1249
|
global.damage = 9999999;
|
|
1250
|
dmgwriter = instance_create((x + (sprite_width / 2)) - 48, y - 50, obj_dmgwriter);
|
|
1251
|
with (dmgwriter)
|
|
1252
|
{
|
|
1253
|
dmg = 9999999;
|
|
1254
|
drawbar = 0;
|
|
1255
|
}
|
|
1256
|
}
|
|
1257
|
snd_play(snd_damage);
|
|
1258
|
deadtest = 1;
|
|
1259
|
global.flag[20 animation_index] = 3;
|
|
1260
|
x = hit_x + 32;
|
|
1261
|
death_c = 7;
|
|
1262
|
alarm[6] = 4; gml_Object_obj_sansb_body_Alarm_6.gml
death_c += 1;
|
|
1263
|
}
|
|
1264
|
if (death_c == 8)
|
|
1265
|
{
|
|
1266
|
x = hit_x - 28;
|
|
1267
|
death_c = 9;
|
|
1268
|
alarm[6] = 4; gml_Object_obj_sansb_body_Alarm_6.gml
death_c += 1;
|
|
1269
|
}
|
|
1270
|
if (death_c == 10)
|
|
1271
|
{
|
|
1272
|
global.flag[20 animation_index] = 3;
|
|
1273
|
x = hit_x + 24;
|
|
1274
|
death_c = 11;
|
|
1275
|
alarm[6] = 4; gml_Object_obj_sansb_body_Alarm_6.gml
death_c += 1;
|
|
1276
|
}
|
|
1277
|
if (death_c == 12)
|
|
1278
|
{
|
|
1279
|
x = hit_x - 20;
|
|
1280
|
death_c = 13;
|
|
1281
|
alarm[6] = 4; gml_Object_obj_sansb_body_Alarm_6.gml
death_c += 1;
|
|
1282
|
}
|
|
1283
|
if (death_c == 14)
|
|
1284
|
{
|
|
1285
|
global.flag[20 animation_index] = 3;
|
|
1286
|
x = hit_x + 16;
|
|
1287
|
death_c = 15;
|
|
1288
|
alarm[6] = 4; gml_Object_obj_sansb_body_Alarm_6.gml
death_c += 1;
|
|
1289
|
}
|
|
1290
|
if (death_c == 16)
|
|
1291
|
{
|
|
1292
|
x = hit_x - 12;
|
|
1293
|
death_c = 17;
|
|
1294
|
alarm[6] = 4; gml_Object_obj_sansb_body_Alarm_6.gml
death_c += 1;
|
|
1295
|
}
|
|
1296
|
if (death_c == 18)
|
|
1297
|
{
|
|
1298
|
global.flag[20 animation_index] = 3;
|
|
1299
|
x = hit_x + 8;
|
|
1300
|
death_c = 19;
|
|
1301
|
alarm[6] = 4; gml_Object_obj_sansb_body_Alarm_6.gml
death_c += 1;
|
|
1302
|
}
|
|
1303
|
if (death_c == 20)
|
|
1304
|
{
|
|
1305
|
x = hit_x - 4;
|
|
1306
|
death_c = 21;
|
|
1307
|
alarm[6] = 4; gml_Object_obj_sansb_body_Alarm_6.gml
death_c += 1;
|
|
1308
|
}
|
|
1309
|
if (death_c == 22)
|
|
1310
|
{
|
|
1311
|
xoff = 0;
|
|
1312
|
yoff = 0;
|
|
1313
|
headx = 0;
|
|
1314
|
heady = 0;
|
|
1315
|
legx = 0;
|
|
1316
|
legy = 0;
|
|
1317
|
x = hit_x;
|
|
1318
|
death_c = 23;
|
|
1319
|
alarm[6] = 110; gml_Object_obj_sansb_body_Alarm_6.gml
death_c += 1;
|
|
1320
|
}
|
|
1321
|
if (death_c >= 8 && death_c < 22)
|
|
1322
|
{
|
|
1323
|
bounce = -1;
|
|
1324
|
xoff = choose(0, -2, 2);
|
|
1325
|
yoff = choose(0, -2, 2);
|
|
1326
|
legx = choose(0, -1, 1);
|
|
1327
|
legy = choose(0, -1, 1);
|
|
1328
|
}
|
|
1329
|
if (death_c == 24)
|
|
1330
|
{
|
|
1331
|
with (obj_dmgwriter)
|
|
1332
|
instance_destroy();
|
|
1333
|
bounce = 3;
|
|
1334
|
deadtest = 1;
|
|
1335
|
global.faceemotion = 4;
|
|
1336
|
global.flag[20 animation_index] = 4;
|
|
1337
|
death_c = 25;
|
|
1338
|
alarm[6] = 30; gml_Object_obj_sansb_body_Alarm_6.gml
death_c += 1;
|
|
1339
|
}
|
|
1340
|
if (death_c == 26)
|
|
1341
|
{
|
|
1342
|
global.msc = 0;
|
|
1343
|
global.typer = 107;
|
|
1344
|
global.msg[0] = ...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_body_2495") ;
|
|
1345
|
global.msg[1] = ...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_body_2496") ;
|
|
1346
|
global.msg[2] = ...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_body_2497") ;
|
|
1347
|
global.msg[3] = so...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_body_2498") ;
|
|
1348
|
global.msg[4] = guess that's it,Delay 11 huh?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_body_2499") ;
|
|
1349
|
global.msg[5] = ...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_body_2500") ;
|
|
1350
|
global.msg[6] = just...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_body_2501") ;
|
|
1351
|
global.msg[7] = don't say i didn't warn 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_body_2502") ;
|
|
1352
|
scr_blcon_xscr_blcon_x
scr_blcon(argument0, argument1, 0); (x + 80, y - 10);
|
|
1353
|
death_c = 27;
|
|
1354
|
}
|
|
1355
|
if (death_c == 27 && instance_exists(OBJ_WRITER))
|
|
1356
|
{
|
|
1357
|
if (OBJ_WRITER.stringno == 0)
|
|
1358
|
global.faceemotion = 10;
|
|
1359
|
if (OBJ_WRITER.stringno == 1)
|
|
1360
|
global.faceemotion = 7;
|
|
1361
|
if (OBJ_WRITER.stringno == 2)
|
|
1362
|
global.faceemotion = 11;
|
|
1363
|
if (OBJ_WRITER.stringno == 3)
|
|
1364
|
global.faceemotion = 7;
|
|
1365
|
if (OBJ_WRITER.stringno == 4)
|
|
1366
|
global.faceemotion = 7;
|
|
1367
|
if (OBJ_WRITER.stringno == 5)
|
|
1368
|
global.faceemotion = 11;
|
|
1369
|
if (OBJ_WRITER.stringno == 6)
|
|
1370
|
global.faceemotion = 10;
|
|
1371
|
if (OBJ_WRITER.stringno == 7)
|
|
1372
|
global.faceemotion = 10;
|
|
1373
|
}
|
|
1374
|
if (death_c == 27 && instance_exists(OBJ_WRITER) == 0)
|
|
1375
|
{
|
|
1376
|
death_c = 27.1;
|
|
1377
|
alarm[6] = 60; gml_Object_obj_sansb_body_Alarm_6.gml
death_c += 1;
|
|
1378
|
}
|
|
1379
|
if (death_c == 28.1)
|
|
1380
|
{
|
|
1381
|
bounce = 0;
|
|
1382
|
global.faceemotion = 10;
|
|
1383
|
global.flag[20 animation_index] = 5;
|
|
1384
|
deadtest = 0;
|
|
1385
|
death_c = 28;
|
|
1386
|
alarm[6] = 80; gml_Object_obj_sansb_body_Alarm_6.gml
death_c += 1;
|
|
1387
|
}
|
|
1388
|
if (death_c == 29)
|
|
1389
|
{
|
|
1390
|
global.msc = 0;
|
|
1391
|
global.typer = 107;
|
|
1392
|
global.msg[0] = welp.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_body_2539") ;
|
|
1393
|
global.msg[1] = i'm going to grillby's.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_body_2540") ;
|
|
1394
|
scr_blcon_xscr_blcon_x
scr_blcon(argument0, argument1, 0); (x + 80, y - 10);
|
|
1395
|
death_c = 30;
|
|
1396
|
}
|
|
1397
|
if (instance_exists(OBJ_WRITER) && death_c == 30)
|
|
1398
|
{
|
|
1399
|
if (OBJ_WRITER.stringno == 0)
|
|
1400
|
global.faceemotion = 10;
|
|
1401
|
if (OBJ_WRITER.stringno == 1)
|
|
1402
|
{
|
|
1403
|
global.faceemotion = 8;
|
|
1404
|
global.flag[20 animation_index] = 6;
|
|
1405
|
}
|
|
1406
|
}
|
|
1407
|
if (death_c == 30 && instance_exists(OBJ_WRITER) == 0)
|
|
1408
|
{
|
|
1409
|
global.faceemotion = 10;
|
|
1410
|
global.flag[20 animation_index] = 5;
|
|
1411
|
bounce = 2;
|
|
1412
|
hspeed = -2;
|
|
1413
|
d_sin = 0;
|
|
1414
|
death_c = 31;
|
|
1415
|
}
|
|
1416
|
if (death_c == 31)
|
|
1417
|
{
|
|
1418
|
d_sin += 1;
|
|
1419
|
dsp = sin(d_sin / 10) * 1;
|
|
1420
|
hspeed = -1 - dsp;
|
|
1421
|
if (x < -180)
|
|
1422
|
death_c = 32;
|
|
1423
|
}
|
|
1424
|
if (death_c == 32)
|
|
1425
|
{
|
|
1426
|
global.msc = 0;
|
|
1427
|
global.typer = 107;
|
|
1428
|
global.msg[0] = papyrus,Delay 11 do you want anything?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_body_2574") ;
|
|
1429
|
scr_blcon_xscr_blcon_x
scr_blcon(argument0, argument1, 0); (20, y - 10);
|
|
1430
|
death_c = 33;
|
|
1431
|
}
|
|
1432
|
if (death_c == 33 && instance_exists(OBJ_WRITER) == 0)
|
|
1433
|
{
|
|
1434
|
death_c = 34;
|
|
1435
|
alarm[6] = 60; gml_Object_obj_sansb_body_Alarm_6.gml
death_c += 1;
|
|
1436
|
}
|
|
1437
|
if (death_c == 35)
|
|
1438
|
{
|
|
1439
|
ossafe_ini_open("undertale.ini");
|
|
1440
|
san_d = ini_read_real("Sans", "SK", 0);
|
|
1441
|
ini_write_real("Sans", "SK", san_d + 1);
|
|
1442
|
ossafe_ini_close();
|
|
1443
|
ossafe_savedata_save();
|
|
1444
|
snd_play(snd_vaporized);
|
|
1445
|
death_c = 36;
|
|
1446
|
alarm[6] = 140; gml_Object_obj_sansb_body_Alarm_6.gml
death_c += 1;
|
|
1447
|
if (global.xp < 99999)
|
|
1448
|
global.xp = 99999;
|
|
1449
|
scr_levelupscr_levelup
currentlevel = global.lv;
if (global.xp >= 10)
global.lv = 2;
if (global.xp >= 30)
global.lv = 3;
if (global.xp >= 70)
global.lv = 4;
if (global.xp >= 120)
global.lv = 5;
if (global.xp >= 200)
global.lv = 6;
if (global.xp >= 300)
global.lv = 7;
if (global.xp >= 500)
global.lv = 8;
if (global.xp >= 800)
global.lv = 9;
if (global.xp >= 1200)
global.lv = 10;
if (global.xp >= 1700)
global.lv = 11;
if (global.xp >= 2500)
global.lv = 12;
if (global.xp >= 3500)
global.lv = 13;
if (global.xp >= 5000)
global.lv = 14;
if (global.xp >= 7000)
global.lv = 15;
if (global.xp >= 10000)
global.lv = 16;
if (global.xp >= 15000)
global.lv = 17;
if (global.xp >= 25000)
global.lv = 18;
if (global.xp >= 50000)
global.lv = 19;
if (global.xp >= 99999)
{
global.lv = 20;
global.xp = 99999;
}
if (global.lv != currentlevel)
{
levelup = 1;
global.maxhp = 16 + (global.lv * 4);
global.at = 8 + (global.lv * 2);
global.df = 9 + ceil(global.lv / 4);
if (global.lv == 20)
{
global.maxhp = 99;
global.at = 99;
global.df = 99;
}
}
else
{
levelup = 0;
} ();
|
|
1450
|
}
|
|
1451
|
if (death_c == 37)
|
|
1452
|
{
|
|
1453
|
instance_create(0, 0, obj_unfader);
|
|
1454
|
death_c = 38;
|
|
1455
|
caster_free(all);
|
|
1456
|
alarm[6] = 20; gml_Object_obj_sansb_body_Alarm_6.gml
death_c += 1;
|
|
1457
|
}
|
|
1458
|
if (death_c == 39)
|
|
1459
|
{
|
|
1460
|
instance_create(0, 0, obj_persistentfader);
|
|
1461
|
do_room_goto = true;
|
|
1462
|
}
|
|
1463
|
if (asleep == 1)
|
|
1464
|
{
|
|
1465
|
asleep_timer += 1;
|
|
1466
|
if (asleep_timer == 10)
|
|
1467
|
instance_create(x + 20, y - 10, obj_sans_z_battle);
|
|
1468
|
if (asleep_timer == 20)
|
|
1469
|
instance_create(x + 20, y - 10, obj_sans_z_battle);
|
|
1470
|
if (asleep_timer == 30)
|
|
1471
|
instance_create(x + 20, y - 10, obj_sans_z_battle);
|
|
1472
|
if (asleep_timer == 80)
|
|
1473
|
asleep_timer = 0;
|
|
1474
|
}
|
|
1475
|
if (sleep_c == 9)
|
|
1476
|
{
|
|
1477
|
sleep_c = 1;
|
|
1478
|
drawborder = 0;
|
|
1479
|
with (obj_heart)
|
|
1480
|
ignore_border = 1;
|
|
1481
|
with (obj_borderparent)
|
|
1482
|
ignore_border = 1;
|
|
1483
|
with (obj_borderparent)
|
|
1484
|
visible = false;
|
|
1485
|
with (obj_borderparent)
|
|
1486
|
solid = 0;
|
|
1487
|
instance_create(global.idealborder[0], global.idealborder[2], obj_emptyborder_s);
|
|
1488
|
with (obj_borderparent)
|
|
1489
|
instaborder = 1;
|
|
1490
|
instance_create(obj_fightbt.x, obj_fightbt.y, obj_s_fakefightbt);
|
|
1491
|
with (obj_fightbt)
|
|
1492
|
visible = false;
|
|
1493
|
global.idealborder[0] = -10;
|
|
1494
|
global.idealborder[3] = 999;
|
|
1495
|
global.faceemotion = 9;
|
|
1496
|
sweat = 3;
|
|
1497
|
bounce = 3;
|
|
1498
|
with (obj_heart)
|
|
1499
|
{
|
|
1500
|
ignore_border = 1;
|
|
1501
|
movement = 1;
|
|
1502
|
speed = 0;
|
|
1503
|
}
|
|
1504
|
}
|
|
1505
|
if (sleep_c == 1)
|
|
1506
|
{
|
|
1507
|
if (lac > 60)
|
|
1508
|
{
|
|
1509
|
if (sleep_t < -10)
|
|
1510
|
sleep_t += 1;
|
|
1511
|
}
|
|
1512
|
else
|
|
1513
|
{
|
|
1514
|
sleep_t += 1;
|
|
1515
|
}
|
|
1516
|
if (sleep_t < 1200)
|
|
1517
|
{
|
|
1518
|
if (obj_heart.x < (obj_emptyborder_s.x + 10))
|
|
1519
|
{
|
|
1520
|
snd_play(snd_bell);
|
|
1521
|
obj_heart.x = obj_emptyborder_s.x + 78;
|
|
1522
|
obj_heart.y = obj_emptyborder_s.y + 78;
|
|
1523
|
sleep_t = -95;
|
|
1524
|
facetype = 1;
|
|
1525
|
global.faceemotion = 0;
|
|
1526
|
}
|
|
1527
|
}
|
|
1528
|
if (sleep_t == -92)
|
|
1529
|
facetype = 0;
|
|
1530
|
if (sleep_t == 0)
|
|
1531
|
global.faceemotion = 9;
|
|
1532
|
if (sleep_t == 300)
|
|
1533
|
{
|
|
1534
|
global.faceemotion = 12;
|
|
1535
|
if (sweat > 0)
|
|
1536
|
sweat -= 1;
|
|
1537
|
}
|
|
1538
|
if (sleep_t == 600)
|
|
1539
|
{
|
|
1540
|
global.faceemotion = 13;
|
|
1541
|
if (sweat > 0)
|
|
1542
|
sweat -= 1;
|
|
1543
|
}
|
|
1544
|
if (sleep_t == 900)
|
|
1545
|
{
|
|
1546
|
global.faceemotion = 14;
|
|
1547
|
if (sweat > 0)
|
|
1548
|
sweat -= 1;
|
|
1549
|
}
|
|
1550
|
if (sleep_t == 1200)
|
|
1551
|
{
|
|
1552
|
global.faceemotion = 4;
|
|
1553
|
asleep = 1;
|
|
1554
|
sleep_c = 2;
|
|
1555
|
}
|
|
1556
|
}
|
|
1557
|
if (global.km > 40)
|
|
1558
|
global.km = 40;
|
|
1559
|
if (global.km >= global.hp)
|
|
1560
|
global.km = global.hp - 1;
|
|
1561
|
if (global.km > 0 && global.hp > 1)
|
|
1562
|
{
|
|
1563
|
km_t += 1;
|
|
1564
|
if (prevhp == global.hp)
|
|
1565
|
{
|
|
1566
|
km_bonus = 0;
|
|
1567
|
if (global.inv >= 45)
|
|
1568
|
km_bonus = choose(0, 1);
|
|
1569
|
if (global.inv >= 60)
|
|
1570
|
km_bonus = choose(0, 1, 1);
|
|
1571
|
if (global.inv >= 75)
|
|
1572
|
km_bonus = 1;
|
|
1573
|
if (km_t >= (1 + km_bonus) && global.km >= 40)
|
|
1574
|
{
|
|
1575
|
km_t = 0;
|
|
1576
|
global.hp -= 1;
|
|
1577
|
global.km -= 1;
|
|
1578
|
}
|
|
1579
|
if (km_t >= (2 + (km_bonus * 2)) && global.km >= 30)
|
|
1580
|
{
|
|
1581
|
km_t = 0;
|
|
1582
|
global.hp -= 1;
|
|
1583
|
global.km -= 1;
|
|
1584
|
}
|
|
1585
|
if (km_t >= (5 + (km_bonus * 3)) && global.km >= 20)
|
|
1586
|
{
|
|
1587
|
km_t = 0;
|
|
1588
|
global.hp -= 1;
|
|
1589
|
global.km -= 1;
|
|
1590
|
}
|
|
1591
|
if (km_t >= (15 + (km_bonus * 5)) && global.km >= 10)
|
|
1592
|
{
|
|
1593
|
km_t = 0;
|
|
1594
|
global.hp -= 1;
|
|
1595
|
global.km -= 1;
|
|
1596
|
}
|
|
1597
|
if (km_t >= (30 + (km_bonus * 10)))
|
|
1598
|
{
|
|
1599
|
km_t = 0;
|
|
1600
|
global.hp -= 1;
|
|
1601
|
global.km -= 1;
|
|
1602
|
}
|
|
1603
|
if (global.hp <= 0)
|
|
1604
|
global.hp = 1;
|
|
1605
|
}
|
|
1606
|
prevhp = global.hp;
|
|
1607
|
}
|