Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_room_dw_city_postbaseball_Step_0

(view raw script w/o annotations or w/e)
1
var makeballoons = 0;
2
if (room == room_dw_city_postbaseball_1)
3
{
4
    balloonthreshold = 10;
5
    if (i_ex(obj_mainchara) && obj_mainchara.y <= (room_height - 320))
6
        makeballoons = 1;
7
}
8
if (makeballoons)
9
{
10
    balloontimer++;
11
    if (balloontimer >= balloonthreshold)
12
    {
13
        balloontimer = 0;
14
        var bx = 0;
15
        var by = cameray() + 600;
16
        if (room == room_dw_city_postbaseball_1)
17
            bx = round((340 + random(420)) / 40) * 40;
18
        balloon = instance_create(bx, by, obj_cybercity_balloon);
19
        balloon.gravity = -0.1;
20
        balloon.vspeed = -1 - random(1);
21
        balloon.hspeed = random_range(-3, 3);
22
        balloon.friction = 0.04;
23
        balloon.depth = 1100000;
24
        balloon.image_xscale = 2;
25
        balloon.image_yscale = 2;
26
        balloon.mode = 1;
27
    }
28
}
29
if (room == room_dw_city_postbaseball_1)
30
{
31
    if (global.interact == 0 && con == 0)
32
    {
33
        if (obj_mainchara.x <= 300 && obj_mainchara.y >= 460 && obj_mainchara.y <= 600)
34
        {
35
            global.interact = 1;
36
            con = 1;
37
            cutscene_master = 
scr_cutscene_make
scr_cutscene_make

function
scr_cutscene_make()
{ _cutscene_master = instance_create(0, 0, obj_cutscene_master); _cutscene_master.master_object = id; return _cutscene_master; }
();
38
            
scr_maincharacters_actors
scr_maincharacters_actors

function
scr_maincharacters_actors()
{ actor_count = 0; kr = 0; kr_actor = instance_create(obj_mainchara.x, obj_mainchara.y, obj_actor);
scr_actor_setup(kr, kr_actor, "kris");
kr_actor.sprite_index = obj_mainchara.sprite_index; kr_actor.depth = obj_mainchara.depth; with (obj_mainchara) visible = 0; for (__jj = 0; __jj < array_length_1d(global.cinstance); __jj++) { if (i_ex(global.cinstance[__jj])) { if (global.cinstance[__jj].name == "susie") { actor_count++; su = __jj + 1; su_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(su, su_actor, "susie");
su_actor.sprite_index = global.cinstance[__jj].sprite_index; su_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } if (global.cinstance[__jj].name == "ralsei") { actor_count++; ra = __jj + 1; ra_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(ra, ra_actor, "ralsei");
ra_actor.sprite_index = global.cinstance[__jj].sprite_index; ra_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } if (global.cinstance[__jj].name == "noelle") { actor_count++; no = __jj + 1; no_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(no, no_actor, "noelle");
no_actor.sprite_index = global.cinstance[__jj].sprite_index; no_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } } } }
();
39
        }
40
    }
41
    if (con == 1)
42
    {
43
        con = 2;
44
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(no);
45
        
c_emote
c_emote

function
c_emote()
{ if (argument_count == 0)
c_cmd("emote", "!", 30, 0, 0);
else if (argument_count == 1)
c_cmd("emote", argument[0], 30, 0, 0);
else if (argument_count == 2)
c_cmd("emote", argument[0], argument[1], 0, 0);
else if (argument_count == 3)
c_cmd("emote", argument[0], argument[1], argument[2], 0);
}
("!", 30);
46
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("l");
47
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(30);
48
        
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("noelle");
49
        
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
Face 3* Wait,Delay 11 I know!Delay 11 Umm,Delay 11 to turn off that force field...Wait for inputClose Message
"\\E3* Wait^1, I know^1! Umm^1, to turn off that force field.../%", "obj_room_dw_city_postbaseball_slash_Step_0_gml_68_0"
);
50
        
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
}
();
51
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(no);
52
        
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(200, 460, 30);
53
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(15);
54
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(su);
55
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("l");
56
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(ra);
57
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("l");
58
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(13);
59
        
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(id, "switchcon", 1);
60
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(2);
61
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(no);
62
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("r");
63
        
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("noelle");
64
        
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
Face 2* You just stay standing on this switch!Wait for input
"\\E2* You just stay standing on this switch!/", "obj_room_dw_city_postbaseball_slash_Step_0_gml_86_0"
);
65
        
c_facenext
c_facenext

function
c_facenext(arg0, arg1)
{
c_cmd("msgfacenext", arg0, arg1, 0, 0);
}
("susie", 0);
66
        
c_msgnextloc
c_msgnextloc

function
c_msgnextloc(arg0, arg1)
{ var str = arg0; var localized_string_id = arg1; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
}
(
Face 0* Huh.Wait for inputClose Message
"\\E0* Huh./%", "obj_room_dw_city_postbaseball_slash_Step_0_gml_88_0"
);
67
        
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
}
();
68
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(45);
69
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(kr);
70
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("r");
71
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(su);
72
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("r");
73
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(ra);
74
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("r");
75
        
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(caterpillarnoe.x - 4, caterpillarnoe.y + 10, 15);
76
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(15);
77
        
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(caterpillarral, "target", 24);
78
        
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("susie");
79
        
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
Face 2* Well,Delay 11 see ya later. Mini text 0 Wait for inputClose Message
"\\E2* Well^1, see ya later. \\f0 /%", "obj_room_dw_city_postbaseball_slash_Step_0_gml_105_0"
);
80
        var small_text = stringsetloc(
(W-wait, what did I volunteer for?)
"(W-wait, what did I volunteer for?)", "obj_room_dw_city_postbaseball_slash_Step_0_gml_106_0"
);
81
        
scr_smallface
scr_smallface

function
scr_smallface(arg0, arg1, arg2, arg3, arg4, arg5)
{
scr_smallface_reset(arg0);
global.smsprite[arg0] = spr_face_susie_alt; if (is_string(arg1)) { if (arg1 == "susie") global.smsprite[arg0] = spr_face_susie_alt; if (arg1 == "ralsei") global.smsprite[arg0] = spr_face_r_nohat; if (arg1 == "lancer") global.smsprite[arg0] = spr_face_l0; if (arg1 == "noelle") global.smsprite[arg0] = spr_face_n_matome; if (arg1 == "noelle_cropped") global.smsprite[arg0] = spr_face_n_matome_cropped; if (arg1 == "queen") global.smsprite[arg0] =
scr_84_get_sprite("spr_face_queen");
if (arg1 == "rouxls") global.smsprite[arg0] = spr_face_rurus; if (arg1 == "berdly") global.smsprite[arg0] = spr_face_berdly_dark; if (arg1 == "rudy") global.smsprite[arg0] = spr_face_rudy; if (arg1 == "none" || arg1 == "empty") global.smsprite[arg0] = spr_empty; } else { global.smsprite[arg0] = arg1; if (arg1 == 0) global.smsprite[arg0] = spr_empty; } global.smimage[arg0] = arg2; if (is_string(arg3)) { if (global.fighting == 1) { if (arg3 == "left") global.smxx[arg0] = 60; if (arg3 == "leftmid") global.smxx[arg0] = 160; if (arg3 == "mid" || arg3 == "middle") global.smxx[arg0] = 260; if (arg3 == "rightmid") global.smxx[arg0] = 360; if (arg3 == "right") global.smxx[arg0] = 460; } else { if (arg3 == "left") global.smxx[arg0] = 70; if (arg3 == "leftmid") global.smxx[arg0] = 160; if (arg3 == "mid" || arg3 == "middle") global.smxx[arg0] = 260; if (arg3 == "rightmid") global.smxx[arg0] = 360; if (arg3 == "right") global.smxx[arg0] = 400; } } else { global.smxx[arg0] = arg3; } if (is_string(arg4)) { if (global.fighting == 1) { if (arg4 == "top") global.smyy[arg0] = -10; if (arg4 == "mid" || arg4 == "middle") global.smyy[arg0] = 30; if (arg4 == "bottommid") global.smyy[arg0] = 45; if (arg4 == "bottom") global.smyy[arg0] = 56; if (arg4 == "bottom" || arg4 == "bottommid") { global.smdir[arg0] = 90; global.smspeed[arg0] = 4; global.smalarm[arg0] = 10; global.smyy[arg0] += 40; global.smxx[arg0] -= 40; } } else { if (arg4 == "top") global.smyy[arg0] = -10; if (arg4 == "mid" || arg4 == "middle") global.smyy[arg0] = 30; if (arg4 == "bottommid") global.smyy[arg0] = 50; if (arg4 == "bottom") global.smyy[arg0] = 68; if (global.darkzone == 0) { if (arg4 == "top") ...
(0, "noelle", 15, "mid", "bottommid", small_text);
82
        
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
}
();
83
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(no);
84
        
c_actortoobject
c_actortoobject

function
c_actortoobject(arg0)
{
c_cmd("actortoobject", arg0, 0, 0, 0);
}
(obj_npc_room);
85
        
c_actortocaterpillar
c_actortocaterpillar

function
c_actortocaterpillar()
{
c_cmd("actortocaterpillar", 0, 0, 0, 0);
}
();
86
        
c_terminatekillactors
c_terminatekillactors

function
c_terminatekillactors()
{
c_cmd("terminatekillactors", 0, 0, 0, 0);
}
();
87
    }
88
    if (con == 2)
89
    {
90
        if (!i_ex(obj_cutscene_master))
91
        {
92
            with (obj_caterpillarchara)
93
            {
94
                if (name == "noelle")
95
                {
96
                    target = 36;
97
                    image_alpha = 0;
98
                }
99
            }
100
            with (obj_mainchara)
101
                visible = 1;
102
            con = 3;
103
            global.interact = 0;
104
            global.facing = 0;
105
            entranceforcefield = instance_create(40, 2200, obj_forcefield);
106
            entranceforcefield.image_yscale = 6;
107
            entranceforcefield.image_xscale = 2;
108
            rodeteacup = -4;
109
        }
110
    }
111
    if (con == 10)
112
    {
113
        if (obj_mainchara.y >= 450 && obj_mainchara.y <= 460)
114
        {
115
            if (global.interact == 0)
116
            {
117
                global.interact = 1;
118
                con = 11;
119
                cutscene_master = 
scr_cutscene_make
scr_cutscene_make

function
scr_cutscene_make()
{ _cutscene_master = instance_create(0, 0, obj_cutscene_master); _cutscene_master.master_object = id; return _cutscene_master; }
();
120
                
scr_maincharacters_actors
scr_maincharacters_actors

function
scr_maincharacters_actors()
{ actor_count = 0; kr = 0; kr_actor = instance_create(obj_mainchara.x, obj_mainchara.y, obj_actor);
scr_actor_setup(kr, kr_actor, "kris");
kr_actor.sprite_index = obj_mainchara.sprite_index; kr_actor.depth = obj_mainchara.depth; with (obj_mainchara) visible = 0; for (__jj = 0; __jj < array_length_1d(global.cinstance); __jj++) { if (i_ex(global.cinstance[__jj])) { if (global.cinstance[__jj].name == "susie") { actor_count++; su = __jj + 1; su_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(su, su_actor, "susie");
su_actor.sprite_index = global.cinstance[__jj].sprite_index; su_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } if (global.cinstance[__jj].name == "ralsei") { actor_count++; ra = __jj + 1; ra_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(ra, ra_actor, "ralsei");
ra_actor.sprite_index = global.cinstance[__jj].sprite_index; ra_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } if (global.cinstance[__jj].name == "noelle") { actor_count++; no = __jj + 1; no_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(no, no_actor, "noelle");
no_actor.sprite_index = global.cinstance[__jj].sprite_index; no_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } } } }
();
121
                with (obj_npc_room)
122
                    instance_destroy();
123
                no_actor.x = camerax() - 50;
124
                no_actor.y = 470;
125
            }
126
        }
127
    }
128
    if (con == 11)
129
    {
130
        con = 12;
131
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(no);
132
        
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(obj_mainchara.x, 460, 20);
133
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(20);
134
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("u");
135
        if (rodeteacup < 3)
136
        {
137
            
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("noelle");
138
            
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
Face 8* (W...Delay 11 wait for me!)Wait for inputClose Message
"\\E8* (W..^1. wait for me!)/%", "obj_room_dw_city_postbaseball_slash_Step_0_gml_161_0"
);
139
            
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
}
();
140
        }
141
        else
142
        {
143
            
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("noelle");
144
            
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
Face H* So,Delay 11 umm...Delay 11 why were you all...Delay 11 riding a teacup together?Wait for input
"\\EH* So^1, umm..^1. why were you all..^1. riding a teacup together?/", "obj_room_dw_city_postbaseball_slash_Step_0_gml_167_0"
);
145
            
c_facenext
c_facenext

function
c_facenext(arg0, arg1)
{
c_cmd("msgfacenext", arg0, arg1, 0, 0);
}
("susie", 0);
146
            
c_msgnextloc
c_msgnextloc

function
c_msgnextloc(arg0, arg1)
{ var str = arg0; var localized_string_id = arg1; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
}
(
Face 0* Ugh. Balloons.Wait for input
"\\E0* Ugh. Balloons./", "obj_room_dw_city_postbaseball_slash_Step_0_gml_169_0"
);
147
            
c_facenext
c_facenext

function
c_facenext(arg0, arg1)
{
c_cmd("msgfacenext", arg0, arg1, 0, 0);
}
("noelle", 2);
148
            
c_msgnextloc
c_msgnextloc

function
c_msgnextloc(arg0, arg1)
{ var str = arg0; var localized_string_id = arg1; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
}
(
Face 2* Balloons?Wait for input
"\\E2* Balloons?/", "obj_room_dw_city_postbaseball_slash_Step_0_gml_171_0"
);
149
            
c_facenext
c_facenext

function
c_facenext(arg0, arg1)
{
c_cmd("msgfacenext", arg0, arg1, 0, 0);
}
("susie", 1);
150
            
c_msgnextloc
c_msgnextloc

function
c_msgnextloc(arg0, arg1)
{ var str = arg0; var localized_string_id = arg1; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
}
(
Face 1* Trust me...Delay 11 you dodged a bullet.Wait for input
"\\E1* Trust me..^1. you dodged a bullet./", "obj_room_dw_city_postbaseball_slash_Step_0_gml_173_0"
);
151
            
c_facenext
c_facenext

function
c_facenext(arg0, arg1)
{
c_cmd("msgfacenext", arg0, arg1, 0, 0);
}
("noelle", 2);
152
            
c_msgnextloc
c_msgnextloc

function
c_msgnextloc(arg0, arg1)
{ var str = arg0; var localized_string_id = arg1; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
}
(
Face 2* Umm... okay!Wait for inputClose Message
"\\E2* Umm... okay!/%", "obj_room_dw_city_postbaseball_slash_Step_0_gml_175_0"
);
153
            
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
}
();
154
        }
