Undertale script viewer

← back to main script listing

gml_Object_obj_asgoreb_Step_0

(view raw script w/o annotations or w/e)
1
if (global.mnfight == 3)
2
    attacked = 0;
3
if (alarm[5] > 0)
4
{
5
    if (global.monster[0] == 1)
6
    {
7
        if (global.monsterinstance[0].alarm[5] > alarm[5])
gml_Object_obj_asgoreb_Alarm_5.gml

talked = 0; global.mnfight = 2; ttttt = 0; if (turns == 4) ttttt = 1; if (turns == 8) ttttt = 1; if (turns == 12) ttttt = 1; if (turns == 16) ttttt = 1; if (turns == 20) ttttt = 1; if (turns == 23) ttttt = 1; if (ttttt == 0) global.border = 30;
8
            alarm[5] = global.monsterinstance[0].alarm[5];
gml_Object_obj_asgoreb_Alarm_5.gml

talked = 0; global.mnfight = 2; ttttt = 0; if (turns == 4) ttttt = 1; if (turns == 8) ttttt = 1; if (turns == 12) ttttt = 1; if (turns == 16) ttttt = 1; if (turns == 20) ttttt = 1; if (turns == 23) ttttt = 1; if (ttttt == 0) global.border = 30;
9
    }
10
    if (global.monster[1] == 1)
11
    {
12
        if (global.monsterinstance[1].alarm[5] > alarm[5])
gml_Object_obj_asgoreb_Alarm_5.gml

talked = 0; global.mnfight = 2; ttttt = 0; if (turns == 4) ttttt = 1; if (turns == 8) ttttt = 1; if (turns == 12) ttttt = 1; if (turns == 16) ttttt = 1; if (turns == 20) ttttt = 1; if (turns == 23) ttttt = 1; if (ttttt == 0) global.border = 30;
13
            alarm[5] = global.monsterinstance[1].alarm[5];
gml_Object_obj_asgoreb_Alarm_5.gml

talked = 0; global.mnfight = 2; ttttt = 0; if (turns == 4) ttttt = 1; if (turns == 8) ttttt = 1; if (turns == 12) ttttt = 1; if (turns == 16) ttttt = 1; if (turns == 20) ttttt = 1; if (turns == 23) ttttt = 1; if (ttttt == 0) global.border = 30;
14
    }
15
    if (global.monster[2] == 1)
16
    {
17
        if (global.monsterinstance[2].alarm[5] > alarm[5])
gml_Object_obj_asgoreb_Alarm_5.gml

talked = 0; global.mnfight = 2; ttttt = 0; if (turns == 4) ttttt = 1; if (turns == 8) ttttt = 1; if (turns == 12) ttttt = 1; if (turns == 16) ttttt = 1; if (turns == 20) ttttt = 1; if (turns == 23) ttttt = 1; if (ttttt == 0) global.border = 30;
18
            alarm[5] = global.monsterinstance[2].alarm[5];
gml_Object_obj_asgoreb_Alarm_5.gml

talked = 0; global.mnfight = 2; ttttt = 0; if (turns == 4) ttttt = 1; if (turns == 8) ttttt = 1; if (turns == 12) ttttt = 1; if (turns == 16) ttttt = 1; if (turns == 20) ttttt = 1; if (turns == 23) ttttt = 1; if (ttttt == 0) global.border = 30;
19
    }
20
}
21
if (global.mnfight == 1)
22
{
23
    if (talked == 0)
24
    {
25
        alarm[5] = 10;
gml_Object_obj_asgoreb_Alarm_5.gml

talked = 0; global.mnfight = 2; ttttt = 0; if (turns == 4) ttttt = 1; if (turns == 8) ttttt = 1; if (turns == 12) ttttt = 1; if (turns == 16) ttttt = 1; if (turns == 20) ttttt = 1; if (turns == 23) ttttt = 1; if (ttttt == 0) global.border = 30;
26
        alarm[6] = 1;
gml_Object_obj_asgoreb_Alarm_6.gml

mycommand = round(random(100)); turns += 1; global.border = 29; obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8; obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8;
27
        talked = 1;
28
        global.heard = 0;
29
    }
30
}
31
if (global.hurtanim[myself] == 1)
32
{
33
    shudder = 8;
34
    alarm[3] = global.damagetimer;
gml_Object_obj_asgoreb_Alarm_3.gml

if ((global.monsterhp[myself] - takedamage) <= 500) { dmgwriter = instance_create(x, y + 150, obj_dmgwriter); global.fivedamage = global.monsterhp[myself] - 30; if (global.fivedamage <= 0) global.fivedamage = 1; with (dmgwriter) dmg = global.fivedamage; instance_create(128, 46, obj_asgore_lastcutscene); caster_free(all); obj_purplegradienter.fade = 1; with (obj_orangeparticlegen) instance_destroy(); snd_play(snd_damage); with (mypart1) instance_destroy(); with (obj_asgorespear) instance_destroy(); instance_destroy(); } else { if (mypart1.pause != 1) { dmgwriter = instance_create(x, y + 150, obj_dmgwriter); global.damage = takedamage; with (dmgwriter) dmg = global.damage; mypart1.pause = 1; snd_play(snd_damage); alarm[8] = 11; } if (sha == 0) sha = x; x = sha + shudder; if (shudder < 0) shudder = -(shudder + 1); else shudder = -shudder; if (shudder == 0) { sha = 0; global.hurtanim[myself] = 2; exit; } alarm[3] = 2; }
35
    global.hurtanim[myself] = 3;
36
}
37
if (global.hurtanim[myself] == 2)
38
{
39
    global.monsterhp[myself] -= takedamage;
40
    with (dmgwriter)
41
alarm[2]
42
    if (global.monsterhp[myself] >= 1)
43
    {
44
        global.hurtanim[myself] = 0;
45
        mypart1.pause = 0;
46
        global.myfight = 0;
47
        global.mnfight = 1;
48
    }
49
    else
50
    {
51
        global.myfight = 0;
52
        global.mnfight = 1;
53
        killed = 1;
54
        instance_destroy();
55
    }
56
}
57
if (global.hurtanim[myself] == 5)
58
{
59
    global.damage = 0;
60
    instance_create(x, y - 24, obj_dmgwriter);
61
    with (obj_dmgwriter)
62
alarm[2]
63
    global.myfight = 0;
64
    global.mnfight = 1;
65
    global.hurtanim[myself] = 0;
66
}
67
if (global.mnfight == 2)
68
{
69
    if (attacked == 0)
70
    {
71
        pop = scr_monstersum
scr_monstersum

return global.monster[0] + global.monster[1] + global.monster[2];
();
72
        global.turntimer = 180;
73
        global.firingrate = 10;
74
        if (pop == 3)
75
            global.firingrate = global.firingrate * 2.5;
76
        if (pop == 2)
77
            global.firingrate = global.firingrate * 1.8;
78
        if (turns == 1)
79
        {
80
            global.turntimer = 110;
81
            gen = instance_create(0, 0, obj_handbulletgen);
82
            gen.type = 1;
83
        }
84
        if (turns == 2)
85
        {
86
            global.turntimer = 160;
87
            gen = instance_create(0, 0, obj_asgoreattackgen);
88
            gen.t = 1;
89
        }
90
        if (turns == 3)
91
        {
92
            global.turntimer = 180;
93
            gen = instance_create(0, 0, obj_sinefiregen_asg_lv2_usethis);
94
        }
95
        if (turns == 4)
96
        {
97
            global.turntimer = 9999;
98
            gen = instance_create(0, 0, obj_asgore_spearswipegen);
99
            gen.diff = 0;
100
        }
101
        if (turns == 5)
102
        {
103
            global.turntimer = 175;
104
            gen = instance_create(0, 0, obj_randomhandgen);
105
            gen.factor = 40;
106
        }
107
        if (turns == 6)
108
        {
109
            global.turntimer = 190;
110
            gen = instance_create(0, 0, obj_cfiregen);
111
            gen.diff = 0;
112
        }
113
        if (turns == 7)
114
        {
115
            global.turntimer = 160;
116
            gen = instance_create(0, 0, obj_firestormgen);
117
            gen.diff = 0;
118
            gen.lv = 1;
119
        }
120
        if (turns == 8)
121
        {
122
            global.turntimer = 9999;
123
            gen = instance_create(0, 0, obj_asgore_spearswipegen);
124
            gen.diff = 1;
125
        }
126
        if (turns == 9)
127
        {
128
            global.turntimer = 145;
129
            gen = instance_create(0, 0, obj_asgoreattackgen);
130
            gen.t = 2;
131
        }
132
        if (turns == 10)
133
        {
134
            global.turntimer = 190;
135
            gen = instance_create(0, 0, obj_randomhandgen);
136
            gen.factor = 35;
137
        }
138
        if (turns == 11)
139
        {
140
            global.turntimer = 180;
141
            gen = instance_create(0, 0, obj_cfiregen);
142
            gen.diff = 1;
143
        }
144
        if (turns == 12)
145
        {
146
            global.turntimer = 9999;
147
            gen = instance_create(0, 0, obj_asgore_spearswipegen);
148
            gen.diff = 1;
149
        }
150
        if (turns == 13)
151
        {
152
            global.turntimer = 140;
153
            gen = instance_create(0, 0, obj_firestormgen);
154
            gen.lv = 2;
155
        }
156
        if (turns == 14)
157
        {
158
            global.turntimer = 190;
159
            gen = instance_create(0, 0, obj_sinefiregen_asglv3);
160
        }
161
        if (turns == 15)
162
        {
163
            global.turntimer = 175;
164
            gen = instance_create(0, 0, obj_cfiregen);
165
            gen.diff = 2;
166
        }
167
        if (turns == 16)
168
        {
169
            global.turntimer = 9999;
170
            gen = instance_create(0, 0, obj_asgore_spearswipegen);
171
            gen.diff = 2;
172
        }
173
        if (turns == 17)
174
        {
175
            global.turntimer = 173;
176
            gen = instance_create(0, 0, obj_randomhandgen);
177
            gen.factor = 30;
178
        }
179
        if (turns == 18)
180
        {
181
            global.turntimer = 188;
182
            gen = instance_create(0, 0, obj_cfiregen);
183
            gen.diff = 3;
184
        }
185
        if (turns == 19)
186
        {
187
            global.turntimer = 130;
188
            gen = instance_create(0, 0, obj_firestormgen);
189
            gen.lv = 3;
190
        }
191
        if (turns == 20)
192
        {
193
            global.turntimer = 9999;
194
            gen = instance_create(0, 0, obj_asgore_spearswipegen);
195
            gen.diff = 3;
196
        }
197
        if (turns == 21 || turns == 22)
198
        {
199
            if (global.monsterdef[myself] > -90)
200
                global.monsterdef[myself] -= 5;
201
            ch = choose(0, 1, 2, 3, 4);
202
            if (ch == 0)
203
            {
204
                global.turntimer = 188;
205
                gen = instance_create(0, 0, obj_cfiregen);
206
                gen.diff = 3;
207
            }
208
            if (ch == 1)
209
            {
210
                global.turntimer = 130;
211
                gen = instance_create(0, 0, obj_firestormgen);
212
                gen.lv = 3;
213
            }
214
            if (ch == 2)
215
            {
216
                global.turntimer = 173;
217
                gen = instance_create(0, 0, obj_randomhandgen);
218
                gen.factor = 30;
219
            }
220
            if (ch == 3)
221
            {
222
                global.turntimer = 190;
223
                gen = instance_create(0, 0, obj_sinefiregen_asglv3);
224
            }
225
            if (ch == 4)
226
            {
227
                global.turntimer = 145;
228
                gen = instance_create(0, 0, obj_asgoreattackgen);
229
                gen.t = 2;
230
            }
231
        }
232
        if (turns >= 20)
233
        {
234
            if (global.monsterdef[myself] > -120)
235
                global.monsterdef[myself] -= 10;
236
        }
237
        if (turns == 23)
238
        {
239
            global.turntimer = 9999;
240
            gen = instance_create(0, 0, obj_asgore_spearswipegen);
241
            gen.diff = 3;
242
            turns = 20;
243
        }
244
        turnoff = 1;
245
        toriel = 0;
246
        if (toriel == 1)
247
        {
248
            if (mycommand >= 0 && mycommand <= 20)
249
            {
250
                global.turntimer = 140;
251
                global.firingrate = 5;
252
                gen = instance_create(0, 0, obj_1sidegen);
253
                gen.bullettype = 7;
254
            }
255
            if (mycommand > 20 && mycommand <= 40)
256
            {
257
                global.turntimer = 140;
258
                global.firingrate = 2;
259
                gen = instance_create(0, 0, obj_1sidegen);
260
                gen.bullettype = 8;
261
            }
262
            if (mycommand > 80 && mycommand <= 100)
263
            {
264
                global.turntimer = 200;
265
                global.firingrate = 2;
266
                gen = instance_create(global.idealborder[0] - 45, global.idealborder[2] + 5, blt_handbullet1);
267
                if (global.hp > 6)
268
                    gen.dmg = 5;
269
            }
270
            if (mycommand > 60 && mycommand <= 80)
271
            {
272
                global.turntimer = 200;
273
                global.firingrate = 2;
274
                gen = instance_create(global.idealborder[0] - 45, global.idealborder[2] + 5, blt_handbullet1);
275
                gen.x1 = 1;
276
                if (global.hp > 6)
277
                    gen.dmg = 5;
278
                gen2 = instance_create(global.idealborder[1] + 5, global.idealborder[3] - 15, blt_handbullet2);
279
                if (global.hp > 6)
280
                    gen2.dmg = 5;
281
            }
282
            if (mycommand > 40 && mycommand <= 60)
283
            {
284
                global.turntimer = 140;
285
                global.firingrate = 6;
286
                gen = instance_create(0, 0, obj_1sidegen);
287
                gen.bullettype = 10;
288
            }
289
        }
290
        gen.myself = myself;
291
        if (mycommand >= 0)
292
            global.msg[0] = 
* ...
scr_gettext
scr_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_asgoreb_652")
;
293
        if (global.monsterhp[myself] <= (global.monstermaxhp[myself] / 4))
294
            global.msg[0] = 
* Asgore has low HP.
scr_gettext
scr_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_asgoreb_658")
;
295
        attacked = 1;
296
    }
297
    if (mercymod == 999999)
298
    {
299
        global.turntimer = -1;
300
        global.mnfight = 3;
301
    }
302
    whatiheard = -1;
303
}
304
if (global.myfight == 2)
305
{
306
    if (whatiheard != -1)
307
    {
308
        if (global.heard == 0)
309
        {
310
            if (whatiheard == 0)
311
            {
312
                global.msc = 0;
313
                global.msg[0] = 
* ASGORE 80 ATK 80 DEF Wait for input^
scr_gettext
scr_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_asgoreb_692")
;
314
                OBJ_WRITER.halt = 3;
315
                iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
316
                with (iii)
317
                    halt = 0;
318
                whatiheard = 9;
319
            }
320
            if (whatiheard == 3)
321
            {
322
                ossafe_ini_open("undertale.ini");
323
                ky = ini_read_real("Asgore", "KillYou", 0);
324
                ossafe_ini_close();
325
                global.msc = 0;
326
                global.msg[0] = 
* But there was nothing to
say.Wait for input^
scr_gettext
scr_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_asgoreb_705")
;
327
                if (global.kills == 0)
328
                {
329
                    if (talk_x == 0)
330
                    {
331
                        global.msg[0] = 
* You quietly tell ASGORE
you don't want to fight
him.Wait for input
scr_gettext
scr_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_asgoreb_711")
;
332
                        global.msg[1] = 
* His hands tremble for a
moment.Wait for input^
scr_gettext
scr_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_asgoreb_712")
;
333
                    }
334
                    if (talk_x == 1)
335
                    {
336
                        global.msg[0] = 
* You tell ASGORE that you
don't want to fight him.Wait for input
scr_gettext
scr_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_asgoreb_716")
;
337
                        global.msg[1] = 
* His breathing gets funny
for a moment.Wait for input^
scr_gettext
scr_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_asgoreb_717")
;
338
                    }
339
                    if (talk_x == 2)
340
                    {
341
                        global.msg[0] = 
* You firmly tell ASGORE to
STOP fighting.Wait for input
scr_gettext
scr_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_asgoreb_721")
;
342
                        global.msg[1] = 
* Recollection flashes in his
eyes...Wait for input
scr_gettext
scr_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_asgoreb_722")
;
343
                        global.msg[2] = 
* ASGORE's ATTACK dropped!Delay 11
* ASGORE's DEFENSE dropped!Wait for input^
scr_gettext
scr_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_asgoreb_723")
;
344
                        global.monsteratk[myself] -= 1;
345
                        global.monsterdef[myself] -= 10;
346
                    }
347
                    if (talk_x >= 3 && talk_x != 8)
348
                        global.msg[0] = 
* Seems talking won't do any
more good.Wait for input^
scr_gettext
scr_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_asgoreb_729")
;
349
                    if (talk_x == 8)
350
                        global.msg[0] = 
* All you can do is FIGHT.Wait for input^
scr_gettext
scr_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_asgoreb_731")
;
351
                }
352
                if (talk_x == 0 && ky > 0)
353
                {
354
                    var vari = 
too many times
to count
scr_gettext
scr_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_asgoreb_killcount_10")
;
355
                    if (ky == 1)
356
                        vari = 
once before
scr_gettext
scr_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_asgoreb_killcount_1")
;
357
                    if (ky == 2)
358
                        vari = 
twice before
scr_gettext
scr_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_asgoreb_killcount_2")
;
359
                    if (ky == 3)
360
                        vari = 
three times
scr_gettext
scr_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_asgoreb_killcount_3")
;
361
                    if (ky == 4)
362
                        vari = 
four times
scr_gettext
scr_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_asgoreb_killcount_4")
;
363
                    if (ky == 5)
364
                        vari = 
five times
scr_gettext
scr_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_asgoreb_killcount_5")
;
365
                    if (ky == 6)
366
                        vari = 
six times
scr_gettext
scr_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_asgoreb_killcount_6")
;
367
                    if (ky == 7)
368
                        vari = 
seven times
scr_gettext
scr_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_asgoreb_killcount_7")
;
369
                    if (ky == 8)
370
                        vari = 
eight times
scr_gettext
scr_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_asgoreb_killcount_8")
;
371
                    if (ky == 9)
372
                        vari = 
nine times
scr_gettext
scr_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_asgoreb_killcount_9")
;
373
                    global.msg[0] = scr_gettext
scr_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_asgoreb_748", vari);
374
                    global.msg[1] = 
* He nods sadly.Wait for input^
scr_gettext
scr_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_asgoreb_749")
;
375
                    if (ky > 4)
376
                        global.msg[1] = 
* He nods grievously.Wait for input^
scr_gettext
scr_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_asgoreb_751")
;
377
                    if (ky > 9)
378
                        global.msg[1] = 
* He nods pitifully.Wait for input^
scr_gettext
scr_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_asgoreb_753")
;
379
                }
380
                talk_x += 1;
381
                OBJ_WRITER.halt = 3;
382
                iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
383
                with (iii)
384
                    halt = 0;
385
            }
386
            global.heard = 1;
387
        }
388
    }
389
}
390
if (global.myfight == 4)
391
{
392
    if (global.mercyuse == 0)
393
    {
394
        script_execute(scr_mercystandard);
395
        if (mercy < 0)
396
            instance_destroy();
397
    }
398
}
399
if (mercymod == 222 && instance_exists(OBJ_WRITER) == 0)
400
{
401
    script_execute(scr_mercystandard);
402
    if (mercy < 0)
403
        instance_destroy();
404
}
405
curatk = global.monsteratk[myself];
406
if (turnoff == 1 && global.turntimer <= 0)
407
{
408
    dont = 0;
409
    global.turntimer = -1;
410
    turnoff = 0;
411
    global.mnfight = 3;
412
    global.myfight = -1;
413
}