Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b2camera_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 (init == 0)
4
{
5
    batcon = 0;
6
    battimer = 0;
7
    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, 150, spr_board_shutta_eyeShape, 0, 998080);
8
    with (lefteye)
9
        setxy_board(x, yprevious);
10
    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, 150, spr_board_shutta_eyeShape, 0, 998080);
11
    with (righteye)
12
        setxy_board(x, y);
13
    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, 160, spr_board_shutta_mouth, 0, 998160);
14
    with (mouth)
15
        setxy_board(x, y);
16
    leftsolid = instance_create(4064, 160, obj_board_solid);
17
    with (leftsolid)
18
        setxy_board(x, y);
19
    rightsolid = instance_create(4224, 160, obj_board_solid);
20
    with (rightsolid)
21
        setxy_board(x, y);
22
    mouthsolid = instance_create(4128, 172, obj_board_solid);
23
    with (mouthsolid)
24
        setxy_board(x, y);
25
    mouthsolid.image_xscale = 2;
26
    init = 1;
27
}
28
if (prebat == 1)
29
{
30
    camtimer = 999;
31
    camcon = 999;
32
}
33
if (prebat == 2 && !i_ex(obj_board_playercamera))
34
{
35
    with (obj_mainchara_board)
36
        canfreemove = false;
37
    battimer++;
38
    if (battimer == 1)
39
    {
40
    }
41
    if (battimer == 15)
42
    {
43
        prebat = 3;
44
        batcon = 1;
45
        battimer = 0;
46
    }
47
}
48
var fadecount = 4;
49
var fadestep = 3;
50
if (batcon == 1)
51
{
52
    battimer++;
53
    if (battimer == 1)
54
    {
55
        makewriter = 0;
56
        prebat = 99;
57
        safe_delete(shopwriter);
58
        global.interact = 1;
59
        with (obj_mainchara_board)
60
            facing = 2;
61
        safe_delete(leftsolid);
62
        safe_delete(rightsolid);
63
        safe_delete(mouthsolid);
64
        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, 176, spr_board_shutta_pupil, 0, lefteye.depth, 2, 0);
65
        with (lpupil)
66
        {
67
            image_alpha = 0;
68
            for (var i = 1; i < (fadecount + 1); i++)
69
                scr_delay_var("image_alpha", i / fadecount, fadestep * i);
70
        }
71
        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, 176, spr_board_shutta_pupil, 0, lefteye.depth, 2, 0);
72
        with (rpupil)
73
        {
74
            image_alpha = 0;
75
            for (var i = 1; i < (fadecount + 1); i++)
76
                scr_delay_var("image_alpha", i / fadecount, fadestep * i);
77
        }
78
        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);
79
        realmouth.image_index = 1;
80
        with (mouth)
81
        {
82
            for (var i = 1; i < (fadecount + 1); i++)
83
                scr_delay_var("image_alpha", 1 - (i / fadecount), fadestep * i);
84
        }
85
    }
86
    if (battimer == ((fadestep * fadecount) + 30))
87
    {
88
        with (rpupil)
89
        {
90
            
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");
91
            
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");
92
        }
93
        with (lpupil)
94
        {
95
            
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");
96
            
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");
97
        }
98
    }
99
    if (battimer == ((fadestep * fadecount) + 40))
100
    {
101
        
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");
102
        msgsetloc(0, 
FABULOUS!Delay 11 JUST FABULOUS!Wait for input
"FABULOUS^1! JUST FABULOUS!/", "obj_b2camera_slash_Step_0_gml_135_0"
);
103
        msgnextloc(
DO YOU THINK YOU COULD PHOTOGRAPH ME TOO?Wait for inputClose Message
"DO YOU THINK YOU COULD PHOTOGRAPH ME TOO?/%", "obj_b2camera_slash_Step_0_gml_136_0"
);
104
        bw_make();
105
        batcon = 2;
106
        battimer = 0;
107
    }