155
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(ra);
156
        
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(caterpillarnoe.x, caterpillarnoe.y, 20);
157
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(no);
158
        
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(caterpillarral.x, caterpillarral.y - 10, 20);
159
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(20);
160
    }
161
    if (con == 12)
162
    {
163
        if (!i_ex(obj_cutscene_master))
164
        {
165
            con = 13;
166
            global.interact = 0;
167
            global.facing = 0;
168
            if (
scr_debug
scr_debug

function
scr_debug()
{ return 0; }
())
169
            {
170
                for (i = 0; i < 7; i++)
171
                {
172
                    var checkchar = instance_find(obj_caterpillarchara, i);
173
                    if (i_ex(checkchar))
174
                        
scr_debug_print
scr_debug_print

function
scr_debug_print(arg0)
{ }
(checkchar.name);
175
                }
176
            }
177
            if (!i_ex(caterpillarnoe))
178
            {
179
                caterpillarnoe = 
scr_makecaterpillar
scr_makecaterpillar

function
scr_makecaterpillar(arg0, arg1, arg2, arg3)
{ global.cinstance[arg3] = instance_create(arg0, arg1, obj_caterpillarchara); global.cinstance[arg3].target = 12 + (arg3 * 12); if (arg2 == 3) { with (global.cinstance[arg3]) { usprite = spr_ralseiu; dsprite = spr_ralseid; rsprite = spr_ralseir; lsprite = spr_ralseil; if (global.chapter >= 2) { name = "ralsei"; usprite = spr_ralsei_walk_up; dsprite = spr_ralsei_walk_down; rsprite = spr_ralsei_walk_right; lsprite = spr_ralsei_walk_left; } } } if (arg2 == 4) { with (global.cinstance[arg3]) { name = "noelle"; usprite = spr_noelle_walk_up_dw; dsprite = spr_noelle_walk_down_dw; rsprite = spr_noelle_walk_right_dw; lsprite = spr_noelle_walk_left_dw; if (global.chapter == 2 && global.plot == 95) { dsprite = spr_noelle_walk_down_blush_dw; rsprite = spr_noelle_walk_right_blush_dw; lsprite = spr_noelle_walk_left_blush_dw; } } } if (arg2 == 5) { with (global.cinstance[arg3]) { name = "berdly"; usprite = spr_berdly_walk_up_dw; dsprite = spr_berdly_walk_down_dw; rsprite = spr_berdly_walk_right_dw; lsprite = spr_berdly_walk_left_dw; } } if (arg2 == 6) { with (global.cinstance[arg3]) { name = "starwalker"; usprite = spr_npc_originalstarwalker; dsprite = spr_npc_originalstarwalker; rsprite = spr_npc_originalstarwalker; lsprite = spr_npc_originalstarwalker; } } return global.cinstance[arg3]; }
(no_actor.x, no_actor.y, 2, 3);
180
                caterpillarnoe.target = 24;
181
                if (
scr_debug
scr_debug

function
scr_debug()
{ return 0; }
())
182
                    snd_play(snd_won);
183
            }
184
            else
185
            {
186
                caterpillarnoe.visible = 1;
187
                caterpillarnoe.target = 24;
188
                caterpillarnoe.image_alpha = 1;
189
            }
190
            var remx = caterpillarnoe.x;
191
            var remy = caterpillarnoe.y;
192
            caterpillarnoe.x = caterpillarral.x;
193
            caterpillarnoe.y = caterpillarral.y - 10;
194
            caterpillarral.target = 36;
195
            caterpillarral.x = remx;
196
            caterpillarral.y = remy;
197
            with (obj_actor)
198
                instance_destroy();
199
            with (obj_mainchara)
200
                visible = 1;
201
            with (obj_caterpillarchara)
202
                visible = 1;
203
            with (obj_chaseenemy)
204
                instance_destroy();
205
        }
206
    }
207
    if (switchcon == 1)
208
    {
209
        snd_play(snd_locker);
210
        with (forcefieldtopright)
211
            instance_destroy();
212
        switchcon = 0;
213
    }
214
    if (switch2con == 1)
215
    {
216
        snd_play(snd_locker);
217
        with (forcefieldright)
218
            instance_destroy();
219
        global.flag[448 finished_big_forcefield] = 1;
220
        switch2con = 2;
221
        if (con < 10)
222
            con = 10;
223
    }
224
    if (rodeteacup == -3 && global.interact == 1)
225
        rodeteacup = -2;
226
    if (rodeteacup == -2)
227
    {
228
        
scr_cutscene_make
scr_cutscene_make

function
scr_cutscene_make()
{ _cutscene_master = instance_create(0, 0, obj_cutscene_master); _cutscene_master.master_object = id; return _cutscene_master; }
();
229
        
c_fadeout
c_fadeout

function
c_fadeout(arg0)
{
c_cmd("fadeout", arg0, 0, 0, 0);
}
(20);
230
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(20);
231
        
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("no_name");
232
        
c_soundplay
c_soundplay

function
c_soundplay(arg0)
{
c_cmd("soundplay", arg0, 0, 0, 0);
}
(snd_jump);
233
        
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
* (You all jumped into one teacup.)Wait for input
"* (You all jumped into one teacup.)/", "obj_room_dw_city_postbaseball_slash_Step_0_gml_257_0"
);
234
        
c_msgnextloc
c_msgnextloc

function
c_msgnextloc(arg0, arg1)
{ var str = arg0; var localized_string_id = arg1; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
}
(
* (You heard a clicking sound.)Wait for inputClose Message
"* (You heard a clicking sound.)/%", "obj_room_dw_city_postbaseball_slash_Step_0_gml_258_0"
);
235
        
c_talk
c_talk

function
c_talk()
{
c_cmd("talk", 0, 0, 0, 0);
}
();
236
        
c_wait_box
c_wait_box

function
c_wait_box(arg0)
{
c_cmd("waitbox", arg0, 0, 0, 0);
}
(1);
237
        
c_soundplay
c_soundplay

function
c_soundplay(arg0)
{
c_cmd("soundplay", arg0, 0, 0, 0);
}
(snd_noise);
238
        
c_waittalk
c_waittalk

function
c_waittalk()
{
c_cmd("waitdialoguer", 0, 0, 0, 0);
}
();
239
        
c_fadein
c_fadein

function
c_fadein(arg0)
{
c_cmd("fadeout", -arg0, 0, 0, 0);
}
(20);
240
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(20);
241
        global.flag[449 easter_egg_forcefield] = 1;
242
        rodeteacup = -1;
243
    }
244
    if (rodeteacup == -1 && !instance_exists(obj_cutscene_master))
245
    {
246
        rodeteacup = 1;
247
        global.interact = 0;
248
        global.facing = 0;
249
    }
250
    if (rodeteacup == 1)
251
    {
252
        with (forcefieldtopleft)
253
            instance_destroy();
254
        rodeteacup = 2;
255
    }
