Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b2bossencounterroom_Step_0

(view raw script w/o annotations or w/e)
1
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; } } }
();
2
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; } }
();
3
if (active == 1)
4
{
5
    if (con == 0 && obj_board_camera.con == 0)
6
    {
7
        var trig = false;
8
        if (obj_board_inventory.ninfriendo)
9
        {
10
            with (obj_board_trigger)
11
            {
12
                if (extflag == "b2bosstrig")
13
                {
14
                    if (place_meeting(x, y, obj_mainchara_board))
15
                        trig = true;
16
                }
17
            }
18
        }
19
        if (trig)
20
        {
21
            doorhide = 
scr_board_marker
scr_board_marker

function
scr_board_marker()
{ var _thismarker = instance_create(argument0, argument1, obj_board_marker); _thismarker.sprite_index = argument2; _thismarker.image_xscale = 2; _thismarker.image_yscale = 2; if (argument_count >= 4) _thismarker.image_speed = argument3; if (argument_count >= 5) { if (argument4 != -1) _thismarker.depth = argument4; } if (argument_count >= 6) _thismarker.image_xscale = argument5; if (argument_count >= 6) _thismarker.image_yscale = argument5; if (argument_count >= 7) _thismarker.animateonce = argument6; return _thismarker; }
(x, y, spr_pxwhite, 0, 999990, 32);
22
            doorhide.image_blend = #632323;
23
            with (instance_create(x, y, obj_board_smokepuff))
24
            {
25
                depth = 900000;
26
                image_blend = #CE6951;
27
            }
28
            with (door)
29
                setxy(room_width, room_height);
30
            for (var i = 0; i < 2; i++)
31
            {
32
                block[i] = instance_create_board(9 + i, 8, obj_board_solid);
33
                with (block[i])
34
                {
35
                    visible = true;
36
                    sprite_index = spr_board_b2pantheonbrick;
37
                    depth = 999990;
38
                    image_xscale = -2;
39
                    image_yscale = -2;
40
                    with (instance_create(x - 32, y - 32, obj_board_smokepuff))
41
                    {
42
                        image_blend = #FFD78C;
43
                        depth = 999989;
44
                    }
45
                }
46
            }
47
            snd_play_x(snd_board_door_close, 0.8, 0.8);
48
            snd_play_x(snd_board_door_close, 0.8, 1);
49
            con = 1;
50
        }
51
    }
52
    if (con == 1)
53
    {
54
        timer++;
55
        if (timer == 10)
56
        {
57
            var uhohsu = stringsetloc(
Uh oh.
"Uh oh.", "obj_b2bossencounterroom_slash_Step_0_gml_63_0"
);
58
            var uhohra = stringsetloc(
Uh oh.
"Uh oh.", "obj_b2bossencounterroom_slash_Step_0_gml_61_0_b"
);
59
            
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; }
(uhohsu, "susie", 2, 60);
60
            
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; }
(uhohra, "ralsei", 2, 60);
61
            susie.sleepy = false;
62
        }
63
        if (timer == 25)
64
        {
65
            shopwriter = instance_create(x, y, obj_board_shopwriter);
66
            shopwriter.yloc = board_tiley(1) + 12;
67
            shopwriter.shopstring = stringsetloc(
THE FINAL PHOTO#THE THREE HEROES
"THE FINAL PHOTO#THE THREE HEROES", "obj_b2bossencounterroom_slash_Step_0_gml_57_0"
);
68
            if (retry)
69
            {
70
                shopwriter.yloc -= 8;
71
                shopwriter.shopstring = stringsetloc(
THE FINAL PHOTO#THE THREE HEROES# (AGAIN)
"THE FINAL PHOTO#THE THREE HEROES# (AGAIN)", "obj_b2bossencounterroom_slash_Step_0_gml_61_0"
);
72
            }
73
            con = 2;
74
            timer = 0;
75
        }
76
    }
77
    if (con == 3 && !i_ex(obj_board_playercamera))
78
    {
79
        with (obj_mainchara_board)
80
            canfreemove = false;
81
        battimer++;
82
        if (battimer == 1)
83
        {
84
        }
85
        if (battimer == 15)
86
        {
87
            batcon = 0.5;
88
            battimer = 0;
89
            con = 4;
90
        }
91
    }
92
    if (batcon == 0.5)
