Undertale script viewer

← back to main script listing

gml_Object_obj_undyne_ex_Step_0

(view raw script w/o annotations or w/e)
1
if (global.mnfight == 4 && attacked == 1)
2
{
3
    if (hitno > 0)
4
    {
5
        if (hitno >= 1 && rating < 10)
6
            rating += 1;
7
        if (hitno >= 3 && rating < 10)
8
            rating = 10;
9
    }
10
    else if (rating > 8)
11
    {
12
        rating -= 1;
13
    }
14
    attacked = 0;
15
    global.mnfight = 5;
16
    if (global.border == 12)
17
        global.border = 13;
18
    SCR_BORDERSETUP
SCR_BORDERSETUP

if (global.border == 0) { global.idealborder[0] = 32; global.idealborder[1] = 602; global.idealborder[2] = 250; global.idealborder[3] = 385; } if (global.border == 1) { global.idealborder[0] = 217; global.idealborder[1] = 417; global.idealborder[2] = 180; global.idealborder[3] = 385; } if (global.border == 2) { global.idealborder[0] = 217; global.idealborder[1] = 417; global.idealborder[2] = 125; global.idealborder[3] = 385; } if (global.border == 3) { global.idealborder[0] = 237; global.idealborder[1] = 397; global.idealborder[2] = 250; global.idealborder[3] = 385; } if (global.border == 4) { global.idealborder[0] = 267; global.idealborder[1] = 367; global.idealborder[2] = 295; global.idealborder[3] = 385; } if (global.border == 5) { global.idealborder[0] = 192; global.idealborder[1] = 442; global.idealborder[2] = 250; global.idealborder[3] = 385; } if (global.border == 6) { global.idealborder[0] = 227; global.idealborder[1] = 407; global.idealborder[2] = 250; global.idealborder[3] = 385; } if (global.border == 7) { global.idealborder[0] = 227; global.idealborder[1] = 407; global.idealborder[2] = 200; global.idealborder[3] = 385; } if (global.border == 8) { global.idealborder[0] = 202; global.idealborder[1] = 432; global.idealborder[2] = 290; global.idealborder[3] = 385; } if (global.border == 9) { global.idealborder[0] = 132; global.idealborder[1] = 492; global.idealborder[2] = 250; global.idealborder[3] = 385; } if (global.border == 10) { global.idealborder[0] = 147; global.idealborder[1] = 487; global.idealborder[2] = 200; global.idealborder[3] = 385; } if (global.border == 11) { global.idealborder[0] = 32; global.idealborder[1] = 602; global.idealborder[2] = 330; global.idealborder[3] = 465; } if (global.border == 12) { global.idealborder[0] = (room_width / 2) - 40; global.idealborder[1] = (room_width / 2) + 40; global.idealborder[2] = (room_height / 2) - 40; global.idealborder[3] = (room_height / 2) + 40; } if (global.border == 13) { global.idealborder[0] = (room_width / 2) - 40; global.idealborder[1] = (room_width / 2) + 40; global.idealborder[2] = 250; global.idealborder[3] = 385; } if (global.border == 14) { global.idealborder[0] = (room_width / 2) - 35; ...
();
19
    alarm[7] = 10;
20
}
21
if (alarm[5] > 0)
22
{
23
    if (global.monster[0] == 1)
24
    {
25
        if (global.monsterinstance[0].alarm[5] > alarm[5])
gml_Object_obj_undyne_ex_Alarm_5.gml

talked = 0; whatiheard = -1; global.mnfight = 2; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
26
            alarm[5] = global.monsterinstance[0].alarm[5];
gml_Object_obj_undyne_ex_Alarm_5.gml

talked = 0; whatiheard = -1; global.mnfight = 2; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
27
    }
28
    if (global.monster[1] == 1)
29
    {
30
        if (global.monsterinstance[1].alarm[5] > alarm[5])
gml_Object_obj_undyne_ex_Alarm_5.gml

talked = 0; whatiheard = -1; global.mnfight = 2; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
31
            alarm[5] = global.monsterinstance[1].alarm[5];
gml_Object_obj_undyne_ex_Alarm_5.gml

talked = 0; whatiheard = -1; global.mnfight = 2; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
32
    }
33
    if (global.monster[2] == 1)
34
    {
35
        if (global.monsterinstance[2].alarm[5] > alarm[5])
gml_Object_obj_undyne_ex_Alarm_5.gml

talked = 0; whatiheard = -1; global.mnfight = 2; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
36
            alarm[5] = global.monsterinstance[2].alarm[5];
gml_Object_obj_undyne_ex_Alarm_5.gml

talked = 0; whatiheard = -1; global.mnfight = 2; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
37
    }
38
}
39
if (global.mnfight == 1)
40
{
41
    if (talked == 0)
42
    {
43
        alarm[5] = 15;
gml_Object_obj_undyne_ex_Alarm_5.gml

talked = 0; whatiheard = -1; global.mnfight = 2; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
44
        alarm[6] = 1;
gml_Object_obj_undyne_ex_Alarm_6.gml

blcontype = 0; uncancel = 0; gg = floor(random(3)); mycommand = round(random(100)); if (mycommand > 50 && obj_heart.sprite_index != spr_heartgreen) borderspec = 1; else borderspec = 0; global.border = 6; obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8; obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 13; obj_heart.x = (room_width / 2) - 8; obj_heart.y = obj_uborder.y + 34; greenlock = 1; } else { obj_heart.x = (room_width / 2) - 8; obj_heart.y = obj_uborder.y + 34; global.border = 31; if (orderb == 0 || orderb == 6) global.border = 7; if (orderb == 1 || orderb == 7) global.border = 14; } damagecause = 0;
45
        talked = 1;
46
        global.heard = 0;
47
        if (order == -35)
48
        {
49
            global.mnfight = 99;
50
            global.bmenuno = 4;
51
            obj_heart.x = -400;
52
            alarm[5] = -2;
gml_Object_obj_undyne_ex_Alarm_5.gml

talked = 0; whatiheard = -1; global.mnfight = 2; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
53
            alarm[6] = -2;
gml_Object_obj_undyne_ex_Alarm_6.gml

blcontype = 0; uncancel = 0; gg = floor(random(3)); mycommand = round(random(100)); if (mycommand > 50 && obj_heart.sprite_index != spr_heartgreen) borderspec = 1; else borderspec = 0; global.border = 6; obj_heart.x = round((global.idealborder[0] + global.idealborder[1]) / 2) - 8; obj_heart.y = round((global.idealborder[2] + global.idealborder[3]) / 2) - 8; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 13; obj_heart.x = (room_width / 2) - 8; obj_heart.y = obj_uborder.y + 34; greenlock = 1; } else { obj_heart.x = (room_width / 2) - 8; obj_heart.y = obj_uborder.y + 34; global.border = 31; if (orderb == 0 || orderb == 6) global.border = 7; if (orderb == 1 || orderb == 7) global.border = 14; } damagecause = 0;
54
            con = 60;
55
        }
56
    }