108
}
109
if (batcon == 2 && !bw_ex())
110
{
111
    
scr_battle
scr_battle

function
scr_battle(arg0, arg1, arg2, arg3, arg4)
{ global.specialbattle = arg1; global.encounterno = arg0; if (global.flag[9 battle_music] != 2) { global.flag[9 battle_music] = 1; var batmusic = "battle.ogg"; if (global.chapter == 3) { if (global.encounterno == 111 && room == room_board_2) batmusic = "rudebuster_boss.ogg"; if (room == room_dw_b3bs_watercooler || room == room_dw_teevie_watercooler || room == room_dw_b3bs_zapper_b || room == room_dw_ranking_c) batmusic = "battle_vapor.ogg"; if (room == room_dw_teevie_chef) batmusic = "rouxls_battle.ogg"; } global.batmusic[0] = snd_init(batmusic); mus_volume(global.batmusic[1], 1, 0); } instance_create(0, 0, obj_battleback); instance_create(0, 0, obj_encounterbasic); __enemymarker[0] = arg2; __enemymarker[1] = arg3; __enemymarker[2] = arg4; for (__ien = 0; __ien < 3; __ien++) { if (global.monstertype[__ien] != 0(None)) { if (!i_ex(__enemymarker[__ien])) { __enemymarker[__ien] =
scr_dark_marker(global.monstermakex[__ien] + 300, global.monstermakey[__ien], object_get_sprite(global.monsterinstancetype[__ien]));
__enemymarker[__ien].depth = -__ien; } __enemymarker[__ien].__ien = __ien; with (__enemymarker[__ien]) { if (global.monstertype[other.__ien] == 103Tenna) { x = camerax() + 510; y = cameray() + 288;
scr_move_to_point_over_time(camerax() + 526, cameray() + 260, 20);
sprite_index = spr_tenna_point_up; } else if (global.monstertype[other.__ien] == 104Knight) { with (obj_ch3_PTB02_roaringknight) stopsiner2 = true;
scr_move_to_point_over_time(global.monstermakex[__ien], obj_ch3_PTB02_roaringknight.ystart + (cos(obj_ch3_PTB02_roaringknight.siner2 / 8) * 8), 20);
} else {
scr_move_to_point_over_time(global.monstermakex[__ien], global.monstermakey[__ien], 20);
} __doom = instance_create(x, y, obj_doom); __doom.target = id; __doom.alarm[0] = 25; } } } }
(111, 0);
112
    scr_delay_var("batcon", 3, 60);
113
    battimer = 0;
114
    batcon = -1;
115
}
116
if (batcon == 3)
117
{
118
    if (cleanup == 0)
119
    {
120
        safe_delete(lefteye);
121
        safe_delete(leftsolid);
122
        safe_delete(righteye);
123
        safe_delete(rightsolid);
124
        safe_delete(mouth);
125
        safe_delete(mouthsolid);
126
        safe_delete(realmouth);
127
        safe_delete(lpupil);
128
        safe_delete(rpupil);
129
        cleanup = 1;
130
        with (susie)
131
            setxy(other.kris.x + 32, other.kris.y - 32);
132
        with (ralsei)
133
            setxy(other.kris.x - 32, other.kris.y - 32);
134
        kris.facing = 0;
135
        ralsei.facing = 0;
136
        susie.facing = 0;
137
    }
138
}
139
if (batcon == 3 && global.fighting == 0)
140
{
141
    obj_b2intro.makeboat = true;
142
    with (obj_board_npc)
143
    {
144
        if (extflag == "b2intro")
145
            instance_destroy();
146
    }
147
    batcon++;
148
    battimer = 0;
149
}
150
if (batcon == 4)
151
{
152
    obj_mainchara.cutscene = true;
153
    battimer++;
154
    if (battimer >= 5 && !i_ex(obj_battleback))
155
    {
156
        batcon++;
157
        global.interact = 0;
158
        with (obj_mainchara_board)
159
            canfreemove = true;
160
        kris.canfreemove = true;
161
        madewriter = 0;
162
        makewriter = 1;
163
        ralsei.follow = true;
164
        
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++; } } }
();
165
    }
166
}
167
if (kris.camera == true && !active)
168
    camcon = 999;