93
    {
94
        global.interact = 1;
95
        
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 == "tenna") { global.typer = 80; if (global.fighting == 1) global.typer = 81; } 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; ...
("no_name");
96
        msgsetloc(0, 
FABULOUS!Delay 11 A MUGSHOT OF YOU THREE CRIMINALS!Wait for input
"FABULOUS^1! A MUGSHOT OF YOU THREE CRIMINALS!/", "obj_b2bossencounterroom_slash_Step_0_gml_95_0"
);
97
        msgnextloc(
YOU TOOK MY CAMERA,Delay 11 TOOK THE MOON AND EVEN TOOK THE CLOUDS.Wait for input
"YOU TOOK MY CAMERA^1, TOOK THE MOON AND EVEN TOOK THE CLOUDS./", "obj_b2bossencounterroom_slash_Step_0_gml_96_0"
);
98
        msgnextloc(
NOW,Delay 11 IF YOU'RE GOING TO BE TAKING AND TAKING...Wait for inputClose Message
"NOW^1, IF YOU'RE GOING TO BE TAKING AND TAKING.../%", "obj_b2bossencounterroom_slash_Step_0_gml_97_0"
);
99
        if (retry == 0)
100
            bw_make();
101
        batcon = 0.6;
102
    }
103
    if (batcon == 0.6 && !bw_ex())
104
    {
105
        batcon = 1;
106
        battimer = 0;
107
    }
108
    var fadecount = 4;
109
    var fadestep = 3;
110
    if (batcon == 1)
111
    {
112
        battimer++;
113
        if (battimer == 1)
114
        {
115
            prebat = 99;
116
            safe_delete(shopwriter);
117
            global.interact = 1;
118
            with (obj_mainchara_board)
119
                facing = 2;
120
            safe_delete(leftsolid);
121
            safe_delete(rightsolid);
122
            safe_delete(mouthsolid);
123
            lpupil = 
scr_board_marker
scr_board_marker

function
scr_board_marker()
{ var _thismarker = instance_create(argument0, argument1, obj_board_marker); _thismarker.sprite_index = argument2; _thismarker.image_xscale = 2; _thismarker.image_yscale = 2; if (argument_count >= 4) _thismarker.image_speed = argument3; if (argument_count >= 5) { if (argument4 != -1) _thismarker.depth = argument4; } if (argument_count >= 6) _thismarker.image_xscale = argument5; if (argument_count >= 6) _thismarker.image_yscale = argument5; if (argument_count >= 7) _thismarker.animateonce = argument6; return _thismarker; }
(240, 192, spr_board_shutta_pupil, 0, 998080, 2, 0);
124
            with (lpupil)
125
            {
126
                image_alpha = 0;
127
                for (var i = 1; i < (fadecount + 1); i++)
128
                    scr_delay_var("image_alpha", i / fadecount, fadestep * i);
129
            }
130
            rpupil = 
scr_board_marker
scr_board_marker

function
scr_board_marker()
{ var _thismarker = instance_create(argument0, argument1, obj_board_marker); _thismarker.sprite_index = argument2; _thismarker.image_xscale = 2; _thismarker.image_yscale = 2; if (argument_count >= 4) _thismarker.image_speed = argument3; if (argument_count >= 5) { if (argument4 != -1) _thismarker.depth = argument4; } if (argument_count >= 6) _thismarker.image_xscale = argument5; if (argument_count >= 6) _thismarker.image_yscale = argument5; if (argument_count >= 7) _thismarker.animateonce = argument6; return _thismarker; }
(400, 192, spr_board_shutta_pupil, 0, 998080, 2, 0);
131
            with (rpupil)
132
            {
133
                image_alpha = 0;
134
                for (var i = 1; i < (fadecount + 1); i++)
135
                    scr_delay_var("image_alpha", i / fadecount, fadestep * i);
136
            }
137
            realmouth = 
scr_board_marker
scr_board_marker

function
scr_board_marker()
{ var _thismarker = instance_create(argument0, argument1, obj_board_marker); _thismarker.sprite_index = argument2; _thismarker.image_xscale = 2; _thismarker.image_yscale = 2; if (argument_count >= 4) _thismarker.image_speed = argument3; if (argument_count >= 5) { if (argument4 != -1) _thismarker.depth = argument4; } if (argument_count >= 6) _thismarker.image_xscale = argument5; if (argument_count >= 6) _thismarker.image_yscale = argument5; if (argument_count >= 7) _thismarker.animateonce = argument6; return _thismarker; }
(mouth.x, mouth.y, mouth.sprite_index, 0, mouth.depth, 2, 0);
138
            realmouth.image_index = 1;
139
            with (mouth)
140
            {
141
                for (var i = 1; i < (fadecount + 1); i++)
142
                    scr_delay_var("image_alpha", 1 - (i / fadecount), fadestep * i);
143
            }
144
        }
145
        if (battimer == ((fadestep * fadecount) + 30))
146
        {
147
            with (rpupil)
148
            {
149
                
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; } function scr_lerpvar_respect() { 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]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, x - 4, 5, 2, "out");
150
                
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; } function scr_lerpvar_respect() { 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]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("y", y, y + 4, 5, 2, "out");
151
            }