256
}
257
if (room == room_dw_city_postbaseball_2)
258
{
259
    if (con == 0 && obj_mainchara.x >= 640 && global.flag[447 broke_balloon_cheese] == 0)
260
    {
261
        con = 1;
262
        fireworkshotcon = 1;
263
        with (obj_fireworks_manager)
264
            is_active = 0;
265
        forcefield = 
scr_forcefield
scr_forcefield

function
scr_forcefield(arg0, arg1, arg2, arg3, arg4, arg5)
{ field = instance_create(arg0, arg1, obj_forcefield); field.image_xscale = arg2; field.image_yscale = arg3; field.skip = arg4; field.stayVisible = arg5; with (field)
scr_depth();
return field; }
(40, 280, 2, 6, 1, 0);
266
        bulletarea = instance_create(0, 320, obj_overworld_bulletarea);
267
        bulletarea.image_xscale = 66;
268
        bulletarea.image_yscale = 4;
269
        timer = 0;
270
    }
271
    if (con == 1)
272
    {
273
        with (obj_caterpillarchara)
274
            image_alpha -= 0.02;
275
        timer++;
276
        if (timer >= 55)
277
        {
278
            con = 2;
279
            caterpillarnoe.visible = 0;
280
            caterpillarnoe.image_alpha = 0;
281
            caterpillarnoe.target = 36;
282
            caterpillarral.target = 24;
283
        }
284
    }
285
    if (fireworkshotcon == 1)
286
    {
287
        fireworktimer++;
288
        if (fireworktimer >= 30)
289
        {
290
            instance_create(camerax() + 320 + random(320) + (right_h() * 400), (cameray() + 380) - random(60), obj_overworldbullet_fireworks);
291
            fireworktimer = 0;
292
        }
293
    }
294
    if (con == 2)
295
    {
296
        with (obj_caterpillarchara)
297
            visible = false;
298
        if (obj_mainchara.x >= 2460)
299
        {
300
            with (obj_caterpillarchara)
301
                visible = true;
302
            with (obj_overworld_bulletarea)
303
                instance_destroy();
304
            with (obj_darkcontroller)
305
                charcon = 0;
306
            con = 3;
307
            fireworkshotcon = 0;
308
        }
309
    }
310
    if (con == 3)
311
    {
312
        with (obj_caterpillarchara)
313
        {
314
            if (name != "noelle")
315
                image_alpha += 0.1;
316
        }
317
        with (obj_overworldbulletparent)
318
            image_alpha -= 0.1;
319
        if (global.fighting == 1)
320
            con = 4;
321
    }
322
    if (con == 4)
323
    {
324
        if (global.fighting == 0 && global.interact == 0)
325
        {
326
            global.interact = 1;
327
            con = 10;
328
        }
329
    }
330
    if (con == 10)
331
    {
332
        global.interact = 1;
333
        con = 11;
334
        cutscene_master = 
scr_cutscene_make
scr_cutscene_make

function
scr_cutscene_make()
{ _cutscene_master = instance_create(0, 0, obj_cutscene_master); _cutscene_master.master_object = id; return _cutscene_master; }
();
335
        
scr_maincharacters_actors
scr_maincharacters_actors

function
scr_maincharacters_actors()
{ actor_count = 0; kr = 0; kr_actor = instance_create(obj_mainchara.x, obj_mainchara.y, obj_actor);
scr_actor_setup(kr, kr_actor, "kris");
kr_actor.sprite_index = obj_mainchara.sprite_index; kr_actor.depth = obj_mainchara.depth; with (obj_mainchara) visible = 0; for (__jj = 0; __jj < array_length_1d(global.cinstance); __jj++) { if (i_ex(global.cinstance[__jj])) { if (global.cinstance[__jj].name == "susie") { actor_count++; su = __jj + 1; su_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(su, su_actor, "susie");
su_actor.sprite_index = global.cinstance[__jj].sprite_index; su_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } if (global.cinstance[__jj].name == "ralsei") { actor_count++; ra = __jj + 1; ra_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(ra, ra_actor, "ralsei");
ra_actor.sprite_index = global.cinstance[__jj].sprite_index; ra_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } if (global.cinstance[__jj].name == "noelle") { actor_count++; no = __jj + 1; no_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(no, no_actor, "noelle");
no_actor.sprite_index = global.cinstance[__jj].sprite_index; no_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } } } }
();
336
        with (obj_npc_room)
337
            instance_destroy();
338
        no_actor.x = camerax() - 50;
339
        no_actor.y = 266;
340
    }
341
    if (con == 11)
342
    {
343
        con = 12;
344
        
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("susie");
345
        
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
Face K* Wait a sec...Delay 11 Where's Noelle?Wait for inputClose Message
"\\EK* Wait a sec..^1. Where's Noelle?/%", "obj_room_dw_city_postbaseball_slash_Step_0_gml_380_0"
);
346
        
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
}
();
347
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(ra);
348
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("l");
349
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(su);
350
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("l");
351
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(kr);
352
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("l");
353
        var nox = min(kr_actor.x, ra_actor.x, su_actor.x) - 60;
354
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(no);
355
        
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(nox, caterpillarral.y - 10, 30);
356
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(30);
357
        
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("noelle");
358
        
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
Face 2* S-sorry,Delay 11 I...Delay 11 I'd just never seen fireworks up close before...Wait for input
"\\E2* S-sorry^1, I..^1. I'd just never seen fireworks up close before.../", "obj_room_dw_city_postbaseball_slash_Step_0_gml_399_0"
);
359
        
c_facenext
c_facenext

function
c_facenext(arg0, arg1)
{
c_cmd("msgfacenext", arg0, arg1, 0, 0);
}
("susie", 34);
360
        
c_msgnextloc
c_msgnextloc

function
c_msgnextloc(arg0, arg1)
{ var str = arg0; var localized_string_id = arg1; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
}
(
Face Y* Those bullets? What,Delay 11 you scared?Wait for input
"\\EY* Those bullets? What^1, you scared?/", "obj_room_dw_city_postbaseball_slash_Step_0_gml_401_0"
);
361
        
c_facenext
c_facenext

function
c_facenext(arg0, arg1)
{
c_cmd("msgfacenext", arg0, arg1, 0, 0);
}
("noelle", 3);
362
        
c_msgnextloc
c_msgnextloc

function
c_msgnextloc(arg0, arg1)
{ var str = arg0; var localized_string_id = arg1; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
}
(
Face 3* Uh...Delay 11 umm...Delay 11 I guess so...Wait for input
"\\E3* Uh..^1. umm..^1. I guess so.../", "obj_room_dw_city_postbaseball_slash_Step_0_gml_403_0"
);
363
        
c_msgnextloc
c_msgnextloc

function
c_msgnextloc(arg0, arg1)
{ var str = arg0; var localized_string_id = arg1; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
}
(
Face 4* (Maybe that's...Delay 11 why I couldn't stop watching...?)Wait for inputClose Message
"\\E4* (Maybe that's..^1. why I couldn't stop watching...?)/%", "obj_room_dw_city_postbaseball_slash_Step_0_gml_404_0"
);
364
        
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
}
();
365
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(ra);
366
        
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(caterpillarnoe.x, caterpillarnoe.y, 20);
367
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(no);
368
        
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(caterpillarral.x, caterpillarral.y - 10, 20);
369
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(20);
370
    }
371
    if (con == 12)
372
    {
373
        if (!i_ex(obj_cutscene_master))
374
        {
375
            con = 13;
376
            global.interact = 0;
377
            global.facing = 0;
378
            if (
scr_debug
scr_debug

function
scr_debug()
{ return 0; }
())
379
            {
380
                for (i = 0; i < 7; i++)
381
                {
382
                    var checkchar = instance_find(obj_caterpillarchara, i);
383
                    if (i_ex(checkchar))
384
                        
scr_debug_print
scr_debug_print

function
scr_debug_print(arg0)
{ }
(checkchar.name);
385
                }
386
            }
387
            if (!i_ex(caterpillarnoe))
388
            {
389
                caterpillarnoe = 
scr_makecaterpillar
scr_makecaterpillar

function
scr_makecaterpillar(arg0, arg1, arg2, arg3)
{ global.cinstance[arg3] = instance_create(arg0, arg1, obj_caterpillarchara); global.cinstance[arg3].target = 12 + (arg3 * 12); if (arg2 == 3) { with (global.cinstance[arg3]) { usprite = spr_ralseiu; dsprite = spr_ralseid; rsprite = spr_ralseir; lsprite = spr_ralseil; if (global.chapter >= 2) { name = "ralsei"; usprite = spr_ralsei_walk_up; dsprite = spr_ralsei_walk_down; rsprite = spr_ralsei_walk_right; lsprite = spr_ralsei_walk_left; } } } if (arg2 == 4) { with (global.cinstance[arg3]) { name = "noelle"; usprite = spr_noelle_walk_up_dw; dsprite = spr_noelle_walk_down_dw; rsprite = spr_noelle_walk_right_dw; lsprite = spr_noelle_walk_left_dw; if (global.chapter == 2 && global.plot == 95) { dsprite = spr_noelle_walk_down_blush_dw; rsprite = spr_noelle_walk_right_blush_dw; lsprite = spr_noelle_walk_left_blush_dw; } } } if (arg2 == 5) { with (global.cinstance[arg3]) { name = "berdly"; usprite = spr_berdly_walk_up_dw; dsprite = spr_berdly_walk_down_dw; rsprite = spr_berdly_walk_right_dw; lsprite = spr_berdly_walk_left_dw; } } if (arg2 == 6) { with (global.cinstance[arg3]) { name = "starwalker"; usprite = spr_npc_originalstarwalker; dsprite = spr_npc_originalstarwalker; rsprite = spr_npc_originalstarwalker; lsprite = spr_npc_originalstarwalker; } } return global.cinstance[arg3]; }
(no_actor.x, no_actor.y, 2, 3);
390
                caterpillarnoe.target = 24;
391
                if (
scr_debug
scr_debug

function
scr_debug()
{ return 0; }
())
392
                    snd_play(snd_won);
393
            }
394
            else
395
            {
396
                caterpillarnoe.visible = 1;
397
                caterpillarnoe.target = 24;
398
                caterpillarnoe.image_alpha = 1;
399
            }
400
            var remx = caterpillarnoe.x;
401
            var remy = caterpillarnoe.y;
402
            caterpillarnoe.x = caterpillarral.x;
403
            caterpillarnoe.y = caterpillarral.y - 10;
404
            caterpillarral.target = 36;
405
            caterpillarral.x = remx;
406
            caterpillarral.y = remy;
407
            with (obj_actor)
408
                instance_destroy();
409
            with (obj_mainchara)
410
                visible = 1;
411
            with (obj_caterpillarchara)
412
                visible = 1;
413
            with (obj_chaseenemy)
414
                instance_destroy();
415
        }
416
    }
417
    if (switch1con >= 0)