57
}
58
if (uncancel == 1)
59
{
60
    alarm[5] = 100;
gml_Object_obj_undyne_ex_Alarm_5.gml

talked = 0; whatiheard = -1; global.mnfight = 2; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
61
    if (instance_exists(OBJ_WRITER) == 0)
62
    {
63
        alarm[5] = 1;
gml_Object_obj_undyne_ex_Alarm_5.gml

talked = 0; whatiheard = -1; global.mnfight = 2; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
64
        uncancel = 0;
65
    }
66
}
67
if (global.hurtanim[myself] == 1)
68
{
69
    shudder = 8;
70
    alarm[3] = global.damagetimer;
gml_Object_obj_undyne_ex_Alarm_3.gml

if (mypart1.pause != 1) { dmgwriter = instance_create(x, y + 150, obj_dmgwriter); global.damage = takedamage; global.damage *= 21; takedamage *= 21; if (takedamage < 600) { takedamage = 600 + floor(random(67)); global.damage = takedamage; } with (dmgwriter) dmg = global.damage; shk = instance_create(0, 0, obj_objshake); shk.obj = mypart1; if ((global.monsterhp[myself] - takedamage) <= 0) { caster_free(all); global.faceemotion = 0; mypart1.facetype = 2; shk.shaketime = 5; } mypart1.pause = 1; snd_play(snd_damage); alarm[8] } if (sha == 0) sha = x; x = sha + shudder; if (shudder < 0) shudder = -(shudder + 1); else shudder = -shudder; if (shudder == 0) { sha = 0; global.hurtanim[myself] = 2; exit; } alarm[3] = 2;
71
    global.hurtanim[myself] = 3;
72
}
73
if (global.hurtanim[myself] == 2)
74
{
75
    global.monsterhp[myself] -= takedamage;
76
    with (dmgwriter)
77
alarm[2]
78
    if (global.monsterhp[myself] > 0)
79
    {
80
        global.hurtanim[myself] = 0;
81
        mypart1.pause = 0;
82
        global.myfight = 0;
83
        global.mnfight = 1;
84
    }
85
    else
86
    {
87
        global.myfight = -99;
88
        global.mnfight = -99;
89
        global.hurtanim[myself] = 0;
90
        con = 50;
91
    }
92
}
93
if (global.hurtanim[myself] == 5)
94
{
95
    global.damage = 0;
96
    instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
97
    with (obj_dmgwriter)
98
alarm[2]
99
    global.myfight = 0;
100
    global.mnfight = 1;
101
    global.hurtanim[myself] = 0;
102
}
103
if (greenlock == 1 && global.mnfight > 0)
104
{
105
    if (obj_heart.sprite_index == spr_heartgreen)
106
        obj_heart.y = obj_uborder.y + 34;
107
    else
108
        greenlock = 0;
109
}
110
else
111
{
112
    greenlock = 0;
113
}
114
if (darkify == 1)
115
{
116
    if (pseudodarker.image_alpha < 0.5)
117
        pseudodarker.image_alpha += 0.04;
118
    else
119
        darkify = 2;
120
    obj_borderparent.image_alpha = 1 - pseudodarker.image_alpha;
121
}
122
if (darkify == 3)
123
{
124
    if (pseudodarker.image_alpha > 0)
125
        pseudodarker.image_alpha -= 0.04;
126
    obj_borderparent.image_alpha = 1 - pseudodarker.image_alpha;
127
    if (pseudodarker.image_alpha <= 0)
128
    {
129
        darkify = 0;
130
        with (pseudodarker)
131
            instance_destroy();
132
    }
133
}
134
if (global.hurtanim[myself] == 5)
135
{
136
    global.damage = 0;
137
    instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
138
    with (obj_dmgwriter)
139
alarm[2]
140
    global.myfight = 0;
141
    global.mnfight = 1;
142
    global.hurtanim[myself] = 0;
143
}
144
if (global.mnfight == 2)
145
{
146
    if (attacked == 0)
147
    {
148
        hitno = 0;
149
        xx = room_width / 2;
150
        yy = room_height / 2;
151
        global.turntimer = 300;
152
        global.firingrate = 15;
153
        if (obj_heart.sprite_index == spr_heartgreen)
154
        {
155
            gen = instance_create(xx, yy, obj_spearblocker);
156
            gen.lesson = lesson;
157
            gen.rating = rating;
158
            gen.dmg = global.monsteratk[myself];
159
            with (gen)
160
                event_user(1);
161
        }
162
        else
163
        {
164
            if (orderb == 0 || orderb == 6)
165
            {
166
                borderspec = 0;
167
                global.turntimer = 240;
168
                event_user(2);
169
                ratingb += 1;
170
                lesson += 1;
171
                if (ratingb > 10)
172
                    ratingb = 10;
173
                if (ratingb < 8)
174
                    ratingb = 8;
175
                global.firingrate = 18 - ratingb;
176
                gen = instance_create(x, y, obj_spearbulletfollowgen);
177
                gen.dmg = global.monsteratk[myself];
178
            }
179
            if (orderb == 1 || orderb == 7)
180
            {
181
                global.turntimer = 220;
182
                borderspec = 1;
183
                ratingb += 1;
184
                lesson += 1;
185
                if (ratingb > 10)
186
                    ratingb = 10;
187
                if (ratingb < 8)
188
                    ratingb = 8;
189
                global.firingrate = 23 - ratingb;
190
                gen = instance_create(x, y, obj_risespearbulletgen);
191
                gen.dmg = global.monsteratk[myself];
192
            }
193
            if (orderb == 2 || orderb == 3)
194
            {
195
                borderspec = 0;
196
                global.turntimer = 215;
197
                ratingb += 1;
198
                lesson += 1;
199
                gen = instance_create(x, y, obj_rotspeargen_gen);
200
                gen.type = 0;
201
                gen.t = 0;
202
                gen.dmg = global.monsteratk[myself];
203
            }
204
            if (orderb == 4)
205
            {
206
                borderspec = 0;
207
                global.turntimer = 400;
208
                ratingb += 1;
209
                lesson += 1;
210
                gen = instance_create(x, y, obj_followspeargen_2);
211
                gen.dmg = global.monsteratk[myself];
212
            }
213
            if (orderb == 5)
214
            {
215
                borderspec = 0;
216
                global.turntimer = 215;
217
                ratingb += 1;
218
                lesson += 1;
219
                gen = instance_create(x, y, obj_rotspeargen_gen);
220
                gen.type = 1;
221
                gen.t = 1;
222
                gen.dmg = global.monsteratk[myself];
223
            }
224
            orderb += 1;
225
            if (orderb >= 8)
226
                orderb = 4;
227
        }
228
        gen.myself = myself;
229
        hitno = 0;
230
        attacked = 1;
231
        order += 1;
232
        lesson -= 1;
233
        if (mycommand >= 0)
234
            global.msg[0] = 
* The wind is howling...
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_undyne_ex_781")
;
235
    }
236
}
237
if (global.mnfight == 3 && darkify > 0 && darkify != 3)
238
    darkify = 3;