152
            with (lpupil)
153
            {
154
                
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; } function scr_lerpvar_respect() { 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]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, x + 4, 5, 2, "out");
155
                
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; } function scr_lerpvar_respect() { 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]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("y", y, y + 4, 5, 2, "out");
156
            }
157
        }
158
        if (battimer == ((fadestep * fadecount) + 40))
159
        {
160
            
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 == "tenna") { global.typer = 80; if (global.fighting == 1) global.typer = 81; } 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; ...
("shutta");
161
            msgsetloc(0, 
COULD YOU AT LEAST TAKE A PHOTO OF ME?Wait for inputClose Message
"COULD YOU AT LEAST TAKE A PHOTO OF ME?/%", "obj_b2bossencounterroom_slash_Step_0_gml_178_0"
);
162
            if (retry)
163
            {
164
                msgsetloc(0, 
HMM,Delay 11 THAT LAST PHOTO SHOOT DIDN'T GO SO WELL.Wait for input
"HMM^1, THAT LAST PHOTO SHOOT DIDN'T GO SO WELL./", "obj_b2bossencounterroom_slash_Step_0_gml_182_0"
);
165
                msgnextloc(
HOW ABOUT A RETAKE?Wait for inputClose Message
"HOW ABOUT A RETAKE?/%", "obj_b2bossencounterroom_slash_Step_0_gml_183_0"
);
166
            }
167
            bw_make();
168
            batcon = 2;
169
            battimer = 0;
170
        }
171
    }
172
    if (batcon == 2 && !bw_ex())
173
    {
174
        battimer++;
175
        if (battimer == 1)
176
        {
177
            global.flag[9 battle_music] = 0;
178
            global.interact = 1;
179
            battler = instance_create(x, y, obj_gameshow_battlemanager);
180
            battler.encounterno = 111;
181
            battler.encounterflag = 584;
182
        }
183
        if (battimer == 60)
184
        {
185
            batcon = 3;
186
            battimer = 0;
187
        }
188
    }
189
    if (batcon == 3)
190
    {
191
        if (cleanup == 0)
192
        {
193
            safe_delete(lefteye);
194
            safe_delete(leftsolid);
195
            safe_delete(righteye);
196
            safe_delete(rightsolid);
197
            safe_delete(mouth);
198
            safe_delete(mouthsolid);
199
            safe_delete(realmouth);
200
            safe_delete(lpupil);
201
            safe_delete(rpupil);
202
            safe_delete(block[0]);
203
            safe_delete(block[1]);
204
            safe_delete(doorhide);
205
            with (door)
206
                setxy_board(2464, 1632);
207
            cleanup = 1;
208
            with (kris)
209
                setxy_board(2608, 1744);
210
            with (susie)
211
                setxy(other.kris.x + 32, other.kris.y - 32);
212
            with (ralsei)
213
                setxy(other.kris.x - 32, other.kris.y - 32);
214
            kris.facing = 0;
215
            ralsei.facing = 0;
216
            susie.facing = 0;
217
        }
218
    }
219
    if (batcon == 3 && global.fighting == 0)
220
    {
221
        with (obj_board_npc)
222
        {
223
            if (extflag == "b2intro")
224
                instance_destroy();
225
        }
226
        batcon++;
227
        battimer = 0;
228
    }
229
    if (batcon == 4)
230
    {
231
        obj_mainchara.cutscene = true;
232
        battimer++;
233
        if (battimer >= 5 && !i_ex(obj_battleback) && !i_ex(battler))
234
        {
235
            batcon++;
236
            global.interact = 0;
237
            with (obj_mainchara_board)
238
                canfreemove = true;
239
            kris.canfreemove = true;
240
            madewriter = 0;
241
            makewriter = 1;
242
            ralsei.follow = true;
243
            
scr_board_caterpillar_interpolate_ralsei
scr_board_caterpillar_interpolate_ralsei

function
scr_board_caterpillar_interpolate_ralsei()
{ var _ralsei = obj_board_controller.ralsei_object; if (_ralsei != -1) { with (_ralsei) { for (i = 0; i < 75; i += 1) { remx[i] = x; remy[i] = y; facing[i] = 0; } } var _a = 0; var _dir = point_direction(_ralsei.x, _ralsei.y, x, y); repeat (_ralsei.ralsei_target) { _ralsei.remx[_a] = lerp(obj_board_controller.kris_object.x, _ralsei.x, _a / _ralsei.ralsei_target); _ralsei.remy[_a] = lerp(obj_board_controller.kris_object.y, _ralsei.y, _a / _ralsei.ralsei_target); if (_dir >= 45 && _dir < 135) _ralsei.facingdir[_a] = 2; else if (_dir >= 135 && _dir < 225) _ralsei.facingdir[_a] = 3; else if (_dir >= 225 && _dir < 315) _ralsei.facingdir[_a] = 0; else if (_dir >= 315 || _dir < 45) _ralsei.facingdir[_a] = 1; _a++; } } }
();
244
        }
245
    }