418
    {
419
        with (obj_cybercity_balloon)
420
            breakable = 1;
421
        if (switch1con == 1)
422
        {
423
            if (!i_ex(forcefield1))
424
            {
425
                forcefield1 = instance_create(2860, 160, obj_forcefield);
426
                forcefield1.image_xscale = 10;
427
                forcefield1.image_yscale = 2;
428
                forcefield1.stayVisible = 1;
429
                forcefield1.ignorealpha = 1;
430
                forcefield1.image_alpha = 0.2;
431
            }
432
            else
433
            {
434
                with (forcefield1)
435
                {
436
                    if (image_alpha < 3)
437
                        image_alpha += 0.5;
438
                }
439
            }
440
        }
441
        else
442
        {
443
            with (forcefield1)
444
            {
445
                image_alpha -= 0.2;
446
                if (image_alpha <= 0)
447
                    instance_destroy();
448
            }
449
        }
450
    }
451
    if (switch2con >= 0)
452
    {
453
        with (obj_cybercity_balloon)
454
            breakable = 1;
455
        if (switch2con == 1)
456
        {
457
            if (!i_ex(forcefield2))
458
            {
459
                forcefield2 = instance_create(3120, 160, obj_forcefield);
460
                forcefield2.image_xscale = 10;
461
                forcefield2.image_yscale = 2;
462
                forcefield2.stayVisible = 1;
463
                forcefield2.ignorealpha = 1;
464
            }
465
            else
466
            {
467
                with (forcefield2)
468
                {
469
                    if (image_alpha < 3)
470
                        image_alpha += 0.5;
471
                }
472
            }
473
        }
474
        else
475
        {
476
            with (forcefield2)
477
            {
478
                image_alpha -= 0.2;
479
                if (image_alpha <= 0)
480
                    instance_destroy();
481
            }
482
        }
483
    }
484
    if (switch3con >= 0)
485
    {
486
        with (obj_cybercity_balloon)
487
            breakable = 1;
488
        if (switch3con == 1)
489
        {
490
            if (!i_ex(forcefield3))
491
            {
492
                forcefield3 = 
scr_forcefield
scr_forcefield

function
scr_forcefield(arg0, arg1, arg2, arg3, arg4, arg5)
{ field = instance_create(arg0, arg1, obj_forcefield); field.image_xscale = arg2; field.image_yscale = arg3; field.skip = arg4; field.stayVisible = arg5; with (field)
scr_depth();
return field; }
(3600, 120, 10, 2, 1, 1);
493
                forcefield3.ignorealpha = 1;
494
            }
495
            else
496
            {
497
                with (forcefield3)
498
                {
499
                    if (image_alpha < 3)
500
                        image_alpha += 0.5;
501
                }
502
            }
503
        }
504
        else
505
        {
506
            with (forcefield3)
507
            {
508
                image_alpha -= 0.2;
509
                if (image_alpha <= 0)
510
                    instance_destroy();
511
            }
512
        }
513
    }
514
}
515
if (room == room_dw_city_postbaseball_3)
516
{
517
    if (obj_mainchara.x > 420 && blockleft == 0)
518
    {
519
        
scr_forcefield
scr_forcefield

function
scr_forcefield(arg0, arg1, arg2, arg3, arg4, arg5)
{ field = instance_create(arg0, arg1, obj_forcefield); field.image_xscale = arg2; field.image_yscale = arg3; field.skip = arg4; field.stayVisible = arg5; with (field)
scr_depth();
return field; }
(80, 280, 2, 6, 1, 0);
520
        blockleft = 1;
521
    }
522
    if (balloondestroyed[0])
523
    {
524
        if (!i_ex(balloon[0]))
525
        {
526
            balloon[0] = instance_create(ballremx[0], cameray() - 120, obj_cybercity_balloon);
527
            balloon[0].balloonid = 0;
528
            with (balloon[0])
529
            {
530
                event_user(0);
531
                mylerpfall = 
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; }
("y", y, 60, 15, 2, "out");
532
            }
533
            balloondestroyed[0] = 0;
534
        }
535
        else
536
        {
537
            balloondestroyed[0] = 0;
538
        }
539
    }
540
    if (switch1con >= 0)
541
    {
542
        with (obj_cybercity_balloon)
543
            breakable = 1;
544
        if (switch1con == 1)
545
        {
546
            if (!i_ex(forcefield1))
547
            {
548
                forcefield1 = 
scr_forcefield
scr_forcefield

function
scr_forcefield(arg0, arg1, arg2, arg3, arg4, arg5)
{ field = instance_create(arg0, arg1, obj_forcefield); field.image_xscale = arg2; field.image_yscale = arg3; field.skip = arg4; field.stayVisible = arg5; with (field)
scr_depth();
return field; }
(580, 80, 8, 2, 1, 1);
549
                forcefield1.ignorealpha = 1;
550
            }
551
            else
552
            {
553
                with (forcefield1)
554
                {
555
                    if (image_alpha < 3)
556
                        image_alpha += 0.5;
557
                }
558
            }
559
        }
560
        else
561
        {
562
            with (forcefield1)
563
            {
564
                image_alpha -= 0.2;
565
                if (image_alpha <= 0)
566
                    instance_destroy();
567
            }
568
        }
569
    }
570
    if (switch2con >= 0)
571
    {
572
        with (obj_cybercity_balloon)
573
            breakable = 1;
574
        if (switch2con == 1)
575
        {
576
            if (!i_ex(forcefield2))
577
            {
578
                forcefield2 = 
scr_forcefield
scr_forcefield

function
scr_forcefield(arg0, arg1, arg2, arg3, arg4, arg5)
{ field = instance_create(arg0, arg1, obj_forcefield); field.image_xscale = arg2; field.image_yscale = arg3; field.skip = arg4; field.stayVisible = arg5; with (field)
scr_depth();
return field; }
(980, 40, 16, 2, 1, 1);
579
                forcefield2.ignorealpha = 1;
580
            }
581
            else
582
            {
583
                with (forcefield2)
584
                {
585
                    if (image_alpha < 3)
586
                        image_alpha += 0.5;
587
                }
588
            }
589
        }
590
        else
591
        {
592
            with (forcefield2)
593
            {
594
                image_alpha -= 0.2;
595
                if (image_alpha <= 0)
596
                    instance_destroy();
597
            }
598
        }
599
    }
600
    if (i_ex(blockforcefield))
601
    {
602
        if (pillar1.completed == 1)
603
        {
604
            safe_delete(blockforcefield);
605
            layer_set_visible("TILE_BLOCKLAYER1", 0);
606
        }
607
    }
608
    if (i_ex(blockforcefield2))
609
    {
610
        if (pillar2.completed == 1)
611
        {
612
            safe_delete(blockforcefield2);
613
            layer_set_visible("TILE_BLOCKLAYER2", 0);
614
        }
615
    }
616
    if (i_ex(blockforcefield3))
617
    {
618
        if (pillar3.completed == 1)
619
        {
620
            safe_delete(blockforcefield3);
621
            layer_set_visible("TILE_BLOCKLAYER3", 0);
622
        }
623
    }
624
    if (i_ex(blockforcefield4))
625
    {
626
        if (bucketpillar.completed == 1)
627
        {
628
            safe_delete(blockforcefield4);
629
            layer_set_visible("TILE_BLOCKLAYER4", 0);
630
        }
631
    }
632
    if (minigamestartcon == 0)
633
    {
634
        if (!i_ex(blockforcefield2))
635
        {
636
            global.flag[7 disable_menu?] = 1;
637
            mus_volume(global.currentsong[1], 0, 30);
638
            global.interact = 1;
639
            timer = 0;
640
            minigamestartcon = 0.5;
641
        }
642
    }
643
    if (minigamestartcon == 0.5)
644
    {
645
        timer++;
646
        global.interact = 1;
647
        if (timer == 30)
648
        {
649
            cutscene_master = 
scr_cutscene_make
scr_cutscene_make

function
scr_cutscene_make()
{ _cutscene_master = instance_create(0, 0, obj_cutscene_master); _cutscene_master.master_object = id; return _cutscene_master; }
();
650
            
scr_maincharacters_actors
scr_maincharacters_actors

function
scr_maincharacters_actors()
{ actor_count = 0; kr = 0; kr_actor = instance_create(obj_mainchara.x, obj_mainchara.y, obj_actor);
scr_actor_setup(kr, kr_actor, "kris");
kr_actor.sprite_index = obj_mainchara.sprite_index; kr_actor.depth = obj_mainchara.depth; with (obj_mainchara) visible = 0; for (__jj = 0; __jj < array_length_1d(global.cinstance); __jj++) { if (i_ex(global.cinstance[__jj])) { if (global.cinstance[__jj].name == "susie") { actor_count++; su = __jj + 1; su_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(su, su_actor, "susie");
su_actor.sprite_index = global.cinstance[__jj].sprite_index; su_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } if (global.cinstance[__jj].name == "ralsei") { actor_count++; ra = __jj + 1; ra_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(ra, ra_actor, "ralsei");
ra_actor.sprite_index = global.cinstance[__jj].sprite_index; ra_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } if (global.cinstance[__jj].name == "noelle") { actor_count++; no = __jj + 1; no_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(no, no_actor, "noelle");
no_actor.sprite_index = global.cinstance[__jj].sprite_index; no_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } } } }
();
651
            minigamestartcon = 1;
652
        }
653
    }
654
    if (minigamestartcon == 1)
655
    {
656
        minigamestartcon = -999;
657
        
c_pannable
c_pannable

function
c_pannable(arg0)
{
c_cmd("pannable", arg0, 0, 0, 0);
}
(1);
658
        
c_pan
c_pan

function
c_pan(arg0, arg1, arg2)
{
c_cmd("pan", arg0, arg1, arg2, 0);
}
(1380, 0, 25);
659
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(kr);
660
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("r");
661
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(su);
662
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("r");
663
        
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(1460, 263, 12);
664
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(no);
665
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("r");
666
        
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(1416, 264, 14);
667
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(ra);
668
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("r");
669
        
c_walkdirect
c_walkdirect

function
c_walkdirect(arg0, arg1, arg2)
{
c_cmd("walkdirect", arg0, arg1, arg2, 0);
}
(1374, 258, 16);
670
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(17);
671
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(kr);
672
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("r");
673
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(su);
674
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("r");
675
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(no);
676
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("r");
677
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(ra);
678
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("r");
679
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(23);
680
        
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("susie");
681
        
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
Face 5* 20 more!? Damn,Delay 11 we're gonna be here forever!Wait for input
"\\E5* 20 more!? Damn^1, we're gonna be here forever!/", "obj_room_dw_city_postbaseball_slash_Step_0_gml_708_0"
);
682
        
c_facenext
c_facenext

function
c_facenext(arg0, arg1)
{
c_cmd("msgfacenext", arg0, arg1, 0, 0);
}
("noelle", "2");
683
        
c_msgnextloc
c_msgnextloc

function
c_msgnextloc(arg0, arg1)
{ var str = arg0; var localized_string_id = arg1; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
}
(
Face 2* M...Delay 11 maybe if we...Delay 11 um,Delay 11 split up the work?Wait for input
"\\E2* M..^1. maybe if we..^1. um^1, split up the work?/", "obj_room_dw_city_postbaseball_slash_Step_0_gml_710_0"
);
684
        
c_facenext
c_facenext