169
if (active == 1)
170
{
171
    if (makewriter && obj_board_camera.con == 0)
172
    {
173
        if (!madewriter)
174
        {
175
            shopwriter = instance_create(x, y, obj_board_shopwriter);
176
            shopwriter.yloc = board_tiley(1) + 12;
177
            shopwriter.shopstring = stringsetloc(
RAFT APPEARS IN#THE RIVER
"RAFT APPEARS IN#THE RIVER", "obj_b2camera_slash_Step_0_gml_213_0"
);
178
            if (prebat == 1)
179
                shopwriter.shopstring = stringsetloc(
THE FINAL PHOTO#THE THREE HEROES
"THE FINAL PHOTO#THE THREE HEROES", "obj_b2camera_slash_Step_0_gml_215_0"
);
180
            madewriter = true;
181
        }
182
    }
183
    if (camcon == 0 && kris.camera == true)
184
    {
185
        camcon = 1;
186
        camtimer = 0;
187
    }
188
    if (prebat > 0)
189
    {
190
        camcon = 999;
191
        camtimer = 999;
192
    }
193
    if (camcon == 1)
194
    {
195
        camtimer++;
196
        if (camtimer == 10)
197
        {
198
            var ratalk = stringsetloc(
Kris! Take a photo!
"Kris! Take a photo!", "obj_b2camera_slash_Step_0_gml_229_0"
);
199
            
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);
200
        }
201
        if (camtimer > 10)
202
        {
203
            if (ralsei.sprite_index == spr_board_ralsei_itemget && raphoto == 0)
204
            {
205
                raphoto = 1;
206
                var ratalk = stringsetloc(
A-Ahh! Hahaha! That's me!
"A-Ahh! Hahaha! That's me!", "obj_b2camera_slash_Step_0_gml_246_0"
);
207
                
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);
208
                scr_delay_var("raphoto", 2, 30);
209
            }
210
            if (susie.sprite_index == spr_board_susie_itemget && suphoto == 0)
211
            {
212
                suphoto = 1;
213
                var sutalk = stringsetloc(
Heh, guess it's OK if it's in a game.
"Heh, guess it's OK if it's in a game.", "obj_b2camera_slash_Step_0_gml_254_0"
);
214
                
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);
215
                scr_delay_var("suphoto", 2, 30);
216
            }
217
            if (krisphoto == 1)
218
            {
219
                if ((susie.sprite_index != spr_board_susie_itemget || suphoto == 2) && (ralsei.sprite_index != spr_board_ralsei_itemget || raphoto == 2))
220
                {
221
                    krisphoto = 2;
222
                    krtimer = 0;
223
                    var ratalk = stringsetloc(
Cute selfie, Kris!
"Cute selfie, Kris!", "obj_b2camera_slash_Step_0_gml_266_0"
);
224
                    
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);
225
                }
226
                else
227
                {
228
                    krisphoto = 0;
229
                }
230
            }
231
            if (krisphoto == 2)
232
            {
233
                krtimer++;
234
                if (krtimer == 70)
235
                {
236
                    var sutalk = stringsetloc(
Pff. Can't you even pose?
"Pff. Can't you even pose?", "obj_b2camera_slash_Step_0_gml_280_0"
);
237
                    
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);
238
                    krisphoto = 3;
239
                }
240
            }
241
        }
242
    }
243
    if (global.flag[1040 got_hero_photo] == 1 && global.flag[1041 got_half_flower] == 1 && global.flag[1042 got_spring_photo] == 1 && prebat == 0)
244
    {
245
        prebat = 1;
246
        makewriter = true;
247
        battimer = 0;
248
    }
249
    if (con == 0 && obj_board_camera.con == 0)
250
    {
251
        if (suwalk == 0)
252
        {
253
            if (prebat == 0)
254
            {
255
                ralsei.follow = false;
256
                
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", 2, 5, 2);
257
                
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", 9, 5, 2);
258
            }
259
            else
260
            {
261
                
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", 7, 6, 0);
262
                ralsei.follow = true;
263
            }
264
            suwalk = 1;
265
        }
266
        if (tetalker == 0)
267
        {
268
            tetalker = 1;
269
            var tetalk = stringsetloc(
Oh, a camera!
"Oh, a camera!", "obj_b2camera_slash_Step_0_gml_322_0"
);
270
            
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; }
(tetalk, "ralsei", 2, 60);
271
        }
272
    }
273
    if (con == 1)
274
    {
275
        if (!i_ex(key))
276
        {
277
            kris.camera = false;
278
            con = 2;
279
        }
280
    }
281
}
282
else
283
{
284
    suwalk = 0;
285
    safe_delete(shopwriter);
286
    madewriter = false;
287
    if (krisphoto >= 1)
288
        krisphoto = 99;
289
}
290
if (active)
291
{
292
    if (!noreturn)
293
    {
294
        if (obj_board_camera.shift != "none" && kris.camera == true)
295
        {
296
            noreturn = true;
297
            debug_print("yes");
298
            with (instance_create(4128, 288, obj_board_solid))
299
            {
300
                setxy_board();
301
                
scr_size
scr_size

function
scr_size(arg0 = image_xscale, arg1 = image_yscale, arg2 = id)
{ with (arg2) { image_xscale = arg0; image_yscale = arg1; } }
(2, 1);
302
            }
303
        }
304
    }
305
}