239
if (global.myfight == 2)
240
{
241
    if (whatiheard != -1)
242
    {
243
        if (global.heard == 0)
244
        {
245
            if (whatiheard == 0)
246
            {
247
                global.msc = 0;
248
                global.msg[0] = 
* UNDYNE THE UNDYING 99ATK 99DEF
* Heroine reformed by her own
DETERMINATION to save Earth.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_undyne_ex_808")
;
249
                OBJ_WRITER.halt = 3;
250
                iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
251
                with (iii)
252
                    halt = 0;
253
            }
254
            global.heard = 1;
255
        }
256
    }
257
}
258
siner += 1;
259
if (instance_exists(obj_boxsiner))
260
    obj_boxsiner.x = obj_boxsiner.xstart + (sin(siner / 24) * 40);
261
if (global.myfight == 4)
262
{
263
    if (global.mercyuse == 0)
264
    {
265
        mercied += 1;
266
        script_execute(scr_mercystandard);
267
    }
268
}
269
if (obj_heart.sprite_index == spr_heartgreen && global.mnfight == 2)
270
    obj_heart.movement = 3;
271
if (global.mnfight == 2 && global.turntimer < 1 && obj_heart.sprite_index == spr_heart)
272
    global.mnfight = 4;
273
if (con == 50)
274
{
275
    con = 51;
276
    alarm[4] = 90;
277
}
278
if (con == 52)
279
{
280
    shakify = 2;
281
    mypart1.shakify = 1;
282
    myfight = 0;
283
    mnfight = 99;
284
    global.bmenuno = 4;
285
    global.border = 0;
286
    SCR_BORDERSETUP
SCR_BORDERSETUP

if (global.border == 0) { global.idealborder[0] = 32; global.idealborder[1] = 602; global.idealborder[2] = 250; global.idealborder[3] = 385; } if (global.border == 1) { global.idealborder[0] = 217; global.idealborder[1] = 417; global.idealborder[2] = 180; global.idealborder[3] = 385; } if (global.border == 2) { global.idealborder[0] = 217; global.idealborder[1] = 417; global.idealborder[2] = 125; global.idealborder[3] = 385; } if (global.border == 3) { global.idealborder[0] = 237; global.idealborder[1] = 397; global.idealborder[2] = 250; global.idealborder[3] = 385; } if (global.border == 4) { global.idealborder[0] = 267; global.idealborder[1] = 367; global.idealborder[2] = 295; global.idealborder[3] = 385; } if (global.border == 5) { global.idealborder[0] = 192; global.idealborder[1] = 442; global.idealborder[2] = 250; global.idealborder[3] = 385; } if (global.border == 6) { global.idealborder[0] = 227; global.idealborder[1] = 407; global.idealborder[2] = 250; global.idealborder[3] = 385; } if (global.border == 7) { global.idealborder[0] = 227; global.idealborder[1] = 407; global.idealborder[2] = 200; global.idealborder[3] = 385; } if (global.border == 8) { global.idealborder[0] = 202; global.idealborder[1] = 432; global.idealborder[2] = 290; global.idealborder[3] = 385; } if (global.border == 9) { global.idealborder[0] = 132; global.idealborder[1] = 492; global.idealborder[2] = 250; global.idealborder[3] = 385; } if (global.border == 10) { global.idealborder[0] = 147; global.idealborder[1] = 487; global.idealborder[2] = 200; global.idealborder[3] = 385; } if (global.border == 11) { global.idealborder[0] = 32; global.idealborder[1] = 602; global.idealborder[2] = 330; global.idealborder[3] = 465; } if (global.border == 12) { global.idealborder[0] = (room_width / 2) - 40; global.idealborder[1] = (room_width / 2) + 40; global.idealborder[2] = (room_height / 2) - 40; global.idealborder[3] = (room_height / 2) + 40; } if (global.border == 13) { global.idealborder[0] = (room_width / 2) - 40; global.idealborder[1] = (room_width / 2) + 40; global.idealborder[2] = 250; global.idealborder[3] = 385; } if (global.border == 14) { global.idealborder[0] = (room_width / 2) - 35; ...
();
287
    con = 53;
288
    global.msc = 0;
289
    global.typer = 94;
290
    global.msg[0] = 
Damn it...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_undyne_ex_863")
;
291
    global.msg[1] = 
So even THAT
power...Delay 11
It wasn't enough...?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_undyne_ex_864")
;
292
    global.msg[2] = 
...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_undyne_ex_865")
;
293
    global.msg[3] = 
\E1Heh...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_undyne_ex_866")
;
294
    global.msg[4] = 
Heheheh...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_undyne_ex_867")
;
295
    global.msg[5] = 
\E2If you...Delay 11Wait 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_undyne_ex_868")
;
296
    global.msg[6] = 
If you think I'm
gonna give up hope,Delay 11
you're wrong.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_undyne_ex_869")
;
297
    global.msg[7] = 
Cause I've...Delay 11
Got my friends
behind me.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_undyne_ex_870")
;
298
    global.msg[8] = 
\E3Alphys told me that
she would watch me
fight you...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_undyne_ex_871")
;
299
    global.msg[9] = 
\E4And if anything went
wrong,Delay 11 she would...Delay 11
evacuate everyone.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_undyne_ex_872")
;
300
    global.msg[10] = 
\E5By now she's called
ASGORE and told him
to absorb the 6
human SOULs.Wait for inputClose MessageClose Message
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_undyne_ex_873")
;
301
    scr_blcon_x
scr_blcon_x

scr_blcon(argument0, argument1, 0);
(blconx, blcony);
302
}
303
if (con == 53 && instance_exists(OBJ_WRITER) == 0)
304
{
305
    global.typer = 95;
306
    global.msg[0] = 
And with that
power...Wait for inputClose MessageClose Message
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_undyne_ex_881")
;
307
    melter = scr_marker
scr_marker

thismarker = instance_create(argument0, argument1, obj_npc_marker); thismarker.visible = true; thismarker.image_speed = 0; thismarker.sprite_index = argument2; return thismarker;
(mypart1.x - 20, -40, spr_undynex_melt);
308
    con = 54;
309
    scr_blcon_x
scr_blcon_x

scr_blcon(argument0, argument1, 0);
(blconx, blcony);
310
    with (mypart1)
311
        instance_destroy();
312
}
313
if (con == 54 && instance_exists(OBJ_WRITER) == 0)
314
{
315
    global.typer = 96;
316
    global.msg[0] = 
This world will
live on...!Wait for inputClose MessageClose Message
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_undyne_ex_893")
;
317
    melter.image_index = 1;
318
    con = 71;
319
    scr_blcon_x
scr_blcon_x

scr_blcon(argument0, argument1, 0);
(blconx, blcony);
320
}
321
if (con == 71 && instance_exists(OBJ_WRITER) == 0)
322
{
323
    global.monstersprite = melter.sprite_index;
324
    global.vaporspeed = 0;
325
    ddd = instance_create(melter.x, melter.y, obj_vaporized_new);
326
    with (ddd)
327
        scr_newvapordata
scr_newvapordata

if (argument0 == 41) mydata = "yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}yf}p+l}k5g}f0\0b}a0f0]}]/p/Y}\.s/X}\*W.k/W*X}\*Z/c/[*X}\*_.[/_*X}\*W,]2d*X}\*W/^*[)a*X}\*W3a)b*X}\*W6l*X}\*W6j)V*X}\*W6i)W*X}\*W6l*X}\*W6Z)f*X}\*W6Y)b)Y*X}\*W6l*X}\*W6l*X}\*W6e)[*X}\*W6l*X}\*W6l*X}\*W6c)]*X}\*W6b)^*X}\*W6l*X}\*W6a)_*X}\*W6`)`*X}\*W6j)V*X}\*W6_)a*X}\*W6^)b*X}\*W6h)X*X}\*Y4g)Y*X}],Y1\)b,X}_-Y.g-Z}b,Z+d-]}Y/Y-e.`}Y0[-_-\-X}[.W*Z-Y-Z2X}Z7Y0[2Z}_4Z*Z5[}e-b1_}yf}yf}~~~"; if (argument0 == 40) mydata = "yy_}yy_}yy_}yy_}yy_}yy_}yy_}yy_}yy_}yy_}yy_}yy_}yy_}yy_}yy_}yy_}p)o)p}o)q)o}n)s)n}n)s)n}m)u)m}m)u)m}m)u)m}m)l+[)m}l+Z+_0Y+l}j-Z-[3X-j}d4X,V+Z*V*V,W4d}[>W,V-Z+V,W=[}XBV+V7V+VAX}V
(35);
328
    ddd.sprite_index = melter.sprite_index;
329
    with (melter)
330
        instance_destroy();
331
    ddd.ht = ht;
332
    ddd.wd = wd;
333
    ddd.image_speed = 0;
334
    ddd.image_index = 1;
335
    global.kills += 1;
336
    global.xp += 1500;
337
    scr_levelup
scr_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; }
();
338
    con = 72;
339
    alarm[4] = 180;
340
}
341
if (con == 73)
342
{
343
    instance_create(x, y, obj_unfader);
344
    global.flag[350 status_undyne] = 1;
345
    global.flag[251 killed_undyne_ex] = 1;
346
    global.plot = 122;
347
    alarm[9] = 10;
gml_Object_obj_undyne_ex_Alarm_9.gml

caster_free(all); room_goto(global.currentroom);
348
    con = 74;
349
}
350
if (obj_heart.sprite_index == spr_heart)
351
    global.mercy = 1;
352
if (obj_heart.sprite_index == spr_heartgreen)
353
    global.mercy = 1;