function
c_facenext(arg0, arg1)
{
c_cmd("msgfacenext", arg0, arg1, 0, 0);
}
("susie", "K");
685
        
c_msgnextloc
c_msgnextloc

function
c_msgnextloc(arg0, arg1)
{ var str = arg0; var localized_string_id = arg1; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgnext(str);
}
(
Face K* Huh?Wait for inputClose Message
"\\EK* Huh?/%", "obj_room_dw_city_postbaseball_slash_Step_0_gml_712_0"
);
686
        
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
}
();
687
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(15);
688
        
c_fadeout
c_fadeout

function
c_fadeout(arg0)
{
c_cmd("fadeout", arg0, 0, 0, 0);
}
(15);
689
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(30);
690
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(1);
691
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(kr);
692
        
c_setxy
c_setxy

function
c_setxy(arg0, arg1)
{
c_cmd("setxy", arg0, arg1, 0, 0);
}
(pillaremerge.x + 280, 275);
693
        
c_actortokris
c_actortokris

function
c_actortokris()
{
c_cmd("actortokris", 0, 0, 0, 0);
}
();
694
        
c_actortocaterpillar
c_actortocaterpillar

function
c_actortocaterpillar()
{
c_cmd("actortocaterpillar", 0, 0, 0, 0);
}
();
695
        
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(id, "minigame", 1);
696
        
c_terminatekillactors
c_terminatekillactors

function
c_terminatekillactors()
{
c_cmd("terminatekillactors", 0, 0, 0, 0);
}
();
697
    }
698
    if (keyboard_check_pressed(ord("M")) && 
scr_debug
scr_debug

function
scr_debug()
{ return 0; }
())
699
        obj_kris_headobj.miceheld = pillar3.micerequired - 2;
700
    if (minigame == 1)
