Undertale script viewer

← back to main script listing

gml_Object_obj_undyneboss_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)
6
            rating += 1;
7
        if (hitno > 1)
8
            rating += 2;
9
        if (berserk == 1)
10
            rating -= 1;
11
    }
12
    else
13
    {
14
        if (rating >= 10 && lesson > 5)
15
            rating -= 2;
16
        else if (rating > 8)
17
            rating -= 1;
18
        if (berserk == 1)
19
        {
20
            if (rating > 6)
21
                rating -= 1;
22
        }
23
    }
24
    attacked = 0;
25
    global.mnfight = 5;
26
    if (global.border == 12)
27
        global.border = 13;
28
    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; ...
();
29
    alarm[7] = 10;
30
    if (instance_exists(obj_undynesiner2))
31
    {
32
        with (obj_undynesiner2)
33
            event_user(1);
34
    }
35
}
36
if (alarm[5] > 0)
37
{
38
    if (global.monster[0] == 1)
39
    {
40
        if (global.monsterinstance[0].alarm[5] > alarm[5])
gml_Object_obj_undyneboss_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; whatiheard = -1; global.mnfight = 2; if (borderspec == 0) global.border = 7; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
41
            alarm[5] = global.monsterinstance[0].alarm[5];
gml_Object_obj_undyneboss_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; whatiheard = -1; global.mnfight = 2; if (borderspec == 0) global.border = 7; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
42
    }
43
    if (global.monster[1] == 1)
44
    {
45
        if (global.monsterinstance[1].alarm[5] > alarm[5])
gml_Object_obj_undyneboss_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; whatiheard = -1; global.mnfight = 2; if (borderspec == 0) global.border = 7; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
46
            alarm[5] = global.monsterinstance[1].alarm[5];
gml_Object_obj_undyneboss_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; whatiheard = -1; global.mnfight = 2; if (borderspec == 0) global.border = 7; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
47
    }
48
    if (global.monster[2] == 1)
49
    {
50
        if (global.monsterinstance[2].alarm[5] > alarm[5])
gml_Object_obj_undyneboss_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; whatiheard = -1; global.mnfight = 2; if (borderspec == 0) global.border = 7; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
51
            alarm[5] = global.monsterinstance[2].alarm[5];
gml_Object_obj_undyneboss_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; whatiheard = -1; global.mnfight = 2; if (borderspec == 0) global.border = 7; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
52
    }
53
}
54
if (global.mnfight == 1)
55
{
56
    if (talked == 0)
57
    {
58
        alarm[5] = 110;
gml_Object_obj_undyneboss_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; whatiheard = -1; global.mnfight = 2; if (borderspec == 0) global.border = 7; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
59
        alarm[6] = 1;
gml_Object_obj_undyneboss_Alarm_6.gml

if (obj_heart.sprite_index == spr_heartgreen && died == 0) { if (global.monsterhp[myself] < (global.monstermaxhp[myself] * 0.75) && lesson < 5) { lesson = 6; order = 6; damagecause = 1; } if (global.monsterhp[myself] < (global.monstermaxhp[myself] * 0.5) && lesson < 11) { lesson = 11; order = 12; damagecause = 2; } if (global.monsterhp[myself] < (global.monstermaxhp[myself] * 0.2) && lesson < 20) { lesson = 20; order = 22; damagecause = 3; rating += 2; } } if (order == 12 && global.flag[99 undyne_times_fought] < 2) global.flag[99 undyne_times_fought] = 2; if (order == 22 && global.flag[99 undyne_times_fought] < 3) global.flag[99 undyne_times_fought] = 3; if (lesson > 19 && obj_heart.sprite_index == spr_heart && defadjust == 0) { global.monsterdef[myself] = -15; if (global.monsterhp[myself] > (global.monstermaxhp[myself] * 0.3)) global.monsterdef[myself] = -25; if (global.monsterhp[myself] > (global.monstermaxhp[myself] * 0.4)) global.monsterdef[myself] = -35; if (global.monsterhp[myself] > (global.monstermaxhp[myself] * 0.5)) global.monsterdef[myself] = -50; if (global.monsterhp[myself] > (global.monstermaxhp[myself] * 0.75)) global.monsterdef[myself] = -70; if (global.monsterhp[myself] == global.monstermaxhp[myself]) global.monsterdef[myself] = -90; defadjust = 1; } blcontype = 0; uncancel = 0; gg = floor(random(3)); mycommand = round(random(100)); global.msg[0] =
Ngahhh!
scr_gettext("obj_undyneboss_401")
; if (mycommand < 20) global.msg[0] =
Bring
it on!
scr_gettext("obj_undyneboss_402")
; if (mycommand < 40) global.msg[0] =
C'mon!
scr_gettext("obj_undyneboss_403")
; if (mycommand < 60) global.msg[0] =
Fuhuhu!
scr_gettext("obj_undyneboss_404")
; if (mycommand < 80) global.msg[0] =
Ngahh!!
scr_gettext("obj_undyneboss_405")
; if (mycommand < 100) global.msg[0] =
Urahhh!!
scr_gettext("obj_undyneboss_406")
; if (damagecause > 0) { if (damagecause == 1) global.msg[0] =
\E1 You're strong...
But not strong
enough!
scr_gettext("obj_undyneboss_410")
; if (damagecause == 2) global.msg[0] =
\E4 You're a pain in
the neck, huh?
scr_gettext("obj_undyneboss_411")
; if (damagecause == 3) global.msg[0] =
\E5 DIE ALREADY, YOU
LITTLE BRAT!
scr_gettext("obj_undyneboss_412")
; blcontype = 1; } global.msg[1] =
Close MessageClose MessageClose Message
scr_gettext("obj_undyneboss_416")
; global.typer = 39; if (order > 0) { if (order == 1) { uncancel = 1; blcontype = 1; global.msg[0] =
\XAs long as you're
\GGREEN\X you \RCAN'T
ESCAPE\X!Wait for input
scr_gettext("obj_undyneboss_427")
; global.msg[1] =
\XUnless you learn
to \Rface danger
head-on\X...Wait for input
scr_gettext("obj_undyneboss_428")
; global.msg[2] =
You won't last
a SECOND against
ME!Wait for inputClose MessageClose Message
scr_gettext("obj_undyneboss_429")
; } if (order == 2) { uncancel = 1; blcontype = 1; if (mercied > 0) global.msg[0] =
You?Delay 11
Sparing ME?Delay 11
Fuhuhuhu!Wait for input
scr_gettext("obj_undyneboss_437")
; global.msg[1] =
How insulting!Delay 11
I'd NEVER
surrender to the
likes of you!Wait for inputClose MessageClose Message
scr_gettext("obj_undyneboss_438")
; global.msg[0] =
Not bad!Delay 11
Then how about
THIS!?Wait for inputClose MessageClose Message
scr_gettext("obj_undyneboss_439")
; if (hitno > 0 && hitfirst == 3) { global.msg[0] =
\E0 I wanted this to
be a fair fight.Wait for input
scr_gettext("obj_undyneboss_442")
; global.msg[1] =
\E1 I thought if I
beat you like
this...Wait for input
scr_gettext("obj_undyneboss_443")
; global.msg[2] =
It'd truly show
how strong
monsters can be.Wait for input
scr_gettext("obj_undyneboss_444")
; global.msg[3] =
\E4 BUT NOW???Wait for input
scr_gettext("obj_undyneboss_445")
; global.msg[4] =
\E5 I DON'T CARE!Wait for input
scr_gettext("obj_undyneboss_446")
; global.msg[5] =
I'M NOT YOUR
FREAKING
KINDERGARTEN
TEACHER!Wait for input
scr_gettext("obj_undyneboss_447")
; global.msg[6] =
\E1 Unless your
kindergarten
teacher...Wait for input
scr_gettext("obj_undyneboss_448")
; global.msg[7] =
\E5 DOES THIS!Wait for inputClose MessageClose Message
scr_gettext("obj_undyneboss_449")
; rating = 6; berserk = 1; order = 12; lesson = 11; hitfirst += 1; ...
60
        talked = 1;
61
        global.heard = 0;
62
        if (order == -35)
63
        {
64
            global.mnfight = 99;
65
            global.bmenuno = 4;
66
            obj_heart.x = -400;
67
            alarm[5] = -2;
gml_Object_obj_undyneboss_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; whatiheard = -1; global.mnfight = 2; if (borderspec == 0) global.border = 7; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
68
            alarm[6] = -2;
gml_Object_obj_undyneboss_Alarm_6.gml

if (obj_heart.sprite_index == spr_heartgreen && died == 0) { if (global.monsterhp[myself] < (global.monstermaxhp[myself] * 0.75) && lesson < 5) { lesson = 6; order = 6; damagecause = 1; } if (global.monsterhp[myself] < (global.monstermaxhp[myself] * 0.5) && lesson < 11) { lesson = 11; order = 12; damagecause = 2; } if (global.monsterhp[myself] < (global.monstermaxhp[myself] * 0.2) && lesson < 20) { lesson = 20; order = 22; damagecause = 3; rating += 2; } } if (order == 12 && global.flag[99 undyne_times_fought] < 2) global.flag[99 undyne_times_fought] = 2; if (order == 22 && global.flag[99 undyne_times_fought] < 3) global.flag[99 undyne_times_fought] = 3; if (lesson > 19 && obj_heart.sprite_index == spr_heart && defadjust == 0) { global.monsterdef[myself] = -15; if (global.monsterhp[myself] > (global.monstermaxhp[myself] * 0.3)) global.monsterdef[myself] = -25; if (global.monsterhp[myself] > (global.monstermaxhp[myself] * 0.4)) global.monsterdef[myself] = -35; if (global.monsterhp[myself] > (global.monstermaxhp[myself] * 0.5)) global.monsterdef[myself] = -50; if (global.monsterhp[myself] > (global.monstermaxhp[myself] * 0.75)) global.monsterdef[myself] = -70; if (global.monsterhp[myself] == global.monstermaxhp[myself]) global.monsterdef[myself] = -90; defadjust = 1; } blcontype = 0; uncancel = 0; gg = floor(random(3)); mycommand = round(random(100)); global.msg[0] =
Ngahhh!
scr_gettext("obj_undyneboss_401")
; if (mycommand < 20) global.msg[0] =
Bring
it on!
scr_gettext("obj_undyneboss_402")
; if (mycommand < 40) global.msg[0] =
C'mon!
scr_gettext("obj_undyneboss_403")
; if (mycommand < 60) global.msg[0] =
Fuhuhu!
scr_gettext("obj_undyneboss_404")
; if (mycommand < 80) global.msg[0] =
Ngahh!!
scr_gettext("obj_undyneboss_405")
; if (mycommand < 100) global.msg[0] =
Urahhh!!
scr_gettext("obj_undyneboss_406")
; if (damagecause > 0) { if (damagecause == 1) global.msg[0] =
\E1 You're strong...
But not strong
enough!
scr_gettext("obj_undyneboss_410")
; if (damagecause == 2) global.msg[0] =
\E4 You're a pain in
the neck, huh?
scr_gettext("obj_undyneboss_411")
; if (damagecause == 3) global.msg[0] =
\E5 DIE ALREADY, YOU
LITTLE BRAT!
scr_gettext("obj_undyneboss_412")
; blcontype = 1; } global.msg[1] =
Close MessageClose MessageClose Message
scr_gettext("obj_undyneboss_416")
; global.typer = 39; if (order > 0) { if (order == 1) { uncancel = 1; blcontype = 1; global.msg[0] =
\XAs long as you're
\GGREEN\X you \RCAN'T
ESCAPE\X!Wait for input
scr_gettext("obj_undyneboss_427")
; global.msg[1] =
\XUnless you learn
to \Rface danger
head-on\X...Wait for input
scr_gettext("obj_undyneboss_428")
; global.msg[2] =
You won't last
a SECOND against
ME!Wait for inputClose MessageClose Message
scr_gettext("obj_undyneboss_429")
; } if (order == 2) { uncancel = 1; blcontype = 1; if (mercied > 0) global.msg[0] =
You?Delay 11
Sparing ME?Delay 11
Fuhuhuhu!Wait for input
scr_gettext("obj_undyneboss_437")
; global.msg[1] =
How insulting!Delay 11
I'd NEVER
surrender to the
likes of you!Wait for inputClose MessageClose Message
scr_gettext("obj_undyneboss_438")
; global.msg[0] =
Not bad!Delay 11
Then how about
THIS!?Wait for inputClose MessageClose Message
scr_gettext("obj_undyneboss_439")
; if (hitno > 0 && hitfirst == 3) { global.msg[0] =
\E0 I wanted this to
be a fair fight.Wait for input
scr_gettext("obj_undyneboss_442")
; global.msg[1] =
\E1 I thought if I
beat you like
this...Wait for input
scr_gettext("obj_undyneboss_443")
; global.msg[2] =
It'd truly show
how strong
monsters can be.Wait for input
scr_gettext("obj_undyneboss_444")
; global.msg[3] =
\E4 BUT NOW???Wait for input
scr_gettext("obj_undyneboss_445")
; global.msg[4] =
\E5 I DON'T CARE!Wait for input
scr_gettext("obj_undyneboss_446")
; global.msg[5] =
I'M NOT YOUR
FREAKING
KINDERGARTEN
TEACHER!Wait for input
scr_gettext("obj_undyneboss_447")
; global.msg[6] =
\E1 Unless your
kindergarten
teacher...Wait for input
scr_gettext("obj_undyneboss_448")
; global.msg[7] =
\E5 DOES THIS!Wait for inputClose MessageClose Message
scr_gettext("obj_undyneboss_449")
; rating = 6; berserk = 1; order = 12; lesson = 11; hitfirst += 1; ...
69
            con = 60;
70
        }
71
    }
72
}
73
if (control_check_pressed(0) && uncancel == 0)
74
{
75
    if (alarm[5] > 5 && obj_lborder.x == global.idealborder[0] && alarm[6] < 0)
gml_Object_obj_undyneboss_Alarm_6.gml

if (obj_heart.sprite_index == spr_heartgreen && died == 0) { if (global.monsterhp[myself] < (global.monstermaxhp[myself] * 0.75) && lesson < 5) { lesson = 6; order = 6; damagecause = 1; } if (global.monsterhp[myself] < (global.monstermaxhp[myself] * 0.5) && lesson < 11) { lesson = 11; order = 12; damagecause = 2; } if (global.monsterhp[myself] < (global.monstermaxhp[myself] * 0.2) && lesson < 20) { lesson = 20; order = 22; damagecause = 3; rating += 2; } } if (order == 12 && global.flag[99 undyne_times_fought] < 2) global.flag[99 undyne_times_fought] = 2; if (order == 22 && global.flag[99 undyne_times_fought] < 3) global.flag[99 undyne_times_fought] = 3; if (lesson > 19 && obj_heart.sprite_index == spr_heart && defadjust == 0) { global.monsterdef[myself] = -15; if (global.monsterhp[myself] > (global.monstermaxhp[myself] * 0.3)) global.monsterdef[myself] = -25; if (global.monsterhp[myself] > (global.monstermaxhp[myself] * 0.4)) global.monsterdef[myself] = -35; if (global.monsterhp[myself] > (global.monstermaxhp[myself] * 0.5)) global.monsterdef[myself] = -50; if (global.monsterhp[myself] > (global.monstermaxhp[myself] * 0.75)) global.monsterdef[myself] = -70; if (global.monsterhp[myself] == global.monstermaxhp[myself]) global.monsterdef[myself] = -90; defadjust = 1; } blcontype = 0; uncancel = 0; gg = floor(random(3)); mycommand = round(random(100)); global.msg[0] =
Ngahhh!
scr_gettext("obj_undyneboss_401")
; if (mycommand < 20) global.msg[0] =
Bring
it on!
scr_gettext("obj_undyneboss_402")
; if (mycommand < 40) global.msg[0] =
C'mon!
scr_gettext("obj_undyneboss_403")
; if (mycommand < 60) global.msg[0] =
Fuhuhu!
scr_gettext("obj_undyneboss_404")
; if (mycommand < 80) global.msg[0] =
Ngahh!!
scr_gettext("obj_undyneboss_405")
; if (mycommand < 100) global.msg[0] =
Urahhh!!
scr_gettext("obj_undyneboss_406")
; if (damagecause > 0) { if (damagecause == 1) global.msg[0] =
\E1 You're strong...
But not strong
enough!
scr_gettext("obj_undyneboss_410")
; if (damagecause == 2) global.msg[0] =
\E4 You're a pain in
the neck, huh?
scr_gettext("obj_undyneboss_411")
; if (damagecause == 3) global.msg[0] =
\E5 DIE ALREADY, YOU
LITTLE BRAT!
scr_gettext("obj_undyneboss_412")
; blcontype = 1; } global.msg[1] =
Close MessageClose MessageClose Message
scr_gettext("obj_undyneboss_416")
; global.typer = 39; if (order > 0) { if (order == 1) { uncancel = 1; blcontype = 1; global.msg[0] =
\XAs long as you're
\GGREEN\X you \RCAN'T
ESCAPE\X!Wait for input
scr_gettext("obj_undyneboss_427")
; global.msg[1] =
\XUnless you learn
to \Rface danger
head-on\X...Wait for input
scr_gettext("obj_undyneboss_428")
; global.msg[2] =
You won't last
a SECOND against
ME!Wait for inputClose MessageClose Message
scr_gettext("obj_undyneboss_429")
; } if (order == 2) { uncancel = 1; blcontype = 1; if (mercied > 0) global.msg[0] =
You?Delay 11
Sparing ME?Delay 11
Fuhuhuhu!Wait for input
scr_gettext("obj_undyneboss_437")
; global.msg[1] =
How insulting!Delay 11
I'd NEVER
surrender to the
likes of you!Wait for inputClose MessageClose Message
scr_gettext("obj_undyneboss_438")
; global.msg[0] =
Not bad!Delay 11
Then how about
THIS!?Wait for inputClose MessageClose Message
scr_gettext("obj_undyneboss_439")
; if (hitno > 0 && hitfirst == 3) { global.msg[0] =
\E0 I wanted this to
be a fair fight.Wait for input
scr_gettext("obj_undyneboss_442")
; global.msg[1] =
\E1 I thought if I
beat you like
this...Wait for input
scr_gettext("obj_undyneboss_443")
; global.msg[2] =
It'd truly show
how strong
monsters can be.Wait for input
scr_gettext("obj_undyneboss_444")
; global.msg[3] =
\E4 BUT NOW???Wait for input
scr_gettext("obj_undyneboss_445")
; global.msg[4] =
\E5 I DON'T CARE!Wait for input
scr_gettext("obj_undyneboss_446")
; global.msg[5] =
I'M NOT YOUR
FREAKING
KINDERGARTEN
TEACHER!Wait for input
scr_gettext("obj_undyneboss_447")
; global.msg[6] =
\E1 Unless your
kindergarten
teacher...Wait for input
scr_gettext("obj_undyneboss_448")
; global.msg[7] =
\E5 DOES THIS!Wait for inputClose MessageClose Message
scr_gettext("obj_undyneboss_449")
; rating = 6; berserk = 1; order = 12; lesson = 11; hitfirst += 1; ...
76
        alarm[5] = 2;
gml_Object_obj_undyneboss_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; whatiheard = -1; global.mnfight = 2; if (borderspec == 0) global.border = 7; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
77
}
78
if (uncancel == 1)
79
{
80
    alarm[5] = 100;
gml_Object_obj_undyneboss_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; whatiheard = -1; global.mnfight = 2; if (borderspec == 0) global.border = 7; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
81
    if (instance_exists(OBJ_WRITER) == 0)
82
    {
83
        alarm[5] = 1;
gml_Object_obj_undyneboss_Alarm_5.gml

with (blconwd) instance_destroy(); with (blcon) instance_destroy(); talked = 0; whatiheard = -1; global.mnfight = 2; if (borderspec == 0) global.border = 7; if (obj_heart.sprite_index == spr_heartgreen) { global.border = 12; event_user(2); }
84
        uncancel = 0;
85
    }
86
}
87
if (global.hurtanim[myself] == 1)
88
{
89
    tempdie = 0;
90
    shudder = 8;
91
    if (global.monsterhp[myself] < 1 && died == 0)
92
        shudder = 16;
93
    alarm[3] = global.damagetimer;
gml_Object_obj_undyneboss_Alarm_3.gml

if (image_index != 1 && image_index != 2) { with (mypart1) instance_destroy(); dmgwriter = instance_create(x, y + 80, obj_dmgwriter); dmgwriter.negative = 1; global.damage = takedamage; with (dmgwriter) dmg = global.damage; if ((global.monsterhp[myself] - takedamage) < 1 && died == 0) tempdie = 1; if (tempdie == 1) { shudder = 16; caster_free(global.batmusic); } image_index = 1; if (died == 1) image_index = 2; 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; if (tempdie == 1) alarm[3] = 4;
94
    global.hurtanim[myself] = 3;
95
}
96
if (global.hurtanim[myself] == 2)
97
{
98
    global.monsterhp[myself] -= takedamage;
99
    with (dmgwriter)
100
alarm[2]
101
    if (global.monsterhp[myself] >= 1)
102
    {
103
        mypart1 = instance_create(x, y, part1);
104
        global.hurtanim[myself] = 0;
105
        image_index = 0;
106
        global.myfight = 0;
107
        global.mnfight = 1;
108
    }
109
    else
110
    {
111
        global.myfight = 0;
112
        global.mnfight = 1;
113
        if (died == 0)
114
        {
115
            caster_stop(global.batmusic);
116
            deadmusic1 = caster_load("music/endingexcerpt1.ogg");
117
            deadmusic2 = caster_load("music/endingexcerpt2.ogg");
118
            con = 50;
119
            obj_heart.sprite_index = spr_heart;
120
            with (obj_boxsiner)
121
                fade = 1;
122
            order = -40;
123
            lesson = -40;
124
            died = 1;
125
            global.mnfight = 99;
126
        }
127
        mypart1 = instance_create(x, y, part1);
128
        global.hurtanim[myself] = 0;
129
        image_index = 0;
130
    }
131
}
132
if (greenlock == 1 && global.mnfight > 0)
133
{
134
    if (obj_heart.sprite_index == spr_heartgreen)
135
        obj_heart.y = obj_uborder.y + 34;
136
    else
137
        greenlock = 0;
138
}
139
else
140
{
141
    greenlock = 0;
142
}
143
if (darkify == 1)
144
{
145
    if (pseudodarker.image_alpha < 0.5)
146
        pseudodarker.image_alpha += 0.04;
147
    else
148
        darkify = 2;
149
    obj_borderparent.image_alpha = 1 - pseudodarker.image_alpha;
150
}
151
if (darkify == 3)
152
{
153
    if (pseudodarker.image_alpha > 0)
154
        pseudodarker.image_alpha -= 0.04;
155
    obj_borderparent.image_alpha = 1 - pseudodarker.image_alpha;
156
    if (pseudodarker.image_alpha <= 0)
157
    {
158
        darkify = 0;
159
        with (pseudodarker)
160
            instance_destroy();
161
    }
162
}
163
if (global.hurtanim[myself] == 5)
164
{
165
    global.damage = 0;
166
    instance_create((x + (sprite_width / 2)) - 48, y - 24, obj_dmgwriter);
167
    with (obj_dmgwriter)
168
alarm[2]
169
    global.myfight = 0;
170
    global.mnfight = 1;
171
    global.hurtanim[myself] = 0;
172
}
173
if (global.mnfight == 2)
174
{
175
    if (attacked == 0)
176
    {
177
        hitno = 0;
178
        xx = room_width / 2;
179
        yy = room_height / 2;
180
        global.turntimer = 200;
181
        global.firingrate = 15;
182
        if (obj_heart.sprite_index == spr_heartgreen)
183
        {
184
            gen = instance_create(xx, yy, obj_spearblocker);
185
            gen.lesson = lesson;
186
            gen.rating = rating;
187
            gen.dmg = global.monsteratk[myself];
188
            with (gen)
189
                event_user(1);
190
        }
191
        else if (mycommand <= 50)
192
        {
193
            event_user(2);
194
            ratingb += 1;
195
            lesson -= 1;
196
            if (ratingb > 9)
197
                ratingb = 9;
198
            global.firingrate = 19 - ratingb;
199
            gen = instance_create(x, y, obj_spearbulletfollowgen);
200
            gen.dmg = global.monsteratk[myself];
201
        }
202
        else
203
        {
204
            borderspec = 1;
205
            ratingb += 1;
206
            lesson -= 1;
207
            if (ratingb > 9)
208
                ratingb = 9;
209
            global.firingrate = 23 - ratingb;
210
            gen = instance_create(x, y, obj_risespearbulletgen);
211
            gen.dmg = global.monsteratk[myself];
212
        }
213
        gen.myself = myself;
214
        if (global.monsterhp[myself] < global.monstermaxhp[myself])
215
        {
216
            if (mycommand >= 0)
217
                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_undyneboss_1085")
;
218
            if (mycommand >= 20)
219
                global.msg[0] = 
* Undyne flips her spear
impatiently.
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_undyneboss_1086")
;
220
            if (mycommand >= 40)
221
                global.msg[0] = 
* Flower pollen drifts in
front of you.
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_undyneboss_1087")
;
222
            if (mycommand >= 60)
223
                global.msg[0] = 
* Water rushes around you.
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_undyneboss_1088")
;
224
            if (mycommand >= 80)
225
                global.msg[0] = 
* The spears pause for a
moment.
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_undyneboss_1089")
;
226
        }
227
        if (global.monsterhp[myself] >= (global.monstermaxhp[myself] / 2))
228
        {
229
            if (mycommand >= 0)
230
                global.msg[0] = 
* Undyne points heroically
towards the sky.
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_undyneboss_1094")
;
231
            if (mycommand >= 10)
232
                global.msg[0] = 
* Undyne flips her spear
impatiently.
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_undyneboss_1095")
;
233
            if (mycommand >= 20)
234
                global.msg[0] = 
* Undyne suplexes a huge
boulder,Delay 11 just because
she can.
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_undyneboss_1096")
;
235
            if (mycommand >= 30)
236
                global.msg[0] = 
* Undyne bounces impatiently.
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_undyneboss_1097")
;
237
            if (mycommand >= 40)
238
                global.msg[0] = 
* Undyne flashes a menacing
smile.
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_undyneboss_1098")
;
239
            if (mycommand >= 50)
240
                global.msg[0] = 
* Undyne draws her finger
across her neck.
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_undyneboss_1099")
;
241
            if (mycommand >= 60)
242
                global.msg[0] = 
* Undyne holds her fist in
front of her and shakes
her head.
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_undyneboss_1100")
;
243
            if (mycommand >= 70)
244
                global.msg[0] = 
* Undyne towers threateningly.
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_undyneboss_1101")
;
245
            if (mycommand >= 80)
246
                global.msg[0] = 
* Undyne thinks of her friends
and pounds the ground
with her fists.
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_undyneboss_1102")
;
247
            if (mycommand >= 90)
248
                global.msg[0] = 
* Smells like sushi.
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_undyneboss_1103")
;
249
            if (order > 22)
250
            {
251
                if (mycommand >= 0)
252
                    global.msg[0] = 
* Undyne's eye is twitching
involuntarily.
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_undyneboss_1107")
;
253
                if (mycommand >= 25)
254
                    global.msg[0] = 
* Undyne is smashing spears
on the ground.
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_undyneboss_1108")
;
255
                if (mycommand >= 50)
256
                    global.msg[0] = 
* Undyne's eyes dart around
to see if this is
a prank.
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_undyneboss_1109")
;
257
                if (mycommand >= 75)
258
                    global.msg[0] = 
* Undyne is hyperventilating.
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_undyneboss_1110")
;
259
                if (mycommand >= 90)
260
                    global.msg[0] = 
* Smells like angry fish.
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_undyneboss_1111")
;
261
            }
262
        }
263
        if (order == -40)
264
            global.msg[0] = 
* Undyne is smiling as if
nothing is wrong.
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_undyneboss_1118")
;
265
        if (order == -39)
266
            global.msg[0] = 
* Undyne's body is wavering.
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_undyneboss_1119")
;
267
        if (order == -38)
268
            global.msg[0] = 
* Undyne's body is losing
its shape.
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_undyneboss_1120")
;
269
        if (order == -37)
270
            global.msg[0] = 
* Undyne's body...
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_undyneboss_1121")
;
271
        if (order == -36)
272
            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_undyneboss_1122")
;
273
        attacked = 1;
274
        order += 1;
275
        lesson += 1;
276
    }
277
}
278
if (global.mnfight == 3 && darkify > 0 && darkify != 3)
279
    darkify = 3;
280
if (global.myfight == 2)
281
{
282
    if (whatiheard != -1)
283
    {
284
        if (global.heard == 0)
285
        {
286
            if (whatiheard == 0)
287
            {
288
                global.msc = 0;
289
                global.msg[0] = 
* UNDYNE - ATK 50 DEF 20
* The heroine that NEVER gives
up.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_undyneboss_1145")
;
290
                OBJ_WRITER.halt = 3;
291
                iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
292
                with (iii)
293
                    halt = 0;
294
            }
295
            if (whatiheard == 1)
296
            {
297
                global.msc = 0;
298
                chal_e = 0;
299
                if (rating == 8)
300
                {
301
                    rating = 7;
302
                    chal_e = 1;
303
                }
304
                if (rating == 9)
305
                {
306
                    rating = 8;
307
                    chal_e = 1;
308
                }
309
                if (rating == 10)
310
                {
311
                    rating = 9;
312
                    chal_e = 1;
313
                }
314
                if (rating == 11)
315
                {
316
                    rating = 10;
317
                    chal_e = 1;
318
                }
319
                if (rating == 12)
320
                {
321
                    rating = 10;
322
                    chal_e = 1;
323
                }
324
                if (rating == 13)
325
                {
326
                    rating = 11;
327
                    chal_e = 1;
328
                }
329
                if (rating == 14)
330
                {
331
                    rating = 11;
332
                    chal_e = 1;
333
                }
334
                if (rating == 15)
335
                {
336
                    rating = 12;
337
                    chal_e = 1;
338
                }
339
                if (rating == 16)
340
                {
341
                    rating = 12;
342
                    chal_e = 1;
343
                }
344
                if (chal_e == 0)
345
                    global.msg[0] = 
* You tell UNDYNE her attacks
are too easy.Delay 11
* She doesn't care.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_undyneboss_1168")
;
346
                if (chal_e == 1)
347
                {
348
                    if (ratingb < 6)
349
                        ratingb += 1;
350
                    global.msg[0] = 
* You tell UNDYNE her attacks
are too easy.Delay 11
* The bullets get faster.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_undyneboss_1174")
;
351
                    if (rating == 7)
352
                        global.msg[0] = 
* You tell UNDYNE her attacks
are too easy.Delay 11
* The bullets get unfair.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_undyneboss_1176")
;
353
                }
354
                if (con >= 50)
355
                    global.msg[0] = 
* Didn't work.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_undyneboss_1182")
;
356
                OBJ_WRITER.halt = 3;
357
                iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
358
                with (iii)
359
                    halt = 0;
360
            }
361
            if (whatiheard == 3)
362
            {
363
                global.msc = 0;
364
                global.msg[0] = 
* Hamburger Helpers.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_undyneboss_1195")
;
365
                plead_e = 0;
366
                if (ratingb == 7)
367
                {
368
                    ratingb = 6;
369
                    plead_e = 1;
370
                }
371
                if (ratingb == 8)
372
                {
373
                    ratingb = 7;
374
                    plead_e = 1;
375
                }
376
                if (ratingb == 9)
377
                {
378
                    ratingb = 7;
379
                    plead_e = 1;
380
                }
381
                if (rating == 9)
382
                {
383
                    rating = 10;
384
                    plead_e = 1;
385
                }
386
                if (rating == 8)
387
                {
388
                    rating = 10;
389
                    plead_e = 1;
390
                }
391
                if (rating == 7)
392
                {
393
                    rating = 9;
394
                    plead_e = 1;
395
                }
396
                if (plead_e == 0)
397
                    global.msg[0] = 
* You told Undyne you didn't
want to fight.Delay 11
* But nothing happened.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_undyneboss_1205")
;
398
                if (plead_e == 1)
399
                {
400
                    global.msg[0] = 
* You told Undyne you just
want to be friends.
* She remembers someone...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_undyneboss_1209")
;
401
                    global.msg[1] = 
* Her attacks became a little
less extreme.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_undyneboss_1210")
;
402
                }
403
                if (con >= 50)
404
                    global.msg[0] = 
* Didn't work.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_undyneboss_1215")
;
405
                OBJ_WRITER.halt = 3;
406
                iii = instance_create(global.idealborder[0], global.idealborder[2], OBJ_WRITER);
407
                with (iii)
408
                    halt = 0;
409
            }
410
            global.heard = 1;
411
        }
412
    }
413
}
414
siner += 1;
415
if (instance_exists(obj_boxsiner))
416
    obj_boxsiner.x = obj_boxsiner.xstart + (sin(siner / 24) * 40);
417
if (global.myfight == 4)
418
{
419
    if (global.mercyuse == 0)
420
    {
421
        mercied += 1;
422
        script_execute(scr_mercystandard);
423
    }
424
}
425
if (obj_heart.sprite_index == spr_heartgreen && global.mnfight == 2)
426
    obj_heart.movement = 3;
427
if (con == 0)
428
{
429
    con = 1;
430
    alarm[4] = 30;
431
}
432
if (con == 1)
433
{
434
    global.bmenuno = 4;
435
    obj_heart.x = (room_width / 2) - (obj_heart.sprite_width / 2);
436
    obj_heart.y = (room_height / 2) - (obj_heart.sprite_height / 2);
437
    global.myfight = 0;
438
    global.mnfight = 99;
439
}
440
if (con == 2)
441
{
442
    if (global.flag[99 undyne_times_fought] < 4)
443
    {
444
        event_user(1);
445
        con = 3.1;
446
        alarm[4] = 30;
447
    }
448
    else
449
    {
450
        con = 4.1;
451
    }
452
}
453
if (con == 4.1)
454
{
455
    global.typer = 39;
456
    global.msg[0] = 
En guarde!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_undyneboss_1278")
;
457
    if (global.flag[99 undyne_times_fought] == 2)
458
    {
459
        global.msg[0] = 
\E1 You won't get
away from me
this time!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_undyneboss_1281")
;
460
        lesson = 8;
461
        order = 9;
462
    }
463
    if (global.flag[99 undyne_times_fought] == 3)
464
    {
465
        global.msg[0] = 
\E4 You've escaped
from me for
the LAST time!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_undyneboss_1286")
;
466
        lesson = 13;
467
        order = 15;
468
    }
469
    if (global.flag[99 undyne_times_fought] == 4)
470
    {
471
        global.msg[0] = 
\E5 STOP RUNNING
AWAY!!!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_undyneboss_1292")
;
472
        lesson = 22;
473
        order = 22;
474
    }
475
    if (global.flag[99 undyne_times_fought] > 4)
476
    {
477
        global.msg[0] = 
\E5 COME BACK HERE,Delay 11
YOU LITTLE
PUNK!!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_undyneboss_1298")
;
478
        lesson = 22;
479
        order = 22;
480
    }
481
    scr_blcon_x
scr_blcon_x

scr_blcon(argument0, argument1, 0);
(blconx, blcony);
482
    con = 5;
483
}
484
if (con == 5 && instance_exists(OBJ_WRITER) == 0)
485
{
486
    global.msg[0] = 
* Undyne attacks!
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_undyneboss_1310")
;
487
    caster_loop(global.batmusic, 0.82, 1);
488
    global.myfight = 0;
489
    global.mnfight = 3;
490
    con = 6;
491
}
492
if (global.mnfight == 2 && global.turntimer < 1 && obj_heart.sprite_index == spr_heart)
493
    global.mnfight = 4;
494
if (con == 50)
495
{
496
    with (mypart1)
497
        instance_destroy();
498
    image_index = 2;
499
    shakify = 1;
500
    myfight = 0;
501
    mnfight = 99;
502
    global.bmenuno = 4;
503
    global.border = 4;
504
    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; ...
();
505
    con = 51;
506
    global.msc = 0;
507
    global.typer = 40;
508
    global.msg[0] = 
Ngahhh...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_undyneboss_1336")
;
509
    global.msg[1] = 
You were stronger...
Than I thought...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_undyneboss_1337")
;
510
    global.msg[2] = 
So then...Delay 11
... this is where...Delay 11
... it ends...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_undyneboss_1338")
;
511
    global.msg[3] = 
...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_undyneboss_1339")
;
512
    scr_blcon_x
scr_blcon_x

scr_blcon(argument0, argument1, 0);
(blconx, blcony);
513
}
514
if (con == 51)
515
{
516
    obj_heart.x = obj_uborder.y + 20;
517
    obj_heart.x = (room_width / 2) - 8;
518
}
519
if (con == 51 && instance_exists(OBJ_WRITER) == 0)
520
{
521
    con = 50.1;
522
    shakify = 3;
523
    alarm[4] = 60;
524
}
525
if (con == 51.1)
526
{
527
    shakify = 0;
528
    x = xstart;
529
    y = ystart;
530
    image_index = 3;
531
    global.faceemotion = 8;
532
    global.typer = 40;
533
    global.msg[0] = 
No...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_undyneboss_1365")
;
534
    scr_blcon_x
scr_blcon_x

scr_blcon(argument0, argument1, 0);
(blconx, blcony);
535
    con = 52;
536
}
537
if (con == 53 && instance_exists(OBJ_WRITER) == 0)
538
{
539
    event_user(1);
540
    con = 54;
541
    alarm[4] = 30;
542
}
543
if (con == 52 && instance_exists(OBJ_WRITER) == 0)
544
{
545
    shakify = 0;
546
    image_index = 0;
547
    global.typer = 41;
548
    mypart1 = instance_create(x, y, part1);
549
    with (mypart1)
550
        event_user(4);
551
    caster_play(deadmusic1, 1, 1);
552
    global.msg[0] = 
NO!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_undyneboss_1386")
;
553
    global.msg[1] = 
I won't die!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_undyneboss_1387")
;
554
    global.msg[2] = 
Alphys...Delay 11
Asgore...Delay 11
Papyrus...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_undyneboss_1388")
;
555
    global.msg[3] = 
Everyone is counting
on me to protect
them!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_undyneboss_1389")
;
556
    global.msg[4] = 
NNNNGAH!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_undyneboss_1390")
;
557
    scr_blcon_x
scr_blcon_x

scr_blcon(argument0, argument1, 0);
(blconx, blcony);
558
    con = 53;
559
}
560
if (con == 55)
561
{
562
    global.typer = 41;
563
    global.msg[0] = 
Human!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_undyneboss_1401")
;
564
    global.msg[1] = 
In the name of
everybody's hopes
and dreams...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_undyneboss_1402")
;
565
    global.msg[2] = 
I WILL DEFEAT YOU!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_undyneboss_1403")
;
566
    scr_blcon_x
scr_blcon_x

scr_blcon(argument0, argument1, 0);
(blconx, blcony);
567
    con = 56;
568
}
569
if (con == 56 && instance_exists(OBJ_WRITER) == 0)
570
{
571
    global.msg[0] = 
* Undyne looks determined.
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_undyneboss_1410")
;
572
    global.myfight = 0;
573
    global.mnfight = 3;
574
    con = 57;
575
}
576
if (con == 60)
577
{
578
    caster_free(deadmusic1);
579
    caster_free(deadmusic2);
580
    global.faceemotion = 7;
581
    global.typer = 40;
582
    global.msc = 0;
583
    global.msg[0] = 
...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_undyneboss_1424")
;
584
    global.msg[1] = 
Ha...Delay 11 ha...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_undyneboss_1425")
;
585
    global.msg[2] = 
... Alphys...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_undyneboss_1426")
;
586
    global.msg[3] = 
This is what I
was afraid of...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_undyneboss_1427")
;
587
    global.msg[4] = 
This is why I
never told 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_undyneboss_1428")
;
588
    global.msg[5] = 
...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_undyneboss_1429")
;
589
    scr_blcon_x
scr_blcon_x

scr_blcon(argument0, argument1, 0);
(blconx, blcony);
590
    con = 61;
591
}
592
if (con == 61 && instance_exists(OBJ_WRITER) == 0)
593
{
594
    global.faceemotion = 8;
595
    with (obj_undynesiner2)
596
        event_user(1);
597
    global.msg[0] = 
No...Delay 11
No!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_undyneboss_1438")
;
598
    global.msg[1] = 
Not yet!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_undyneboss_1439")
;
599
    global.msg[2] = 
I won't die!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_undyneboss_1440")
;
600
    scr_blcon_x
scr_blcon_x

scr_blcon(argument0, argument1, 0);
(blconx, blcony);
601
    con = 62;
602
}
603
if (con == 62 && instance_exists(OBJ_WRITER) == 0)
604
{
605
    with (obj_undynesiner2)
606
        event_user(1);
607
    global.typer = 42;
608
    global.msg[0] = 
NGAHHHHHHHH!!!Delay 22 Close 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_undyneboss_1449")
;
609
    scr_blcon_x
scr_blcon_x

scr_blcon(argument0, argument1, 0);
(blconx, blcony);
610
    con = 63;
611
}
612
if (con == 63 && instance_exists(OBJ_WRITER) == 0)
613
{
614
    con = 64;
615
    global.typer = 42;
616
    with (obj_undynesiner2)
617
        event_user(1);
618
    alarm[4] = 120;
619
    global.msg[0] = 
I WON'T DIE!Delay 33 Close 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_undyneboss_1460")
;
620
    scr_blcon_x
scr_blcon_x

scr_blcon(argument0, argument1, 0);
(blconx, blcony);
621
}
622
if (con == 65 && instance_exists(OBJ_WRITER) == 0)
623
{
624
    con = 66;
625
    global.typer = 43;
626
    with (melter)
627
        image_index = 1;
628
    alarm[4] = 120;
629
    global.msg[0] = 
I WON'T DIE!Delay 33 Close 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_undyneboss_1470")
;
630
    scr_blcon_x
scr_blcon_x

scr_blcon(argument0, argument1, 0);
(blconx, blcony);
631
}
632
if (con == 67 && instance_exists(OBJ_WRITER) == 0)
633
{
634
    con = 68;
635
    global.typer = 44;
636
    with (melter)
637
        image_index = 2;
638
    alarm[4] = 120;
639
    global.msg[0] = 
I WON'T DIE!Delay 33 Close 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_undyneboss_1480")
;
640
    scr_blcon_x
scr_blcon_x

scr_blcon(argument0, argument1, 0);
(blconx, blcony);
641
}
642
if (con == 69 && instance_exists(OBJ_WRITER) == 0)
643
{
644
    con = 70;
645
    global.typer = 45;
646
    with (melter)
647
        image_index = 3;
648
    alarm[4] = 120;
649
    global.msg[0] = 
I Delay 22WON'T Delay 22Close 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_undyneboss_1490")
;
650
    scr_blcon_x
scr_blcon_x

scr_blcon(argument0, argument1, 0);
(blconx, blcony);
651
}
652
if (con == 71 && instance_exists(OBJ_WRITER) == 0)
653
{
654
    global.vaporspeed = 0;
655
    global.monstersprite = 297;
656
    ddd = instance_create(melter.x, melter.y, obj_vaporized);
657
    ddd.image_speed = 0;
658
    ddd.image_index = 1;
659
    global.kills += 1;
660
    global.xp += 500;
661
    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; }
();
662
    with (melter)
663
        instance_destroy();
664
    con = 72;
665
    alarm[4] = 200;
666
}
667
if (con == 73)
668
{
669
    instance_create(x, y, obj_unfader);
670
    global.flag[350 status_undyne] = 1;
671
    global.plot = 122;
672
    alarm[9] = 10;
gml_Object_obj_undyneboss_Alarm_9.gml

caster_free(all); room_goto(global.currentroom);
673
    con = 74;
674
}
675
global.flag[351 undyne_hp_left] = global.monsterhp[myself];
676
if (obj_heart.sprite_index == spr_heart)
677
    global.mercy = 0;
678
if (obj_heart.sprite_index == spr_heartgreen)
679
    global.mercy = 1;
680
if (died == 1)
681
    global.mercy = 1;
682
if (died == 1 && con >= 53 && con < 60)
683
{
684
    if (caster_is_playing(deadmusic1) == 0 && caster_is_playing(deadmusic2) == 0)
685
        caster_loop(deadmusic2, 1, 1);
686
}
687
if (shakify > 0)
688
{
689
    x = xstart + random(shakify);
690
    y = ystart + random(shakify);
691
}
692
if (global.debug == 1 && keyboard_check_pressed(ord("U")))
693
    global.monsterhp[myself] = 2;