246
    if (suwalk == 0 && obj_board_camera.con == 0)
247
    {
248
        suwalktimer++;
249
        if (suwalktimer == 15)
250
        {
251
            if (susie.x > 300)
252
                
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", 2, 2, 2);
253
            else
254
                
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", 6, 6, 0);
255
            susie.sleepy = true;
256
            suwalk = 1;
257
        }
258
    }
259
}
260
else
261
{
262
    suwalktimer = 0;
263
    suwalk = 0;
264
}
265
if (rebuild == 1)
266
{
267
    safe_delete(leftsolid);
268
    safe_delete(rightsolid);
269
    safe_delete(mouthsolid);
270
    safe_delete(lefteye);
271
    safe_delete(leftsolid);
272
    safe_delete(righteye);
273
    safe_delete(rightsolid);
274
    safe_delete(mouth);
275
    safe_delete(mouthsolid);
276
    safe_delete(realmouth);
277
    safe_delete(lpupil);
278
    safe_delete(rpupil);
279
    safe_delete(block[0]);
280
    safe_delete(block[1]);
281
    safe_delete(doorhide);
282
    with (door)
283
        setxy_board(2464, 1632);
284
    var displacex = -1536;
285
    var displacey = 1552;
286
    lefteye = 
scr_board_marker
scr_board_marker

function
scr_board_marker()
{ var _thismarker = instance_create(argument0, argument1, obj_board_marker); _thismarker.sprite_index = argument2; _thismarker.image_xscale = 2; _thismarker.image_yscale = 2; if (argument_count >= 4) _thismarker.image_speed = argument3; if (argument_count >= 5) { if (argument4 != -1) _thismarker.depth = argument4; } if (argument_count >= 6) _thismarker.image_xscale = argument5; if (argument_count >= 6) _thismarker.image_yscale = argument5; if (argument_count >= 7) _thismarker.animateonce = argument6; return _thismarker; }
(4062 + displacex, 150 + displacey, spr_board_shutta_eyeShape, 0, 998080);
287
    with (lefteye)
288
        setxy_board(x, y);
289
    righteye = 
scr_board_marker
scr_board_marker

function
scr_board_marker()
{ var _thismarker = instance_create(argument0, argument1, obj_board_marker); _thismarker.sprite_index = argument2; _thismarker.image_xscale = 2; _thismarker.image_yscale = 2; if (argument_count >= 4) _thismarker.image_speed = argument3; if (argument_count >= 5) { if (argument4 != -1) _thismarker.depth = argument4; } if (argument_count >= 6) _thismarker.image_xscale = argument5; if (argument_count >= 6) _thismarker.image_yscale = argument5; if (argument_count >= 7) _thismarker.animateonce = argument6; return _thismarker; }
(4222 + displacex, 150 + displacey, spr_board_shutta_eyeShape, 0, 998080);
290
    with (righteye)
291
        setxy_board(x, y);
292
    mouth = 
scr_board_marker
scr_board_marker

function
scr_board_marker()
{ var _thismarker = instance_create(argument0, argument1, obj_board_marker); _thismarker.sprite_index = argument2; _thismarker.image_xscale = 2; _thismarker.image_yscale = 2; if (argument_count >= 4) _thismarker.image_speed = argument3; if (argument_count >= 5) { if (argument4 != -1) _thismarker.depth = argument4; } if (argument_count >= 6) _thismarker.image_xscale = argument5; if (argument_count >= 6) _thismarker.image_yscale = argument5; if (argument_count >= 7) _thismarker.animateonce = argument6; return _thismarker; }
(4128 + displacex, 160 + displacey, spr_board_shutta_mouth, 0, 998160);
293
    with (mouth)
294
        setxy_board(x, y);
295
    leftsolid = instance_create(4064 + displacex, 160 + displacey, obj_board_solid);
296
    with (leftsolid)
297
        setxy_board(x, y);
298
    rightsolid = instance_create(4224 + displacex, 160 + displacey, obj_board_solid);
299
    with (rightsolid)
300
        setxy_board(x, y);
301
    mouthsolid = instance_create(4128 + displacex, 172 + displacey, obj_board_solid);
302
    with (mouthsolid)
303
        setxy_board(x, y);
304
    mouthsolid.image_xscale = 2;
305
    cleanup = 0;
306
    rebuild = false;
307
}