701
    {
702
        if (minigamecon == 0)
703
        {
704
            global.interact = 1;
705
            with (obj_caterpillarchara)
706
                instance_destroy();
707
            minigametimer = 0;
708
            noelletimer = 0;
709
            switchtimer = 20;
710
            susieactor = instance_create(1380, 260, obj_actor);
711
            susieactor.sprite_index = spr_susie_walk_left_dw;
712
            with (susieactor)
713
                
scr_set_facing_sprites
scr_set_facing_sprites

function
scr_set_facing_sprites(arg0)
{ _actorname = arg0; name = arg0; if (is_string(_actorname)) { if (_actorname == "kris") { name = "kris"; if (global.darkzone == 0) _actorname = "krislight"; if (global.darkzone == 1) _actorname = "krisdark"; } if (_actorname == "susie") { name = "susie"; if (global.darkzone == 0) { _actorname = "susielight"; if (global.chapter >= 2) _actorname = "susielighteyes"; } if (global.darkzone == 1) { if (global.chapter == 1) _actorname = "susiedark"; if (global.chapter >= 2) _actorname = "susiedarkeyes"; } } if (_actorname == "ralsei") { name = "ralsei"; if (global.chapter <= 1) _actorname = "ralseihat"; if (global.chapter > 1) _actorname = "ralseinohat"; } if (_actorname == "noelle") { name = "noelle"; if (global.darkzone == 0) _actorname = "noellelight"; if (global.darkzone == 1) _actorname = "noelledark"; } if (_actorname == "berdly") { name = "berdly"; if (global.darkzone == 0) _actorname = "berdlylight"; if (global.darkzone == 1) _actorname = "berdlydark"; } if (_actorname == "krislight") { usprite = spr_krisu; rsprite = spr_krisr; dsprite = spr_krisd; lsprite = spr_krisl; } if (_actorname == "krisdark") { usprite = spr_krisu_dark; rsprite = spr_krisr_dark; dsprite = spr_krisd_dark; lsprite = spr_krisl_dark; } if (_actorname == "susielight") { usprite = spr_susieu; rsprite = spr_susier; dsprite = spr_susied; lsprite = spr_susiel; } if (_actorname == "susielighteyes") { usprite = spr_susie_walk_up_lw; rsprite = spr_susie_walk_right_lw; dsprite = spr_susie_walk_down_lw; lsprite = spr_susie_walk_left_lw; } if (_actorname == "susiedark") { usprite = spr_susieu_dark; rsprite = spr_susier_dark; dsprite = spr_susied_dark; lsprite = spr_susiel_dark; specialsprite[4] = spr_susie_shock_r; specialsprite[5] = spr_susie_shock; } if (_actorname == "susiedarkeyes") { usprite = spr_susie_walk_up_dw; rsprite = spr_susie_walk_right_dw; dsprite = spr_susie_walk_down_dw; lsprite = spr_susie_walk_left_dw; specialsprite[4] = spr_susie_shock_r; specialsprite[5] = spr_susie_shock; } ...
("susie");
714
            ralseiactor = instance_create(1290, 260, obj_actor);
715
            ralseiactor.sprite_index = spr_ralsei_walk_right;
716
            with (ralseiactor)
717
                
scr_set_facing_sprites
scr_set_facing_sprites

function
scr_set_facing_sprites(arg0)
{ _actorname = arg0; name = arg0; if (is_string(_actorname)) { if (_actorname == "kris") { name = "kris"; if (global.darkzone == 0) _actorname = "krislight"; if (global.darkzone == 1) _actorname = "krisdark"; } if (_actorname == "susie") { name = "susie"; if (global.darkzone == 0) { _actorname = "susielight"; if (global.chapter >= 2) _actorname = "susielighteyes"; } if (global.darkzone == 1) { if (global.chapter == 1) _actorname = "susiedark"; if (global.chapter >= 2) _actorname = "susiedarkeyes"; } } if (_actorname == "ralsei") { name = "ralsei"; if (global.chapter <= 1) _actorname = "ralseihat"; if (global.chapter > 1) _actorname = "ralseinohat"; } if (_actorname == "noelle") { name = "noelle"; if (global.darkzone == 0) _actorname = "noellelight"; if (global.darkzone == 1) _actorname = "noelledark"; } if (_actorname == "berdly") { name = "berdly"; if (global.darkzone == 0) _actorname = "berdlylight"; if (global.darkzone == 1) _actorname = "berdlydark"; } if (_actorname == "krislight") { usprite = spr_krisu; rsprite = spr_krisr; dsprite = spr_krisd; lsprite = spr_krisl; } if (_actorname == "krisdark") { usprite = spr_krisu_dark; rsprite = spr_krisr_dark; dsprite = spr_krisd_dark; lsprite = spr_krisl_dark; } if (_actorname == "susielight") { usprite = spr_susieu; rsprite = spr_susier; dsprite = spr_susied; lsprite = spr_susiel; } if (_actorname == "susielighteyes") { usprite = spr_susie_walk_up_lw; rsprite = spr_susie_walk_right_lw; dsprite = spr_susie_walk_down_lw; lsprite = spr_susie_walk_left_lw; } if (_actorname == "susiedark") { usprite = spr_susieu_dark; rsprite = spr_susier_dark; dsprite = spr_susied_dark; lsprite = spr_susiel_dark; specialsprite[4] = spr_susie_shock_r; specialsprite[5] = spr_susie_shock; } if (_actorname == "susiedarkeyes") { usprite = spr_susie_walk_up_dw; rsprite = spr_susie_walk_right_dw; dsprite = spr_susie_walk_down_dw; lsprite = spr_susie_walk_left_dw; specialsprite[4] = spr_susie_shock_r; specialsprite[5] = spr_susie_shock; } ...
("ralsei");
718
            noelleactor = instance_create(pillaremerge.x, pillaremerge.y + 60, obj_actor);
719
            noelleactor.sprite_index = spr_noelle_walk_right_dw;
720
            with (noelleactor)
721
                
scr_set_facing_sprites
scr_set_facing_sprites

function
scr_set_facing_sprites(arg0)
{ _actorname = arg0; name = arg0; if (is_string(_actorname)) { if (_actorname == "kris") { name = "kris"; if (global.darkzone == 0) _actorname = "krislight"; if (global.darkzone == 1) _actorname = "krisdark"; } if (_actorname == "susie") { name = "susie"; if (global.darkzone == 0) { _actorname = "susielight"; if (global.chapter >= 2) _actorname = "susielighteyes"; } if (global.darkzone == 1) { if (global.chapter == 1) _actorname = "susiedark"; if (global.chapter >= 2) _actorname = "susiedarkeyes"; } } if (_actorname == "ralsei") { name = "ralsei"; if (global.chapter <= 1) _actorname = "ralseihat"; if (global.chapter > 1) _actorname = "ralseinohat"; } if (_actorname == "noelle") { name = "noelle"; if (global.darkzone == 0) _actorname = "noellelight"; if (global.darkzone == 1) _actorname = "noelledark"; } if (_actorname == "berdly") { name = "berdly"; if (global.darkzone == 0) _actorname = "berdlylight"; if (global.darkzone == 1) _actorname = "berdlydark"; } if (_actorname == "krislight") { usprite = spr_krisu; rsprite = spr_krisr; dsprite = spr_krisd; lsprite = spr_krisl; } if (_actorname == "krisdark") { usprite = spr_krisu_dark; rsprite = spr_krisr_dark; dsprite = spr_krisd_dark; lsprite = spr_krisl_dark; } if (_actorname == "susielight") { usprite = spr_susieu; rsprite = spr_susier; dsprite = spr_susied; lsprite = spr_susiel; } if (_actorname == "susielighteyes") { usprite = spr_susie_walk_up_lw; rsprite = spr_susie_walk_right_lw; dsprite = spr_susie_walk_down_lw; lsprite = spr_susie_walk_left_lw; } if (_actorname == "susiedark") { usprite = spr_susieu_dark; rsprite = spr_susier_dark; dsprite = spr_susied_dark; lsprite = spr_susiel_dark; specialsprite[4] = spr_susie_shock_r; specialsprite[5] = spr_susie_shock; } if (_actorname == "susiedarkeyes") { usprite = spr_susie_walk_up_dw; rsprite = spr_susie_walk_right_dw; dsprite = spr_susie_walk_down_dw; lsprite = spr_susie_walk_left_dw; specialsprite[4] = spr_susie_shock_r; specialsprite[5] = spr_susie_shock; } ...
("noelle");
722
            with (obj_actor)
723
            {
724
                mysolid = instance_create(x, y, obj_npc_sign);
725
                mysolid.sprite_index = sprite_index;
726
                mysolid.visible = false;
727
                
scr_darksize
scr_darksize

function
scr_darksize(arg0)
{ inst = arg0; inst.image_xscale = 2; inst.image_yscale = 2; }
(mysolid);
728
            }
729
            obj_mainchara.cutscene = 1;
730
            camerax_set(pillaremerge.x - 80);
731
            safe_delete(obj_fadeout);
732
            
scr_fadein
scr_fadein

function
scr_fadein(arg0)
{ __fadeouter = instance_create(0, 0, obj_fadein); __fadeouter.fadespeed = -1 / arg0; __fadeouter.depth = 3; return __fadeouter; }
(15);
733
            minigamecon = 0.1;
734
        }
735
        if (minigamecon == 0.1)
736
        {
737
            global.interact = 1;
738
            
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("noelle");
739
            msgsetloc(0, 
Face 0* I'll release the mice...Wait for input
"\\E0* I'll release the mice.../", "obj_room_dw_city_postbaseball_slash_Step_0_gml_781_0"
);
740
            msgnextloc(
Face 4* Susie will break the balloons when they reach the top...Wait for input
"\\E4* Susie will break the balloons when they reach the top.../", "obj_room_dw_city_postbaseball_slash_Step_0_gml_782_0"
);
741
            msgnextloc(
Face 8* And Kris,Delay 11 you catch them!Delay 11 Umm,Delay 11 if that's ok.Wait for input
"\\E8* And Kris^1, you catch them^1! Umm^1, if that's ok./", "obj_room_dw_city_postbaseball_slash_Step_0_gml_783_0"
);
742
            msgnextloc(
Face 0* Ready...?Wait for input
"\\E0* Ready...?/", "obj_room_dw_city_postbaseball_slash_Step_0_gml_784_0"
);
743
            msgnextloc(
Face 4* Go!Wait for inputClose Message
"\\E4* Go!/%", "obj_room_dw_city_postbaseball_slash_Step_0_gml_785_0"
);
744
            d_make();
745
            minigamecon = 0.2;
746
        }
747
        if (minigamecon == 0.2 && !d_ex())
748
        {
749
            global.interact = 0;
750
            global.currentsong[0] = snd_init("boxing_game.ogg");
751
            global.currentsong[1] = mus_loop_ext(global.currentsong[0], 1, 1);
752
            snd_pitch(global.currentsong[1], 1.2);
753
            minigamecon = 1;
754
        }
755
        if (minigamecon == 1)
756
        {
757
            var failstate = 0;
758
            var howmanymice = 0;
759
            howmanymice = obj_kris_headobj.miceheld + instance_number(obj_cybercity_balloon);
760
            if (obj_kris_headobj.mousefailcon != 0)
761
                failstate = 1;
762
            noelletimer++;
763
            if (noelletimer < 15)
764
            {
765
                if (d_ex())
766
                    noelletimer = -6;
767
                if (howmanymice >= (pillar3.micerequired - 1))
768
                {
769
                    noelletimer = -6;
770
                    if (howmanymice >= pillar3.micerequired)
771
                        noelleactor.sprite_index = spr_noelle_walk_right_smile_dw;
772
                }
773
                if (failstate)
774
                {
775
                    noelletimer = -6;
776
                    noelleactor.sprite_index = spr_noelle_shocked_dw;
777
                }
778
            }
779
            if (noelletimer == 15)
780
            {
781
                
scr_actor_facing
scr_actor_facing

function
scr_actor_facing(arg0, arg1)
{ __newfacing = arg1; arg0.facing = __newfacing; if (__newfacing == "d") arg0.sprite_index = arg0.dsprite; if (__newfacing == "r") arg0.sprite_index = arg0.rsprite; if (__newfacing == "l") arg0.sprite_index = arg0.lsprite; if (__newfacing == "u") arg0.sprite_index = arg0.usprite; }
(noelleactor, "u");
782
                with (noelleactor)
783
                    
scr_jump_in_place
scr_jump_in_place

function
scr_jump_in_place(arg0, arg1)
{
scr_jump_to_point(x, y, arg0, arg1);
}
(12, 16);
784
            }
785
            if (noelletimer == 23)
786
            {
787
                if (failstate == 0)
788
                    obj_mouseballoon_pillar_release.ballooncon = 1;
789
            }
790
            if (noelletimer == 32)
791
            {
792
                
scr_actor_facing
scr_actor_facing

function
scr_actor_facing(arg0, arg1)
{ __newfacing = arg1; arg0.facing = __newfacing; if (__newfacing == "d") arg0.sprite_index = arg0.dsprite; if (__newfacing == "r") arg0.sprite_index = arg0.rsprite; if (__newfacing == "l") arg0.sprite_index = arg0.lsprite; if (__newfacing == "u") arg0.sprite_index = arg0.usprite; }
(noelleactor, "r");
793
                noelletimer = -6;
794
            }
795
            switchtimer++;
796
            var done = 0;
797
            if (obj_kris_headobj.miceheld == pillar3.micerequired)
798
                done = 1;
799
            if ((switchtimer == 59 && done) || (switchtimer == 106 && done))
800
            {
801
                switchtimer = 0;
802
                minigame = 2;
803
            }
804
            if (switchtimer == 60 && done == 0)
805
            {
806
                with (susieactor)
807
                    
scr_jump_to_point
scr_jump_to_point

function
scr_jump_to_point(arg0, arg1, arg2, arg3)
{ return
scr_jump_to_point_sprite(arg0, arg1, arg2, arg3, 0, 0);
}
(xstart - 40, ystart, 12, 14);
808
            }
809
            if (switchtimer == 90)
810
            {
811
                with (susieactor)
812
                {
813
                    auto_facing = 0;
814
                    
scr_move_to_point_over_time
scr_move_to_point_over_time

function
scr_move_to_point_over_time(arg0, arg1, arg2)
{ _mmm = instance_create(x, y, obj_move_to_point); _mmm.target = id; _mmm.movex = arg0; _mmm.movey = arg1; _mmm.movemax = arg2; return _mmm; }
(xstart, ystart, 15);
815
                }
816
            }
817
            if (switchtimer == 100 && done == 0)
818
            {
819
                with (ralseiactor)
820
                    
scr_jump_to_point
scr_jump_to_point

function
scr_jump_to_point(arg0, arg1, arg2, arg3)
{ return
scr_jump_to_point_sprite(arg0, arg1, arg2, arg3, 0, 0);
}
(xstart + 40, ystart, 12, 14);
821
            }
822
            if (switchtimer >= 130)
823
            {
824
                with (ralseiactor)
825
                {
826
                    auto_facing = 0;
827
                    
scr_move_to_point_over_time
scr_move_to_point_over_time

function
scr_move_to_point_over_time(arg0, arg1, arg2)
{ _mmm = instance_create(x, y, obj_move_to_point); _mmm.target = id; _mmm.movex = arg0; _mmm.movey = arg1; _mmm.movemax = arg2; return _mmm; }
(xstart, ystart, 15);
828
                }
829
                switchtimer = 50;
830
            }
831
        }
832
    }
833
    if (minigame == 2)
834
    {
835
        mus_volume(global.currentsong[1], 0, 30);
836
        global.interact = 1;
837
        snd_play(snd_won);
838
        
scr_fadeout
scr_fadeout

function
scr_fadeout(arg0)
{ __fadeouter = instance_create(camerax() - 200, cameray() - 200, obj_fadeout); __fadeouter.fadespeed = 1 / arg0; __fadeouter.depth = 3; return __fadeouter; }
(15);
839
        timer = 0;
840
        minigame = 3;
841
    }
842
    if (minigame == 3)
843
    {
844
        timer++;
845
        if (timer == 30)
846
        {
847
            obj_mainchara.x = pillaremerge.x + 280;
848
            obj_mainchara.cutscene = 0;
849
            with (obj_caterpillarchara)
850
                instance_destroy();
851
            with (obj_actor)
852
                instance_destroy();
853
            caterpillarsus = 
scr_makecaterpillar
scr_makecaterpillar

function
scr_makecaterpillar(arg0, arg1, arg2, arg3)
{ global.cinstance[arg3] = instance_create(arg0, arg1, obj_caterpillarchara); global.cinstance[arg3].target = 12 + (arg3 * 12); if (arg2 == 3) { with (global.cinstance[arg3]) { usprite = spr_ralseiu; dsprite = spr_ralseid; rsprite = spr_ralseir; lsprite = spr_ralseil; if (global.chapter >= 2) { name = "ralsei"; usprite = spr_ralsei_walk_up; dsprite = spr_ralsei_walk_down; rsprite = spr_ralsei_walk_right; lsprite = spr_ralsei_walk_left; } } } if (arg2 == 4) { with (global.cinstance[arg3]) { name = "noelle"; usprite = spr_noelle_walk_up_dw; dsprite = spr_noelle_walk_down_dw; rsprite = spr_noelle_walk_right_dw; lsprite = spr_noelle_walk_left_dw; if (global.chapter == 2 && global.plot == 95) { dsprite = spr_noelle_walk_down_blush_dw; rsprite = spr_noelle_walk_right_blush_dw; lsprite = spr_noelle_walk_left_blush_dw; } } } if (arg2 == 5) { with (global.cinstance[arg3]) { name = "berdly"; usprite = spr_berdly_walk_up_dw; dsprite = spr_berdly_walk_down_dw; rsprite = spr_berdly_walk_right_dw; lsprite = spr_berdly_walk_left_dw; } } if (arg2 == 6) { with (global.cinstance[arg3]) { name = "starwalker"; usprite = spr_npc_originalstarwalker; dsprite = spr_npc_originalstarwalker; rsprite = spr_npc_originalstarwalker; lsprite = spr_npc_originalstarwalker; } } return global.cinstance[arg3]; }
(obj_mainchara.x - 60, (obj_mainchara.y - 16) + 2, 2, 0);
854
            caterpillarral = 
scr_makecaterpillar
scr_makecaterpillar

function
scr_makecaterpillar(arg0, arg1, arg2, arg3)
{ global.cinstance[arg3] = instance_create(arg0, arg1, obj_caterpillarchara); global.cinstance[arg3].target = 12 + (arg3 * 12); if (arg2 == 3) { with (global.cinstance[arg3]) { usprite = spr_ralseiu; dsprite = spr_ralseid; rsprite = spr_ralseir; lsprite = spr_ralseil; if (global.chapter >= 2) { name = "ralsei"; usprite = spr_ralsei_walk_up; dsprite = spr_ralsei_walk_down; rsprite = spr_ralsei_walk_right; lsprite = spr_ralsei_walk_left; } } } if (arg2 == 4) { with (global.cinstance[arg3]) { name = "noelle"; usprite = spr_noelle_walk_up_dw; dsprite = spr_noelle_walk_down_dw; rsprite = spr_noelle_walk_right_dw; lsprite = spr_noelle_walk_left_dw; if (global.chapter == 2 && global.plot == 95) { dsprite = spr_noelle_walk_down_blush_dw; rsprite = spr_noelle_walk_right_blush_dw; lsprite = spr_noelle_walk_left_blush_dw; } } } if (arg2 == 5) { with (global.cinstance[arg3]) { name = "berdly"; usprite = spr_berdly_walk_up_dw; dsprite = spr_berdly_walk_down_dw; rsprite = spr_berdly_walk_right_dw; lsprite = spr_berdly_walk_left_dw; } } if (arg2 == 6) { with (global.cinstance[arg3]) { name = "starwalker"; usprite = spr_npc_originalstarwalker; dsprite = spr_npc_originalstarwalker; rsprite = spr_npc_originalstarwalker; lsprite = spr_npc_originalstarwalker; } } return global.cinstance[arg3]; }
(obj_mainchara.x - 180, obj_mainchara.y - 12 - 2, 3, 1);
855
            caterpillarnoe = 
scr_makecaterpillar
scr_makecaterpillar

function
scr_makecaterpillar(arg0, arg1, arg2, arg3)
{ global.cinstance[arg3] = instance_create(arg0, arg1, obj_caterpillarchara); global.cinstance[arg3].target = 12 + (arg3 * 12); if (arg2 == 3) { with (global.cinstance[arg3]) { usprite = spr_ralseiu; dsprite = spr_ralseid; rsprite = spr_ralseir; lsprite = spr_ralseil; if (global.chapter >= 2) { name = "ralsei"; usprite = spr_ralsei_walk_up; dsprite = spr_ralsei_walk_down; rsprite = spr_ralsei_walk_right; lsprite = spr_ralsei_walk_left; } } } if (arg2 == 4) { with (global.cinstance[arg3]) { name = "noelle"; usprite = spr_noelle_walk_up_dw; dsprite = spr_noelle_walk_down_dw; rsprite = spr_noelle_walk_right_dw; lsprite = spr_noelle_walk_left_dw; if (global.chapter == 2 && global.plot == 95) { dsprite = spr_noelle_walk_down_blush_dw; rsprite = spr_noelle_walk_right_blush_dw; lsprite = spr_noelle_walk_left_blush_dw; } } } if (arg2 == 5) { with (global.cinstance[arg3]) { name = "berdly"; usprite = spr_berdly_walk_up_dw; dsprite = spr_berdly_walk_down_dw; rsprite = spr_berdly_walk_right_dw; lsprite = spr_berdly_walk_left_dw; } } if (arg2 == 6) { with (global.cinstance[arg3]) { name = "starwalker"; usprite = spr_npc_originalstarwalker; dsprite = spr_npc_originalstarwalker; rsprite = spr_npc_originalstarwalker; lsprite = spr_npc_originalstarwalker; } } return global.cinstance[arg3]; }
(obj_mainchara.x - 4 - 120, (obj_mainchara.y - 20) + 2, 4, 2);
856
            with (obj_caterpillarchara)
857
                
scr_caterpillar_interpolate
scr_caterpillar_interpolate

function
scr_caterpillar_interpolate()
{ _newfacing =
scr_facing_letter_to_number(
scr_get_cardinal_direction(point_direction(x, y, obj_mainchara.x, obj_mainchara.y)));
remx[0] = obj_mainchara.x; remy[0] = obj_mainchara.y; facing[0] = _newfacing; for (_iaia = target; _iaia > 0; _iaia -= 1) { remx[_iaia] = lerp(obj_mainchara.x, x, _iaia / target); if (global.darkzone == 1) remy[_iaia] = lerp(obj_mainchara.y, y + 16, _iaia / target); else remy[_iaia] = lerp(obj_mainchara.y, y + 6, _iaia / target); facing[_iaia] = _newfacing; } }
();
858
            timer = 0;
859
            minigame = 4;
860
            global.interact = 1;
861
        }
862
    }
863
    if (minigame == 4)
864
    {
865
        timer++;
866
        if (timer == 3)
867
        {
868
            cutscene_master = 
scr_cutscene_make
scr_cutscene_make

function
scr_cutscene_make()
{ _cutscene_master = instance_create(0, 0, obj_cutscene_master); _cutscene_master.master_object = id; return _cutscene_master; }
();
869
            
scr_maincharacters_actors
scr_maincharacters_actors

function
scr_maincharacters_actors()
{ actor_count = 0; kr = 0; kr_actor = instance_create(obj_mainchara.x, obj_mainchara.y, obj_actor);
scr_actor_setup(kr, kr_actor, "kris");
kr_actor.sprite_index = obj_mainchara.sprite_index; kr_actor.depth = obj_mainchara.depth; with (obj_mainchara) visible = 0; for (__jj = 0; __jj < array_length_1d(global.cinstance); __jj++) { if (i_ex(global.cinstance[__jj])) { if (global.cinstance[__jj].name == "susie") { actor_count++; su = __jj + 1; su_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(su, su_actor, "susie");
su_actor.sprite_index = global.cinstance[__jj].sprite_index; su_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } if (global.cinstance[__jj].name == "ralsei") { actor_count++; ra = __jj + 1; ra_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(ra, ra_actor, "ralsei");
ra_actor.sprite_index = global.cinstance[__jj].sprite_index; ra_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } if (global.cinstance[__jj].name == "noelle") { actor_count++; no = __jj + 1; no_actor = instance_create(global.cinstance[__jj].x, global.cinstance[__jj].y, obj_actor);
scr_actor_setup(no, no_actor, "noelle");
no_actor.sprite_index = global.cinstance[__jj].sprite_index; no_actor.depth = global.cinstance[__jj].depth; with (global.cinstance[__jj]) visible = 0; } } } }
();
870
            minigame++;
871
        }
872
    }
873
    if (minigame == 5)
874
    {
875
        minigame = -999;
876
        
c_fadein
c_fadein

function
c_fadein(arg0)
{
c_cmd("fadeout", -arg0, 0, 0, 0);
}
(15);
877
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(45);
878
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(su);
879
        
c_sprite
c_sprite

function
c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
}
(spr_susie_pose);
880
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(10);
881
        
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("susie");
882
        
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
Face 5* Hell yeah!Delay 11 Take that,Delay 11 you stupid mice!Wait for inputClose Message
"\\E5* Hell yeah^1! Take that^1, you stupid mice!/%", "obj_room_dw_city_postbaseball_slash_Step_0_gml_936_0"
);
883
        
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
}
();
884
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(ra);
885
        
c_sprite
c_sprite

function
c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
}
(spr_ralsei_laugh);
886
        
c_addxy
c_addxy

function
c_addxy(arg0, arg1)
{
c_cmd("addxy", arg0, arg1, 0, 0);
}
(0, 6);
887
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(10);
888
        
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("ralsei");
889
        
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
Face 2* It's nice seeing you enjoy a puzzle,Delay 11 Susie.Wait for inputClose Message
"\\E2* It's nice seeing you enjoy a puzzle^1, Susie./%", "obj_room_dw_city_postbaseball_slash_Step_0_gml_944_0"
);
890
        
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
}
();
891
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("r");
892
        
c_addxy
c_addxy

function
c_addxy(arg0, arg1)
{
c_cmd("addxy", arg0, arg1, 0, 0);
}
(0, -6);
893
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(su);
894
        
c_sprite
c_sprite

function
c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
}
(spr_cutscene_11b_susie_scratch);
895
        
