Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b2fashionshop2_Step_0

(view raw script w/o annotations or w/e)
1
pebberoni = stringsetloc(
SMELLS LIKE#PEBBERONI
"SMELLS LIKE#PEBBERONI", "obj_b2fashionshop2_slash_Step_0_gml_292_0"
);
2
scr_board_populatevars
scr_board_populatevars

function
scr_board_populatevars()
{ if (!variable_instance_exists(id, "kris")) kris = 0; if (!variable_instance_exists(id, "susie")) susie = 0; if (!variable_instance_exists(id, "ralsei")) ralsei = 0; if (kris == 0) { with (obj_mainchara_board) { if (name == "kris") other.kris = id; } } if (ralsei == 0) { with (obj_mainchara_board) { if (name == "ralsei") other.ralsei = id; } } if (susie == 0) { with (obj_mainchara_board) { if (name == "susie") other.susie = id; } } }
();
3
scr_gameshow_populatevars
scr_gameshow_populatevars

function
scr_gameshow_populatevars()
{ if (!variable_instance_exists(id, "kr_real")) kr_real = 0; if (!variable_instance_exists(id, "su_real")) su_real = 0; if (!variable_instance_exists(id, "ra_real")) ra_real = 0; if (!variable_instance_exists(id, "tenna")) tenna = 0; if (kr_real == 0) { with (obj_mainchara) other.kr_real = id; } if (su_real == 0) { with (obj_caterpillarchara) { if (name == "susie") other.su_real = id; } } if (ra_real == 0) { with (obj_caterpillarchara) { if (name == "ralsei") other.ra_real = id; } } if (tenna == 0) { with (obj_actor_tenna) other.tenna = id; } }
();
4
if (active == 1)
5
{
6
    drawtext = true;
7
    if (pippins.grabbed)
8
    {
9
        textcomplete = true;
10
        texttimer = 999;
11
        drawtext = false;
12
    }
13
    if (sndpause == 0 && obj_board_camera.con == 0)
14
    {
15
        sndpause = 1;
16
        snd_pause(global.currentsong[1]);
17
    }
18
    if (sndpause == 1 && obj_board_camera.con != 0)
19
    {
20
        sndpause = 0;
21
        snd_resume(global.currentsong[1]);
22
    }
23
    if (visitinit == 0 && obj_board_camera.con == 0)
24
    {
25
        visitinit = 1;
26
        with (pippins)
27
            setxy_board(3376, 864);
28
        shopstring = string1;
29
        if (!i_ex(bow) && !i_ex(deodorant))
30
            shopstring = string3;
31
    }
32
    if (con == 0 && obj_board_camera.con == 0)
33
    {
34
        if (debugset == true)
35
        {
36
            debugset = false;
37
            with (obj_mainchara_board)
38
                controlled = false;
39
            susie.controlled = true;
40
        }
41
        if (bowtalk == 0)
42
        {
43
            bowtalktimer++;
44
            if (bowtalktimer == 30)
45
            {
46
                ralsei.follow = false;
47
                
scr_pathfind_to_point
scr_pathfind_to_point

function
scr_pathfind_to_point(arg0, arg1, arg2)
{ var __destx = arg1 + 16; var __desty = arg2 + 16; if (arg1 < 12 && arg2 < 8) { __destx = 128 + (32 * arg1) + 16; __desty = 64 + (32 * arg2) + 16; } with (obj_mainchara_board) { if (name == arg0) { path_end(); is_moving_timer = 0; is_moving = true; path_target_x = __destx; path_target_y = __desty; follow = false; if (argument_count == 4) { if (argument3 != -1) path_end_facing = argument3; } if (argument_count == 5) { if (argument4 != -1) allow_diagonals = argument4; } } } }
("kris", board_tilex(7) - 16, board_tiley(4), 1);
48
            }
49
            if (bowtalktimer == 62)
50
                
scr_pathfind_to_point
scr_pathfind_to_point

function
scr_pathfind_to_point(arg0, arg1, arg2)
{ var __destx = arg1 + 16; var __desty = arg2 + 16; if (arg1 < 12 && arg2 < 8) { __destx = 128 + (32 * arg1) + 16; __desty = 64 + (32 * arg2) + 16; } with (obj_mainchara_board) { if (name == arg0) { path_end(); is_moving_timer = 0; is_moving = true; path_target_x = __destx; path_target_y = __desty; follow = false; if (argument_count == 4) { if (argument3 != -1) path_end_facing = argument3; } if (argument_count == 5) { if (argument4 != -1) allow_diagonals = argument4; } } } }
("ralsei", board_tilex(6) - 16, board_tiley(4), 1);
51
            if (bowtalktimer == 60)
52
            {
53
                var sutalk = stringsetloc(
Haha, PIZZA DEODORANT (FOR NERDS)?
"Haha, PIZZA DEODORANT (FOR NERDS)?", "obj_b2fashionshop2_slash_Step_0_gml_63_0"
);
54
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(sutalk, "susie", 2, 120);
55
            }
56
            if (bowtalktimer == 180)
57
                krisflip = 1;
58
            if (bowtalktimer == 210)
59
            {
60
                var sutalk = stringsetloc(
Hey, Ralsei. Looks like Kris is trying to tell you something.
"Hey, Ralsei. Looks like Kris is trying to tell you something.", "obj_b2fashionshop2_slash_Step_0_gml_80_0"
);
61
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(sutalk, "susie", 2, 130);
62
            }
63
            if (bowtalktimer == 340)
64
            {
65
                var ratalk = stringsetloc(
K... Kris? You think I need, um...?
"K... Kris? You think I need, um...?", "obj_b2fashionshop2_slash_Step_0_gml_85_0"
);
66
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(ratalk, "ralsei", 2, 110);
67
            }
68
            if (bowtalktimer == 435)
69
            {
70
                krisflip = 0;
71
                kris.facing = 3;
72
            }
73
            if (bowtalktimer == 440)
74
            {
75
                var ratalk = stringsetloc(
You know, I'm not exactly sure, how I would even require that sort of thing...
"You know, I'm not exactly sure, how I would even require that sort of thing...", "obj_b2fashionshop2_slash_Step_0_gml_90_0"
);
76
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(ratalk, "ralsei", 2, 150);
77
            }
78
            if (bowtalktimer == 540)
79
                krisflip = 5;
80
            if (bowtalktimer == 590)
81
            {
82
                var ratalk = stringsetloc(
...
"...", "obj_b2fashionshop2_slash_Step_0_gml_107_0"
);
83
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(ratalk, "ralsei", 2, 90);
84
            }
85
            if (bowtalktimer == 680)
86
            {
87
                var ratalk = stringsetloc(
Um, if it's for you, Kris...
"Um, if it's for you, Kris...", "obj_b2fashionshop2_slash_Step_0_gml_112_0"
);
88
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(ratalk, "ralsei", 2, 90);
89
            }
90
            if (bowtalktimer == 756)
91
            {
92
                krisflip = 0;
93
                kris.facing = 1;
94
            }
95
            if (bowtalktimer == 760)
96
            {
97
                
scr_pathfind_to_point
scr_pathfind_to_point

function
scr_pathfind_to_point(arg0, arg1, arg2)
{ var __destx = arg1 + 16; var __desty = arg2 + 16; if (arg1 < 12 && arg2 < 8) { __destx = 128 + (32 * arg1) + 16; __desty = 64 + (32 * arg2) + 16; } with (obj_mainchara_board) { if (name == arg0) { path_end(); is_moving_timer = 0; is_moving = true; path_target_x = __destx; path_target_y = __desty; follow = false; if (argument_count == 4) { if (argument3 != -1) path_end_facing = argument3; } if (argument_count == 5) { if (argument4 != -1) allow_diagonals = argument4; } } } }
("ralsei", 8, 4);
98
                bowtalktimer = 0;
99
                bowtalk = 1;
100
            }
101
        }
102
        if (bowtalk == 1)
103
        {
104
            var trig = false;
105
            with (obj_board_pickup)
106
            {
107
                if (type != "ribbon")
108
                {
109
                    if (place_meeting(x, y, obj_mainchara_board))
110
                    {
111
                        with (instance_place(x, y, obj_mainchara_board))
112
                        {
113
                            if (name == "ralsei")
114
                                trig = true;
115
                        }
116
                    }
117
                }
118
            }
119
            if (trig == true)
120
            {
121
                
scr_pathfind_end
scr_pathfind_end

function
scr_pathfind_end(arg0)
{ with (obj_mainchara_board) { if (name == arg0) { path_end(); path_target_x = -1; path_target_y = -1; is_moving_timer = 0; is_moving = false; } } }
("ralsei");
122
                if (i_ex(deodorant))
123
                {
124
                    with (deodorant)
125
                        dodeodorant = true;
126
                }
127
                bowtalk = 2;
128
            }
129
        }
130
        if (bowtalk == 2)
131
        {
132
            if (i_ex(deodorant))
133
            {
134
                if (deodorant.con > 4)
135
                {
136
                    with (obj_mainchara_board)
137
                        controlled = false;
138
                    susie.controlled = true;
139
                    bowtalk = 3;
140
                }
141
            }
142
        }
143
        if (bowtalk == 3 && !i_ex(deodorant))
144
        {
145
            bowtalk = 4;
146
            with (obj_mainchara_board)
147
                canfreemove = true;
148
        }
149
        if (bowtalk <= 4)
150
        {
151
            var grabbedralse = false;
152
            with (obj_board_grabobject)
153
            {
154
                if (grabbedid != 0)
155
                {
156
                    if (grabbedid.object_index == obj_mainchara_board)
157
                    {
158
                        debug_print("picked up ralsei");
159
                        grabbedralse = true;
160
                    }
161
                }
162
            }
163
            if (grabbedralse && !broken)
164
            {
165
                krisflip = false;
166
                broken = true;
167
                bowtalktimer = 0;
168
                debug_print("broken");
169
            }
170
        }
171
        if (bowtalk < 20)
172
        {
173
            var _su = susie;
174
            with (obj_board_pickup)
175
            {
176
                if (pickupname == "susie")
177
                {
178
                    other.bowtalk = 20;
179
                    other.bowtalktimer = 0;
180
                    other.krisflip = false;
181
                }
182
            }
183
        }
184
        if (bowtalk < 20 && broken)
185
        {
186
            bowtalktimer++;
187
            if (bowtalktimer == 1)
188
            {
189
                bowtalk = 19;
190
                var ratalk = stringsetloc(
--oh!
"--oh!", "obj_b2fashionshop2_slash_Step_0_gml_195_0"
);
191
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(ratalk, "ralsei", 2, 80);
192
            }
193
        }
194
        if (bowtalk == 4)
195
        {
196
            bowtalktimer++;
197
            if (bowtalktimer == 10)
198
            {
199
                var ratalk = stringsetloc(
Um, I hope this is... better?
"Um, I hope this is... better?", "obj_b2fashionshop2_slash_Step_0_gml_187_0"
);
200
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(ratalk, "ralsei", 2, 80);
201
            }
202
            if (bowtalktimer >= 10)
203
            {
204
                if (broken)
205
                    bowtalktimer = 9999999;
206
            }
207
            if (bowtalktimer == 100)
208
                
scr_play_recording
scr_play_recording

function
scr_play_recording(arg0, arg1)
{ with (obj_mainchara_board) { if (name == arg0) { susierecordcon = 2; susierecordcount = 0; susierecordstring = arg1; susierecordsave = false; } } }
("kris", "0W0W0R0R0R0RU0RU0R0RU0RU0RU0LRU0LD0R0U0LD0R0LU0D0R0L0RD0RU0L0RD0RU0RU0RD0L0LU0LD0R0U0L0LD0R0U0L0R0U0L0R0R0RD0L0L0U0R0R0L0L0R0R0L0L0D0R0U0LU0LD0D0R0R0RU0U0L0LD0D0R0RU0LU0L0D0D0R0RU0U0LU0LD0D0RD0RU0U0LU0L0D0R0R0U0L0L0D0RD0R0R0L0L0L0R0R0L0L0L0R0R0L0L0LU0RU0R0R0R0D0D0LD0L0LU0U0RU0R0RD0D0LD0L0LU0U0R0R0RD0D0L0L0U0RU0R0R0RD0LD0L0LU0U0RU0R0D0L0L0L0LD0R0R0R0U0LU0L0LD0D0R0R0R0U0LU0L0LD0D0R0R0RU0RU0L0L0LD0D0D0R0R0RU0U0LU0L0LD0D0D0D");
209
            if (bowtalktimer == 130)
210
            {
211
                var sutalk = stringsetloc(
Ewwwww, Kris is huffing the fuuumes!!! Hahaha!!!
"Ewwwww, Kris is huffing the fuuumes!!! Hahaha!!!", "obj_b2fashionshop2_slash_Step_0_gml_203_0"
);
212
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(sutalk, "susie", 2, 60);
213
            }
214
            if (bowtalktimer == 190)
215
            {
216
                var ratalk = stringsetloc(
Um, I'm...
"Um, I'm...", "obj_b2fashionshop2_slash_Step_0_gml_208_0"
);
217
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(ratalk, "ralsei", 2, 50);
218
            }
219
            if (bowtalktimer == 240)
220
            {
221
                
scr_pathfind_to_point
scr_pathfind_to_point

function
scr_pathfind_to_point(arg0, arg1, arg2)
{ var __destx = arg1 + 16; var __desty = arg2 + 16; if (arg1 < 12 && arg2 < 8) { __destx = 128 + (32 * arg1) + 16; __desty = 64 + (32 * arg2) + 16; } with (obj_mainchara_board) { if (name == arg0) { path_end(); is_moving_timer = 0; is_moving = true; path_target_x = __destx; path_target_y = __desty; follow = false; if (argument_count == 4) { if (argument3 != -1) path_end_facing = argument3; } if (argument_count == 5) { if (argument4 != -1) allow_diagonals = argument4; } } } }
("ralsei", 10, 6, 0);
222
                
scr_play_recording
scr_play_recording

function
scr_play_recording(arg0, arg1)
{ with (obj_mainchara_board) { if (name == arg0) { susierecordcon = 2; susierecordcount = 0; susierecordstring = arg1; susierecordsave = false; } } }
("kris", "0W");
223
                kris.facing = 0;
224
                var ratalk = stringsetloc(
Just going to read the instruction manual for a bit...
"Just going to read the instruction manual for a bit...", "obj_b2fashionshop2_slash_Step_0_gml_216_0"
);
225
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(ratalk, "ralsei", 2, 120);
226
            }
227
        }
228
        if (bowtalk == 20)
229
        {
230
            
scr_board_forcethrow
scr_board_forcethrow

function
scr_board_forcethrow()
{ var delivered = false; var _mysusie = 0; with (obj_mainchara_board) { if (name == "susie") _mysusie = id; } if (!i_ex(_mysusie)) { debug_print("NO SUSIE FOUND"); return 0; } if (i_ex(obj_board_grabobject)) { var realsux = round((_mysusie.x - 128) / 32); var realsuy = round((_mysusie.y - 64) / 32); realsux = clamp(realsux, 1, 10); realsuy = clamp(realsuy, 1, 6); if (!i_ex(instance_place(board_tilex(realsux - 1), board_tiley(realsuy), obj_board_solid))) { delivered = true; _mysusie.facing = 3; with (obj_board_grabobject) { aimx = board_tilex(realsux - 1); aimy = board_tiley(realsuy); snd_play(snd_board_throw); grabdaddy.xx = aimx; grabdaddy.yy = aimy; con = 1; } } else { } if (!delivered) { if (!i_ex(instance_place(board_tilex(realsux + 1), board_tiley(realsuy), obj_board_solid))) { _mysusie.facing = 1; delivered = true; with (obj_board_grabobject) { aimx = board_tilex(realsux + 1); aimy = board_tiley(realsuy); snd_play(snd_board_throw); grabdaddy.xx = aimx; grabdaddy.yy = aimy; con = 1; } } else { } } if (!delivered) { if (!i_ex(instance_place(board_tilex(realsux), board_tiley(realsuy - 1), obj_board_solid))) { _mysusie.facing = 2; delivered = true; with (obj_board_grabobject) { aimx = board_tilex(realsux); aimy = board_tiley(realsuy - 1); snd_play(snd_board_throw); grabdaddy.xx = aimx; grabdaddy.yy = aimy; con = 1; } } else { } } if (!delivered) { if (!i_ex(instance_place(board_tilex(realsux), board_tiley(realsuy - 1), obj_board_solid))) { _mysusie.facing = 0; delivered = true; } else { } } if (delivered == false) { _mysusie.facing = 2; with (obj_board_grabobject) { aimx = grabdaddy.x; aimy = grabdaddy.y; snd_play(snd_board_throw); grabdaddy.xx = aimx; grabdaddy.yy = aimy; con = 1; } } ...
();
231
            with (pippins)
232
                killme = true;
233
            ralsei.follow = false;
234
            
scr_pathfind_end
scr_pathfind_end

function
scr_pathfind_end(arg0)
{ with (obj_mainchara_board) { if (name == arg0) { path_end(); path_target_x = -1; path_target_y = -1; is_moving_timer = 0; is_moving = false; } } }
("kris");
235
            
scr_pathfind_end
scr_pathfind_end

function
scr_pathfind_end(arg0)
{ with (obj_mainchara_board) { if (name == arg0) { path_end(); path_target_x = -1; path_target_y = -1; is_moving_timer = 0; is_moving = false; } } }
("ralsei");
236
            
scr_play_recording
scr_play_recording

function
scr_play_recording(arg0, arg1)
{ with (obj_mainchara_board) { if (name == arg0) { susierecordcon = 2; susierecordcount = 0; susierecordstring = arg1; susierecordsave = false; } } }
("kris", "0W");
237
            
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
(su_real);
238
            su_real.sprite_index = spr_susie_exasperated;
239
            snd_play(snd_wing);
240
            var sutalk = stringsetloc(
HEY! WHAT THE --
"HEY! WHAT THE --", "obj_b2fashionshop2_slash_Step_0_gml_238_0"
);
241
            
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(sutalk, "susie", 2, 80);
242
            bowtalk = 21;
243
            bowtalktimer = 0;
244
        }
245
        if (bowtalk == 21)
246
        {
247
            bowtalktimer++;
248
            su_real.depth = kr_real.depth - 2;
249
            kr_real.x = 
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(kr_real.x);
250
            kr_real.y = 
scr_even
scr_even

function
scr_even(arg0)
{ return round(arg0 / 2) * 2; }
(kr_real.y);
251
            if (bowtalktimer == 40)
252
            {
253
                safe_delete(obj_couchwriter);
254
                su_real.sprite_index = spr_susie_pounceright;
255
                su_real.hspeed = 14;
256
                su_real.vspeed = -10;
257
                su_real.gravity = 2;
258
                su_real.friction = 0.8;
259
            }
260
            if (bowtalktimer == 46)
261
            {
262
                ra_real.sprite_index = spr_ralsei_shocked_left;
263
                ra_real.hspeed = 4;
264
                ra_real.friction = 0.6;
265
                ra_real.y -= 6;
266
                su_real.gravity = 0;
267
                su_real.vspeed = 0;
268
                su_real.y = 392;
269
                su_real.hspeed *= 0.5;
270
                su_real.sprite_index = spr_susie_walk_right_dw_unhappy;
271
                snd_play_x(snd_damage, 0.8, 1.6);
272
                kr_real.hspeed = 8;
273
                kr_real.friction = 0.9;
274
                with (obj_mainchara_board)
275
                    controlled = 0;
276
            }
277
            if (bowtalktimer == 49)
278
            {
279
                kr_real.sprite_index = kr_real.lsprite;
280
                snd_play(snd_noise);
281
            }
282
            if (bowtalktimer == 50)
283
            {
284
                texttimer = 0;
285
                shopstring = pebberoni;
286
                if (susie.ribbon)
287
                    shopstring = stringsetloc(
WOW, SUSIE#WEARS RIBBONS?
"WOW, SUSIE#WEARS RIBBONS?", "obj_b2fashionshop2_slash_Step_0_gml_296_0"
);
288
            }
289
            if (bowtalktimer == 60)
290
            {
291
                
scr_resetgameshowcharacter
scr_resetgameshowcharacter

function
scr_resetgameshowcharacter(arg0)
{ if (room == room_dw_puzzlecloset_3) exit; var _name = arg0; var _smooth = 0; var __found = 0; if (argument_count == 2) _smooth = argument1; if (_name == "kris" || _name == "kr" || _name == "k" || _name == "Kris" || _name == "Kr" || _name == "K" || _name == "all") { var _krx = 248; var _kry = 400; if (
scr_swordroom())
{ _krx = 300; _kry = 298; } with (obj_mainchara) { if (_smooth == 0) { setxy(_krx, _kry); } else {
scr_lerpvar("x", x, _krx, _smooth);
scr_lerpvar("y", y, _kry, _smooth);
} fun = true; ignoredepth = true; depth = 95240; sprite_index = spr_krisu_dark; image_speed = 0; image_index = 0; if (
scr_swordroom())
{ sprite_index = spr_krisu_holdcontroller; depth = 96260; }
scr_darksize();
__found = 1; } } if (_name == "susie" || _name == "su" || _name == "Susie" || _name == "Su" || _name == "S" || _name == "s" || _name == "all") { with (obj_caterpillarchara) { if (name == "susie") { fun = true; ignoredepth = true; depth = 95165; var _sux = 140; var _suy = 392; if (_smooth == 0) { setxy(_sux, _suy); } else {
scr_lerpvar("x", x, _sux, _smooth);
scr_lerpvar("y", y, _suy, _smooth);
} sprite_index = spr_susie_walk_up_dw; image_speed = 0; image_index = 0;
scr_darksize();
__found = 1; } } } if (_name == "ralsei" || _name == "ra" || _name == "Ralsei" || _name == "Ra" || _name == "R" || _name == "r" || _name == "all") { with (obj_caterpillarchara) { if (name == "ralsei") { fun = true; ignoredepth = true; depth = 95145; var _rax = 342; var _ray = 396; if (_smooth == 0) { setxy(_rax, _ray); } else {
scr_lerpvar("x", x, _rax, _smooth);
scr_lerpvar("y", y, _ray, _smooth);
} sprite_index = spr_ralsei_walk_up; image_speed = 0; image_index = 0;
scr_darksize();
__found = 1; } } } if (_name == "tenna" || _name == "Tenna" || _name == "te" || _name == "t" || _name == "Te" || _name == "T" || _name == "all") ...
("susie", 15);
292
                su_real.sprite_index = spr_susie_walk_left_dw_unhappy;
293
                su_real.image_speed = 0.25;
294
                
scr_resetgameshowcharacter_delay
scr_resetgameshowcharacter_delay

function
scr_resetgameshowcharacter_delay()
{ var _x_smooth = 0; if (argument_count == 3) _x_smooth = 1; return
scr_script_delayed(scr_resetgameshowcharacter, argument1, argument0, _x_smooth);
}
("susie", 15);
295
            }
296
            if (bowtalktimer == 83)
297
            {
298
                var sutalk = stringsetloc(
Kris, you dumbass! Why'd you make me wear that!?
"Kris, you dumbass! Why'd you make me wear that!?", "obj_b2fashionshop2_slash_Step_0_gml_309_0"
);
299
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(sutalk, "susie", 2, 90);
300
            }
301
            if (bowtalktimer == 87)
302
            {
303
                ra_real.x += 12;
304
                ra_real.sprite_index = spr_ralsei_walk_left_sad;
305
            }
306
            if (bowtalktimer == 103)
307
                
scr_pathfind_to_point
scr_pathfind_to_point

function
scr_pathfind_to_point(arg0, arg1, arg2)
{ var __destx = arg1 + 16; var __desty = arg2 + 16; if (arg1 < 12 && arg2 < 8) { __destx = 128 + (32 * arg1) + 16; __desty = 64 + (32 * arg2) + 16; } with (obj_mainchara_board) { if (name == arg0) { path_end(); is_moving_timer = 0; is_moving = true; path_target_x = __destx; path_target_y = __desty; follow = false; if (argument_count == 4) { if (argument3 != -1) path_end_facing = argument3; } if (argument_count == 5) { if (argument4 != -1) allow_diagonals = argument4; } } } }
("kris", susie.x - 32, susie.y, 1);
308
            if (bowtalktimer == 140)
309
            {
310
                kr_real.sprite_index = kr_real.lsprite;
311
                kr_real.image_index = 0;
312
            }
313
            if (bowtalktimer == 143)
314
            {
315
                var ratalk = stringsetloc(
M... Make you?
"M... Make you?", "obj_b2fashionshop2_slash_Step_0_gml_348_0"
);
316
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(ratalk, "ralsei", 2, 60);
317
                ra_real.sprite_index = spr_ralsei_wonder_left;
318
            }
319
            if (bowtalktimer == 193)
320
            {
321
                krisflip = 5;
322
                var sutalk = stringsetloc(
Ugh, take it off!!
"Ugh, take it off!!", "obj_b2fashionshop2_slash_Step_0_gml_356_0"
);
323
                
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(sutalk, "susie", 2, 80);
324
                
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
(su_real, 8, 2);
325
                snd_play(snd_noise);
326
            }
327
            if (bowtalktimer == 228)
328
            {
329
                
scr_resetgameshowcharacter
scr_resetgameshowcharacter

function
scr_resetgameshowcharacter(arg0)
{ if (room == room_dw_puzzlecloset_3) exit; var _name = arg0; var _smooth = 0; var __found = 0; if (argument_count == 2) _smooth = argument1; if (_name == "kris" || _name == "kr" || _name == "k" || _name == "Kris" || _name == "Kr" || _name == "K" || _name == "all") { var _krx = 248; var _kry = 400; if (
scr_swordroom())
{ _krx = 300; _kry = 298; } with (obj_mainchara) { if (_smooth == 0) { setxy(_krx, _kry); } else {
scr_lerpvar("x", x, _krx, _smooth);
scr_lerpvar("y", y, _kry, _smooth);
} fun = true; ignoredepth = true; depth = 95240; sprite_index = spr_krisu_dark; image_speed = 0; image_index = 0; if (
scr_swordroom())
{ sprite_index = spr_krisu_holdcontroller; depth = 96260; }
scr_darksize();
__found = 1; } } if (_name == "susie" || _name == "su" || _name == "Susie" || _name == "Su" || _name == "S" || _name == "s" || _name == "all") { with (obj_caterpillarchara) { if (name == "susie") { fun = true; ignoredepth = true; depth = 95165; var _sux = 140; var _suy = 392; if (_smooth == 0) { setxy(_sux, _suy); } else {
scr_lerpvar("x", x, _sux, _smooth);
scr_lerpvar("y", y, _suy, _smooth);
} sprite_index = spr_susie_walk_up_dw; image_speed = 0; image_index = 0;
scr_darksize();
__found = 1; } } } if (_name == "ralsei" || _name == "ra" || _name == "Ralsei" || _name == "Ra" || _name == "R" || _name == "r" || _name == "all") { with (obj_caterpillarchara) { if (name == "ralsei") { fun = true; ignoredepth = true; depth = 95145; var _rax = 342; var _ray = 396; if (_smooth == 0) { setxy(_rax, _ray); } else {
scr_lerpvar("x", x, _rax, _smooth);
scr_lerpvar("y", y, _ray, _smooth);
} sprite_index = spr_ralsei_walk_up; image_speed = 0; image_index = 0;
scr_darksize();
__found = 1; } } } if (_name == "tenna" || _name == "Tenna" || _name == "te" || _name == "t" || _name == "Te" || _name == "T" || _name == "all") ...
("kris", 15);
330
                
scr_resetgameshowcharacter_delay
scr_resetgameshowcharacter_delay

function
scr_resetgameshowcharacter_delay()
{ var _x_smooth = 0; if (argument_count == 3) _x_smooth = 1; return
scr_script_delayed(scr_resetgameshowcharacter, argument1, argument0, _x_smooth);
}
("kris", 15);
331
                with (kr_real)
332
                    scr_delay_var("image_speed", 0, 15);
333
                with (susie)
334
                    scr_delay_var("controlled", true, 15);
335
                with (susie)
336
                    scr_delay_var("facing", 0, 15);
337
                kr_real.sprite_index = kr_real.lsprite;
338
                kr_real.image_speed = 0.25;
339
                global.flag[1024 board_transitioning?] = 1;
340
                krisflip = 0;
341
                
scr_pathfind_to_point
scr_pathfind_to_point

function
scr_pathfind_to_point(arg0, arg1, arg2)
{ var __destx = arg1 + 16; var __desty = arg2 + 16; if (arg1 < 12 && arg2 < 8) { __destx = 128 + (32 * arg1) + 16; __desty = 64 + (32 * arg2) + 16; } with (obj_mainchara_board) { if (name == arg0) { path_end(); is_moving_timer = 0; is_moving = true; path_target_x = __destx; path_target_y = __desty; follow = false; if (argument_count == 4) { if (argument3 != -1) path_end_facing = argument3; } if (argument_count == 5) { if (argument4 != -1) allow_diagonals = argument4; } } } }
("kris", 5.5, 7, 0);
342
                bowtalktimer = 0;
343
                bowtalk++;
344
            }
345
        }
346
        if (bowtalk == 22 && 
scr_board_checklocation
scr_board_checklocation

function
scr_board_checklocation()
{ var _name = argument0; var _xloc = argument1; var _yloc = argument2; if (_xloc < 12) _xloc = board_tilex(_xloc); if (_yloc < 12) _yloc = board_tiley(_yloc); var _tol = 4; if (argument_count == 4) _tol = argument3; var targ = 0; with (obj_mainchara_board) { if (name == _name) targ = id; } if (!i_ex(targ)) { debug_message("target does not exist"); return false; } if (abs(targ.x - _xloc) < _tol && abs(targ.y - _yloc) < _tol) return true; }
("kris", 5.5, 7, 1))
347
        {
348
            kris.controlled = true;
349
            global.interact = 1;
350
            snd_play(snd_escaped);
351
            
scr_quickwarp
scr_quickwarp

function
scr_quickwarp(arg0, arg1, arg2, arg3)
{ with (obj_board_camera) { global.interact = 1; shift = "warp"; warpx = arg0; warpy = arg1; playerX = arg2; playerY = arg3; } }
(2432, 3392, 2688, 3584);
352
            bowtalk = 23;
353
            obj_b2tennaleave1.con = 5;
354
        }
355
    }
356
    if (con == 72)
357
    {
358
        if (suwalk == 0 && obj_board_camera.con == 0)
359
        {
360
            suwalktimer++;
361
            if (suwalktimer == 1)
362
                ralsei.follow = true;
363
            if (suwalktimer == 16)
364
            {
365
                if (susie.x < 320)
366
                    
scr_pathfind_to_point
scr_pathfind_to_point

function
scr_pathfind_to_point(arg0, arg1, arg2)
{ var __destx = arg1 + 16; var __desty = arg2 + 16; if (arg1 < 12 && arg2 < 8) { __destx = 128 + (32 * arg1) + 16; __desty = 64 + (32 * arg2) + 16; } with (obj_mainchara_board) { if (name == arg0) { path_end(); is_moving_timer = 0; is_moving = true; path_target_x = __destx; path_target_y = __desty; follow = false; if (argument_count == 4) { if (argument3 != -1) path_end_facing = argument3; } if (argument_count == 5) { if (argument4 != -1) allow_diagonals = argument4; } } } }
("susie", 5, 5, 0);
367
                else
368
                    
scr_pathfind_to_point
scr_pathfind_to_point

function
scr_pathfind_to_point(arg0, arg1, arg2)
{ var __destx = arg1 + 16; var __desty = arg2 + 16; if (arg1 < 12 && arg2 < 8) { __destx = 128 + (32 * arg1) + 16; __desty = 64 + (32 * arg2) + 16; } with (obj_mainchara_board) { if (name == arg0) { path_end(); is_moving_timer = 0; is_moving = true; path_target_x = __destx; path_target_y = __desty; follow = false; if (argument_count == 4) { if (argument3 != -1) path_end_facing = argument3; } if (argument_count == 5) { if (argument4 != -1) allow_diagonals = argument4; } } } }
("susie", choose(9, 10), choose(5, 6), 0);
369
            }
370
        }
371
    }
372
    if (con == 72)
373
    {
374
        if (obj_b2enemysquabble.battlecon == 15 || obj_b2bombfun.visited == 1)
375
        {
376
            if (bowtalk2 == 0 && i_ex(bow))
377
                bowtalk2 = 0.5;
378
            if (bowtalk2 == 0.5 && active)
379
            {
380
                var pickup = false;
381
                if (!i_ex(bow))
382
                {
383
                    texttimer = 0;
384
                    shopstring = string2;
385
                    var timetalk = 90;
386
                    var sutalk = stringsetloc(
THAT'S what you wanted to come back for!?
"THAT'S what you wanted to come back for!?", "obj_b2fashionshop2_slash_Step_0_gml_430_0"
);
387
                    
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(sutalk, "susie", 2, timetalk);
388
                    with (obj_caterpillarchara)
389
                    {
390
                        if (name == "susie")
391
                        {
392
                            snd_play(snd_wing);
393
                            sprite_index = spr_susie_exasperated;
394
                            
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
395
                            
scr_resetgameshowcharacter_delay
scr_resetgameshowcharacter_delay

function
scr_resetgameshowcharacter_delay()
{ var _x_smooth = 0; if (argument_count == 3) _x_smooth = 1; return
scr_script_delayed(scr_resetgameshowcharacter, argument1, argument0, _x_smooth);
}
("susie", timetalk + 11);
396
                        }
397
                    }
398
                    bowtalk2 = 1;
399
                }
400
            }
401
            if (deotalk == 0 && i_ex(deodorant))
402
                deotalk = 0.5;
403
            if (deotalk == 0.5 && active)
404
            {
405
                if (!i_ex(deodorant))
406
                {
407
                    texttimer = 0;
408
                    shopstring = pebberoni;
409
                    var timetalk = 90;
410
                    var sutalk = stringsetloc(
Okay, controller earned. You needed that.
"Okay, controller earned. You needed that.", "obj_b2fashionshop2_slash_Step_0_gml_450_0"
);
411
                    
scr_couchtalk
scr_couchtalk

function scr_couchclear(arg0) { with (obj_couchwriter) { if (speaker == arg0) instance_destroy(); } } function
scr_couchtalk(arg0, arg1)
{ var ix = -1; var iy = -1; if (argument_count >= 6) { ix = argument4; iy = argument5; } var couchtext = instance_create_depth(ix, iy, 5000, obj_couchwriter); couchtext.mystring = arg0; couchtext.speaker = arg1; if (argument_count >= 3) couchtext.cleartext = argument2; if (argument_count >= 4) couchtext.drawtime = argument3; if (argument_count >= 7) couchtext.customsnd = argument6; if (argument_count >= 8) couchtext.customcolor = argument7; if (argument_count >= 9) couchtext.talkrate = argument8; if (argument_count >= 10) couchtext.talklength = argument9; return couchtext; }
(sutalk, "susie", 2, timetalk);
412
                    with (obj_caterpillarchara)
413
                    {
414
                        if (name == "susie")
415
                        {
416
                            sprite_index = spr_susie_walk_right_dw;
417
                            
scr_resetgameshowcharacter_delay
scr_resetgameshowcharacter_delay

function
scr_resetgameshowcharacter_delay()
{ var _x_smooth = 0; if (argument_count == 3) _x_smooth = 1; return
scr_script_delayed(scr_resetgameshowcharacter, argument1, argument0, _x_smooth);
}
("susie", timetalk + 11);
418
                        }
419
                    }
420
                    deotalk = 1;
421
                }
422
            }
423
        }
424
    }
425
}
426
else
427
{
428
    timer = 0;
429
    texttimer = 0;
430
    visitinit = 0;
431
    textcomplete = false;
432
    bowtalktimer = 0;
433
    if (global.flag[1190 control_unjumble] == 1 || obj_b2bombfun.visited == 1)
434
    {
435
        suwalktimer = 0;
436
        suwalk = 0;
437
        con = 72;
438
    }
439
}
440
if (krisflip)
441
{
442
    fliptime++;
443
    var flipspeed = 10 - krisflip;
444
    if ((fliptime % flipspeed) == 0)
445
    {
446
        if (kris.facing == 1)
447
            kris.facing = 3;
448
        else
449
            kris.facing = 1;
450
    }
451
}