c_addxy
c_addxy

function
c_addxy(arg0, arg1)
{
c_cmd("addxy", arg0, arg1, 0, 0);
}
(0, -6);
896
        
c_autowalk
c_autowalk

function
c_autowalk(arg0)
{
c_cmd("autowalk", arg0, 0, 0, 0);
}
(0);
897
        
c_imagespeed
c_imagespeed

function
c_imagespeed(arg0)
{
c_cmd("imagespeed", arg0, 0, 0, 0);
}
(0.25);
898
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(5);
899
        
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("susie");
900
        
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
Face K* Well. Maybe they aren't awful if you do 'em like that.Wait for inputClose Message
"\\EK* Well. Maybe they aren't awful if you do 'em like that./%", "obj_room_dw_city_postbaseball_slash_Step_0_gml_957_0"
);
901
        
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
}
();
902
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(2);
903
        
c_autowalk
c_autowalk

function
c_autowalk(arg0)
{
c_cmd("autowalk", arg0, 0, 0, 0);
}
(1);
904
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("l");
905
        
c_addxy
c_addxy

function
c_addxy(arg0, arg1)
{
c_cmd("addxy", arg0, arg1, 0, 0);
}
(0, 6);
906
        
c_wait
c_wait

function
c_wait(arg0)
{
c_cmd("wait", arg0, 0, 0, 0);
}
(2);
907
        
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
Face L* ...Delay 11 not bad,Delay 11 Noelle. That was kinda smart.Wait for inputClose Message
"\\EL* ..^1. not bad^1, Noelle. That was kinda smart./%", "obj_room_dw_city_postbaseball_slash_Step_0_gml_966_0"
);
908
        
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
}
();
909
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(no);
910
        
c_sprite
c_sprite

function
c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
}
(spr_noelle_blush_dw);
911
        
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("noelle");
912
        
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
Face M* H-Huh? Th...Delay 11 thanks...Wait for inputClose Message
"\\EM* H-Huh? Th..^1. thanks.../%", "obj_room_dw_city_postbaseball_slash_Step_0_gml_972_0"
);
913
        
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
}
();
914
        
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("susie");
915
        
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
Face Y* Heh,Delay 11 maybe next time I'll let you do my homework.Wait for inputClose Message
"\\EY* Heh^1, maybe next time I'll let you do my homework./%", "obj_room_dw_city_postbaseball_slash_Step_0_gml_977_0"
);
916
        
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
}
();
917
        
c_sel
c_sel

function
c_sel(arg0)
{
c_cmd("select", arg0, 0, 0, 0);
}
(su);
918
        
c_sprite
c_sprite

function
c_sprite(arg0)
{
c_cmd("sprite", arg0, 0, 0, 0);
}
(spr_susie_laugh_dw);
919
        
c_addxy
c_addxy

function
c_addxy(arg0, arg1)
{
c_cmd("addxy", arg0, arg1, 0, 0);
}
(4, 2);
920
        
c_autowalk
c_autowalk

function
c_autowalk(arg0)
{
c_cmd("autowalk", arg0, 0, 0, 0);
}
(0);
921
        
c_imagespeed
c_imagespeed

function
c_imagespeed(arg0)
{
c_cmd("imagespeed", arg0, 0, 0, 0);
}
(0.25);
922
        
c_soundplay_wait
c_soundplay_wait

function
c_soundplay_wait(arg0)
{
c_cmd("soundplay", arg0, 0, 0, 0);
c_wait(round(audio_sound_length(arg0) * room_speed));
}
(snd_suslaugh);
923
        
c_halt
c_halt

function
c_halt()
{
c_cmd("halt", 0, 0, 0, 0);
}
();
924
        
c_autowalk
c_autowalk

function
c_autowalk(arg0)
{
c_cmd("autowalk", arg0, 0, 0, 0);
}
(1);
925
        
c_facing
c_facing

function
c_facing(arg0)
{
c_cmd("facing", arg0, 0, 0, 0);
}
("l");
926
        
c_addxy
c_addxy

function
c_addxy(arg0, arg1)
{
c_cmd("addxy", arg0, arg1, 0, 0);
}
(-4, -2);
927
        
c_speaker
c_speaker

function
c_speaker(arg0)
{
c_cmd("speaker", arg0, 0, 0, 0);
}
("noelle");
928
        
c_msgsetloc
c_msgsetloc

function
c_msgsetloc(arg0, arg1, arg2)
{ var msg_index = arg0; var english = arg1; var localized_string_id = arg2; var str = english; if (!is_english()) str =
scr_84_get_lang_string(localized_string_id);
c_msgset(msg_index, str);
}
(0,
Face 6* (Can I?)Wait for inputClose Message
"\\E6* (Can I?)/%", "obj_room_dw_city_postbaseball_slash_Step_0_gml_992_0"
);
929
        
c_talk_wait
c_talk_wait

function
c_talk_wait()
{
c_talk();
c_waittalk();
}
();
930
        
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(id, "minigame", 6);
931
        
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(id, "timer", 0);
932
        
c_actortokris
c_actortokris

function
c_actortokris()
{
c_cmd("actortokris", 0, 0, 0, 0);
}
();
933
        
c_var_instance
c_var_instance

function
c_var_instance(arg0, arg1, arg2)
{
c_cmd_x("var", arg0, arg1, arg2, 0, 0, 0);
}
(id, "makecaters", 1);
934
        
c_terminatekillactors
c_terminatekillactors

function
c_terminatekillactors()
{
c_cmd("terminatekillactors", 0, 0, 0, 0);
}
();
935
    }
936
    if (makecaters == 1)
937
    {
938
        with (obj_caterpillarchara)
939
            instance_destroy();
940
        caterpillarsus = 
scr_makecaterpillar
scr_makecaterpillar

function
scr_makecaterpillar(arg0, arg1, arg2, arg3)
{ global.cinstance[arg3] = instance_create(arg0, arg1, obj_caterpillarchara); global.cinstance[arg3].target = 12 + (arg3 * 12); if (arg2 == 3) { with (global.cinstance[arg3]) { usprite = spr_ralseiu; dsprite = spr_ralseid; rsprite = spr_ralseir; lsprite = spr_ralseil; if (global.chapter >= 2) { name = "ralsei"; usprite = spr_ralsei_walk_up; dsprite = spr_ralsei_walk_down; rsprite = spr_ralsei_walk_right; lsprite = spr_ralsei_walk_left; } } } if (arg2 == 4) { with (global.cinstance[arg3]) { name = "noelle"; usprite = spr_noelle_walk_up_dw; dsprite = spr_noelle_walk_down_dw; rsprite = spr_noelle_walk_right_dw; lsprite = spr_noelle_walk_left_dw; if (global.chapter == 2 && global.plot == 95) { dsprite = spr_noelle_walk_down_blush_dw; rsprite = spr_noelle_walk_right_blush_dw; lsprite = spr_noelle_walk_left_blush_dw; } } } if (arg2 == 5) { with (global.cinstance[arg3]) { name = "berdly"; usprite = spr_berdly_walk_up_dw; dsprite = spr_berdly_walk_down_dw; rsprite = spr_berdly_walk_right_dw; lsprite = spr_berdly_walk_left_dw; } } if (arg2 == 6) { with (global.cinstance[arg3]) { name = "starwalker"; usprite = spr_npc_originalstarwalker; dsprite = spr_npc_originalstarwalker; rsprite = spr_npc_originalstarwalker; lsprite = spr_npc_originalstarwalker; } } return global.cinstance[arg3]; }
(obj_mainchara.x - 60, (obj_mainchara.y - 16) + 2, 2, 0);
941
        caterpillarral = 
scr_makecaterpillar
scr_makecaterpillar

function
scr_makecaterpillar(arg0, arg1, arg2, arg3)
{ global.cinstance[arg3] = instance_create(arg0, arg1, obj_caterpillarchara); global.cinstance[arg3].target = 12 + (arg3 * 12); if (arg2 == 3) { with (global.cinstance[arg3]) { usprite = spr_ralseiu; dsprite = spr_ralseid; rsprite = spr_ralseir; lsprite = spr_ralseil; if (global.chapter >= 2) { name = "ralsei"; usprite = spr_ralsei_walk_up; dsprite = spr_ralsei_walk_down; rsprite = spr_ralsei_walk_right; lsprite = spr_ralsei_walk_left; } } } if (arg2 == 4) { with (global.cinstance[arg3]) { name = "noelle"; usprite = spr_noelle_walk_up_dw; dsprite = spr_noelle_walk_down_dw; rsprite = spr_noelle_walk_right_dw; lsprite = spr_noelle_walk_left_dw; if (global.chapter == 2 && global.plot == 95) { dsprite = spr_noelle_walk_down_blush_dw; rsprite = spr_noelle_walk_right_blush_dw; lsprite = spr_noelle_walk_left_blush_dw; } } } if (arg2 == 5) { with (global.cinstance[arg3]) { name = "berdly"; usprite = spr_berdly_walk_up_dw; dsprite = spr_berdly_walk_down_dw; rsprite = spr_berdly_walk_right_dw; lsprite = spr_berdly_walk_left_dw; } } if (arg2 == 6) { with (global.cinstance[arg3]) { name = "starwalker"; usprite = spr_npc_originalstarwalker; dsprite = spr_npc_originalstarwalker; rsprite = spr_npc_originalstarwalker; lsprite = spr_npc_originalstarwalker; } } return global.cinstance[arg3]; }
(obj_mainchara.x - 180, obj_mainchara.y - 12 - 2, 3, 1);
942
        caterpillarnoe = 
scr_makecaterpillar
scr_makecaterpillar

function
scr_makecaterpillar(arg0, arg1, arg2, arg3)
{ global.cinstance[arg3] = instance_create(arg0, arg1, obj_caterpillarchara); global.cinstance[arg3].target = 12 + (arg3 * 12); if (arg2 == 3) { with (global.cinstance[arg3]) { usprite = spr_ralseiu; dsprite = spr_ralseid; rsprite = spr_ralseir; lsprite = spr_ralseil; if (global.chapter >= 2) { name = "ralsei"; usprite = spr_ralsei_walk_up; dsprite = spr_ralsei_walk_down; rsprite = spr_ralsei_walk_right; lsprite = spr_ralsei_walk_left; } } } if (arg2 == 4) { with (global.cinstance[arg3]) { name = "noelle"; usprite = spr_noelle_walk_up_dw; dsprite = spr_noelle_walk_down_dw; rsprite = spr_noelle_walk_right_dw; lsprite = spr_noelle_walk_left_dw; if (global.chapter == 2 && global.plot == 95) { dsprite = spr_noelle_walk_down_blush_dw; rsprite = spr_noelle_walk_right_blush_dw; lsprite = spr_noelle_walk_left_blush_dw; } } } if (arg2 == 5) { with (global.cinstance[arg3]) { name = "berdly"; usprite = spr_berdly_walk_up_dw; dsprite = spr_berdly_walk_down_dw; rsprite = spr_berdly_walk_right_dw; lsprite = spr_berdly_walk_left_dw; } } if (arg2 == 6) { with (global.cinstance[arg3]) { name = "starwalker"; usprite = spr_npc_originalstarwalker; dsprite = spr_npc_originalstarwalker; rsprite = spr_npc_originalstarwalker; lsprite = spr_npc_originalstarwalker; } } return global.cinstance[arg3]; }
(obj_mainchara.x - 4 - 120, (obj_mainchara.y - 20) + 2, 4, 2);
943
        with (obj_interactablesolid)
944
        {
945
            if (visible == 0)
946
                instance_destroy();
947
        }
948
        with (obj_actor)
949
            instance_destroy();
950
        var remtarget = caterpillarral.target;
951
        caterpillarral.target = caterpillarnoe.target;
952
        caterpillarnoe.target = remtarget;
953
        with (obj_caterpillarchara)
954
        {
955
            visible = true;
956
            
scr_caterpillar_interpolate
scr_caterpillar_interpolate

function
scr_caterpillar_interpolate()
{ _newfacing =
scr_facing_letter_to_number(
scr_get_cardinal_direction(point_direction(x, y, obj_mainchara.x, obj_mainchara.y)));
remx[0] = obj_mainchara.x; remy[0] = obj_mainchara.y; facing[0] = _newfacing; for (_iaia = target; _iaia > 0; _iaia -= 1) { remx[_iaia] = lerp(obj_mainchara.x, x, _iaia / target); if (global.darkzone == 1) remy[_iaia] = lerp(obj_mainchara.y, y + 16, _iaia / target); else remy[_iaia] = lerp(obj_mainchara.y, y + 6, _iaia / target); facing[_iaia] = _newfacing; } }
();
957
        }
958
        global.currentsong[0] = snd_init("cybercity.ogg");
959
        global.currentsong[1] = mus_loop_ext(global.currentsong[0], 0.8, 0.97);
960
        makecaters = 0;
961
    }
962
    if (minigame == 6)
963
    {
964
        timer++;
965
        if (timer == 15)
966
        {
967
            global.facing = 0;
968
            global.flag[7 disable_menu?] = 0;
969
            global.interact = 0;
970
            minigame++;
971
        }
972
    }
973
    if (minigame == 7)
974
    {
975
        if (obj_mainchara.x < (pillaremerge.x + 80))
976
        {
977
            if (obj_kris_headobj.miceheld == 0)
978
            {
979
                
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("noelle");
980
                msgsetloc(0, 
Face 8* I think we're done with the mice for now,Delay 11 Kris.Wait for inputClose Message
"\\E8* I think we're done with the mice for now^1, Kris./%", "obj_room_dw_city_postbaseball_slash_Step_0_gml_1047_0"
);
981
            }
982
            else
983
            {
984
                
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("susie");
985
                msgsetloc(0, 
Face K* Hey,Delay 11 the hell are you doing with our mice?!Wait for input
"\\EK* Hey^1, the hell are you doing with our mice?!/", "obj_room_dw_city_postbaseball_slash_Step_0_gml_1052_0"
);
986
                msgnextloc(
Face K* We worked on getting those together!Wait for inputClose Message
"\\EK* We worked on getting those together!/%", "obj_room_dw_city_postbaseball_slash_Step_0_gml_1053_0"
);
987
            }
988
            global.interact = 1;
989
            global.facing = 1;
990
            d_make();
991
            minigame = 8;
992
        }
993
        if (bucketpillar.completed == 1)
994
            minigame = 9;
995
    }
996
    if (minigame == 8 && !d_ex())
997
    {
998
        obj_mainchara.x = pillaremerge.x + 82;
999
        global.interact = 0;
1000
        minigame = 7;
1001
    }
1002
    if (minigame == 9)
1003
    {
1004
        if (obj_mainchara.x < (bucketpillar.x - 120))
1005
        {
1006
            
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; if (global.chapter == 1) { if (global.plot < 235) global.typer = 36; } if (global.fighting == 1) ...
("susie");
1007
            msgsetloc(0, 
Face K* What are you doing? The path is open!Wait for inputClose Message
"\\EK* What are you doing? The path is open!/%", "obj_room_dw_city_postbaseball_slash_Step_0_gml_1076_0"
);
1008
            global.interact = 1;
1009
            global.facing = 1;
1010
            d_make();
1011
            minigame = 10;
1012
        }
1013
    }
1014
    if (minigame == 10 && !d_ex())
1015
    {
1016
        obj_mainchara.x = (bucketpillar.x - 120) + 2;
1017
        global.interact = 0;
1018
        minigame = 9;
1019
    }
1020
}