Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b1rocks1_Step_0

(view raw script w/o annotations or w/e)
1
if (init == 0)
2
    init = 1;
3
if (player == 0)
4
{
5
    with (obj_mainchara_board)
6
    {
7
        if (name == "kris")
8
            other.player = id;
9
    }
10
}
11
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; } } }
();
12
if (kris_real == 0)
13
    kris_real = 1185;
14
if (susie_real == 0)
15
{
16
    with (obj_caterpillarchara)
17
    {
18
        if (name == "susie")
19
            other.susie_real = id;
20
    }
21
}
22
if (ralsei_real == 0)
23
{
24
    with (obj_caterpillarchara)
25
    {
26
        if (name == "ralsei")
27
            other.ralsei_real = id;
28
    }
29
}
30
if (tenna == 0)
31
{
32
    with (obj_actor_tenna)
33
        other.tenna = id;
34
}
35
if (trigger1 == 0)
36
{
37
    with (obj_b1rockstrigger)
38
    {
39
        if (extflag == 1)
40
            other.trigger1 = id;
41
    }
42
}
43
if (trigger2 == 0)
44
{
45
    with (obj_b1rockstrigger)
46
    {
47
        if (extflag == 2)
48
            other.trigger2 = id;
49
    }
50
}
51
var activeroom = 0;
52
if (trigger1.active)
53
    activeroom = trigger1;
54
if (trigger2.active)
55
    activeroom = trigger2;
56
if (activeroom != 0)
57
    active = true;
58
else
59
    active = false;
60
if (active == 1)
61
{
62
    if (global.interact == 0)
63
    {
64
        if (splatside == 0 && obj_board_camera.con == 0)
65
        {
66
            if (kris.x < 320)
67
                splatside = 1;
68
            else
69
                splatside = 2;
70
        }
71
        if (roomvisit == 0)
72
        {
73
            firstroom = trigger1;
74
            if (trigger2.active == true)
75
                firstroom = trigger2;
76
            eventchosen = 1;
77
            tenna.bounce = 1;
78
            global.flag[1124 tenna_falling_stuff] = 1;
79
            var tetalk = stringsetloc(
Watch it! Falling rocks!
"Watch it! Falling rocks!", "obj_b1rocks1_slash_Step_0_gml_50_0"
);
80
            
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, "tenna", 2, 60);
81
            
scr_var_delay
scr_var_delay

function
scr_var_delay(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_var_delayed(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_delay_var(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
("eventchosen", 0, 80);
82
            roomvisit = 1;
83
        }
84
        if (roomvisit == 2)
85
        {
86
            if (firstroom != activeroom)
87
            {
88
                tenna.bounce = 1;
89
                eventchosen = 1;
90
                global.flag[1124 tenna_falling_stuff] = 2;
91
                var tetalk = stringsetloc(
Watch it! Falling peaches!!
"Watch it! Falling peaches!!", "obj_b1rocks1_slash_Step_0_gml_62_0"
);
92
                
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, "tenna", 2, 80);
93
                roomvisittimer = 0;
94
                roomvisit = 3;
95
            }
96
        }
97
        if (roomvisit == 3)
98
        {
99
            roomvisittimer++;
100
            if (roomvisittimer == 60)
101
            {
102
                ralsei_real.sprite_index = spr_ralsei_walk_right;
103
                ralsei_real.image_speed = 0;
104
                ralsei_real.image_index = 0;
105
                with (ralsei_real)
106
                    scr_delay_var("sprite_index", usprite, 120);
107
                var ratalk = stringsetloc(
Didn't you say rocks, before?
"Didn't you say rocks, before?", "obj_b1rocks1_slash_Step_0_gml_77_0"
);
108
                
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);
109
            }
110
            if (roomvisittimer == 120)
111
            {
112
                tenna.bounce = 1;
113
                ralsei_real.sprite_index = spr_ralsei_walk_right_unhappy;
114
                var tetalk = stringsetloc(
What?
"What?", "obj_b1rocks1_slash_Step_0_gml_84_0"
);
115
                
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, "tenna", 2, 80);
116
            }
117
            if (roomvisittimer == 220)
118
            {
119
                eventchosen = 0;
120
                roomvisit = -1;
121
            }
122
        }
123
        if (!i_ex(boulderdropper))
124
        {
125
            var locx = trigger1.x;
126
            var locy = trigger1.y;
127
            if (trigger2.active)
128
            {
129
                locx = trigger2.x;
130
                locy = trigger2.y;
131
            }
132
            boulderdropper = instance_create(locx, locy, obj_boulderDropper);
133
            boulderdropper.daddy = id;
134
            boulderdropper.timer = 90;
135
            if (player.x < 320)
136
                boulderdropper.premake = "right";
137
            else
138
                boulderdropper.premake = "left";
139
        }
140
        if (npcwalk == 0 && obj_board_camera.con == 0)
141
        {
142
            ralsei.follow = false;
143
            
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; } } }
("susie");
144
            if (eventchosen == 0)
145
            {
146
                if (global.flag[1020 got_power_croissant] == 0)
147
                {
148
                    if (ralseicharge == 0)
149
                    {
150
                        npcwalk = 1;
151
                        ralseicharge = 1;
152
                        eventchosen = 1;
153
                    }
154
                    else if (sulazy == 0)
155
                    {
156
                        sulazy = 1;
157
                        npcwalk = 99;
158
                        snd_play(snd_wing);
159
                        var sutalk = stringsetloc(
Forget this. Kris, you cross the bridge.
"Forget this. Kris, you cross the bridge.", "obj_b1rocks1_slash_Step_0_gml_136_0"
);
160
                        with (susie_real)
161
                        {
162
                            
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); }
();
163
                            sprite_index = rsprite;
164
                            
scr_var_delay
scr_var_delay

function
scr_var_delay(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_var_delayed(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_delay_var(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
("sprite_index", usprite, 90);
165
                        }
166
                        
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);
167
                    }
168
                    else if (sulazy == 1)
169
                    {
170
                        sulazy = 2;
171
                        npcwalk = 99;
172
                        with (ralsei_real)
173
                        {
174
                            sprite_index = spr_ralsei_smile_up;
175
                            
scr_var_delay
scr_var_delay

function
scr_var_delay(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_var_delayed(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_delay_var(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
("sprite_index", usprite, 90);
176
                        }
177
                        var ratalk = stringsetloc(
I believe in you, Kris!
"I believe in you, Kris!", "obj_b1rocks1_slash_Step_0_gml_154_0"
);
178
                        
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);
179
                    }
180
                }
181
                else
182
                {
183
                    npcwalk = 20;
184
                    eventchosen = 1;
185
                }
186
            }
187
        }
188
        if (npcwalk == 1)
189
        {
190
            var radir = "right";
191
            if (ralsei.x == 480)
192
                radir = "left";
193
            rastart = ralsei.x;
194
            var rawalk = "";
195
            if (radir == "right")
196
            {
197
                repeat (800)
198
                    rawalk += "0R";
199
            }
200
            if (radir == "left")
201
            {
202
                repeat (800)
203
                    rawalk += "0L";
204
            }
205
            
scr_play_ralsei_recording
scr_play_ralsei_recording

function
scr_play_ralsei_recording(arg0)
{ with (obj_mainchara_board) { if (name == "ralsei") { susierecordcon = 2; susierecordcount = 0; susierecordstring = arg0; susierecordsave = false; } } }
(rawalk);
206
            rahit = 0;
207
            npcwalk = 2;
208
            npcwalktimer = 0;
209
            var ratalk = stringsetloc(
Kris! I'll protect you!
"Kris! I'll protect you!", "obj_b1rocks1_slash_Step_0_gml_182_0"
);
210
            
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);
211
        }
212
        if (npcwalk == 2)
213
        {
214
            npcwalktimer++;
215
            if (npcwalktimer > 30)
216
            {
217
                if (ralsei.x == 480 || ralsei.x == 128)
218
                {
219
                    
scr_play_ralsei_recording
scr_play_ralsei_recording

function
scr_play_ralsei_recording(arg0)
{ with (obj_mainchara_board) { if (name == "ralsei") { susierecordcon = 2; susierecordcount = 0; susierecordstring = arg0; susierecordsave = false; } } }
("0W");
220
                    if (ralsei.x == 480)
221
                    {
222
                        with (ralsei)
223
                            
scr_var_delay
scr_var_delay

function
scr_var_delay(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_var_delayed(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_delay_var(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
("facing", 3, 1);
224
                    }
225
                    else
226
                    {
227
                        with (ralsei)
228
                            
scr_var_delay
scr_var_delay

function
scr_var_delay(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_var_delayed(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_delay_var(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
("facing", 1, 1);
229
                    }
230
                    npcwalk = 3;
231
                    npcwalktimer = -90;
232
                }
233
            }
234
        }
235
        if (npcwalk == 3)
236
        {
237
            npcwalktimer++;
238
            if (npcwalktimer == 30)
239
            {
240
                var radir = "right";
241
                if (susie.x == 480)
242
                    radir = "left";
243
                var rawalk = "";
244
                if (radir == "right")
245
                {
246
                    repeat (800)
247
                        rawalk += "0R";
248
                }
249
                if (radir == "left")
250
                {
251
                    repeat (800)
252
                        rawalk += "0L";
253
                }
254
                
scr_play_susie_recording
scr_play_susie_recording

function
scr_play_susie_recording(arg0)
{ with (obj_mainchara_board) { if (name == "susie") { susierecordcon = 2; susierecordcount = 0; susierecordstring = arg0; susierecordsave = false; } } }
(rawalk);
255
                var sutalk = stringsetloc(
Sweet.
"Sweet.", "obj_b1rocks1_slash_Step_0_gml_219_0"
);
256
                
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);
257
            }
258
            if (npcwalktimer > 60)
259
            {
260
                if (susie.iframes > 0 && suhit == 0)
261
                {
262
                    suhit = 1;
263
                    var sutalk = stringsetloc(
$@
!
"$@&!", "obj_b1rocks1_slash_Step_0_gml_227_0"
);
264
                    
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);
265
                }
266
                if (susie.x == 480 || susie.x == 128)
267
                {
268
                    
scr_play_susie_recording
scr_play_susie_recording

function
scr_play_susie_recording(arg0)
{ with (obj_mainchara_board) { if (name == "susie") { susierecordcon = 2; susierecordcount = 0; susierecordstring = arg0; susierecordsave = false; } } }
("0W");
269
                    if (susie.x == 480)
270
                    {
271
                        with (susie)
272
                            
scr_var_delay
scr_var_delay

function
scr_var_delay(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_var_delayed(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_delay_var(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
("facing", 3, 1);
273
                    }
274
                    else
275
                    {
276
                        with (susie)
277
                            
scr_var_delay
scr_var_delay

function
scr_var_delay(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_var_delayed(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_delay_var(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
("facing", 1, 1);
278
                    }
279
                    npcwalk = 4;
280
                    npcwalktimer = 0;
281
                }
282
            }
283
        }
284
        if (npcwalk == 20)
285
        {
286
            npcwalk = -1;
287
            scr_delay_var("npcwalk", 21, 10);
288
            if (supickup == 0)
289
            {
290
                var sutalk = stringsetloc(
It's easy if you hold something over your head.
"It's easy if you hold something over your head.", "obj_b1rocks1_slash_Step_0_gml_252_0"
);
291
                
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);
292
                supickup = 1;
293
            }
294
            with (susie)
295
            {
296
                grabbed = other.ralsei;
297
                grab = 1;
298
                grabmarker = instance_create(x, y, obj_board_grabobject);
299
                with (grabmarker)
300
                {
301
                    drawreticle = false;
302
                    snd_play(snd_board_lift);
303
                    grabdaddy = other.id;
304
                    grabbedid = other.grabbed;
305
                    sprite_index = grabbedid.sprite_index;
306
                    image_xscale = grabbedid.image_xscale;
307
                    image_yscale = grabbedid.image_yscale;
308
                    image_speed = grabbedid.image_speed;
309
                    sourcex = grabbedid.x;
310
                    sourcey = grabbedid.y;
311
                }
312
                with (grabbed)
313
                {
314
                    visible = false;
315
                    frozen = true;
316
                    setxy(board_tilex(-1), board_tiley(-1));
317
                    if (object_index == obj_mainchara_board)
318
                        canfreemove = 0;
319
                }
320
            }
321
        }
322
        if (npcwalk == 21)
323
        {
324
            sudir = "right";
325
            if (susie.x == 480)
326
                sudir = "left";
327
            var suwalk = "";
328
            if (sudir == "right")
329
            {
330
                repeat (800)
331
                    suwalk += "0R";
332
            }
333
            if (sudir == "left")
334
            {
335
                repeat (800)
336
                    suwalk += "0L";
337
            }
338
            
scr_play_susie_recording
scr_play_susie_recording

function
scr_play_susie_recording(arg0)
{ with (obj_mainchara_board) { if (name == "susie") { susierecordcon = 2; susierecordcount = 0; susierecordstring = arg0; susierecordsave = false; } } }
(suwalk);
339
            suhitbuff = 0;
340
            npcwalk = 22;
341
        }
342
        if (npcwalk == 22)
343
        {
344
            suhitbuff--;
345
            if (grabmarker == 0)
346
            {
347
                with (obj_board_grabobject)
348
                    other.grabmarker = id;
349
            }
350
            var _hit = 0;
351
            with (susie)
352
            {
353
                if (place_meeting(x, y, obj_board_hazard))
354
                    _hit = 1;
355
            }
356
            if (_hit == 1 && suhitbuff <= 0)
357
            {
358
                if (ralseihitwhine == 0)
359
                {
360
                    var raltalk = stringsetloc(
HEY!!!
"HEY!!!", "obj_b1rocks1_slash_Step_0_gml_316_0"
);
361
                    
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; }
(raltalk, "ralsei", 2, 60);
362
                    ralseihitwhine = 1;
363
                    with (ralsei_real)
364
                    {
365
                        sprite_index = spr_ralsei_shocked_left;
366
                        
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); }
();
367
                        scr_delay_var("x", x, 60);
368
                        scr_delay_var("y", y, 60);
369
                        setxy(x - 18, y - 8);
370
                        scr_delay_var("sprite_index", usprite, 60);
371
                    }
372
                }
373
                suhitbuff = 20;
374
                snd_play(snd_board_playerhurt);
375
                with (ralsei)
376
                {
377
                    iframes = 20;
378
                    if (myhealth > 1)
379
                        myhealth--;
380
                    with (obj_board_healthbar)
381
                    {
382
                        if (target == other.id)
383
                        {
384
                            
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); }
();
385
                            scr_delay_var("mycolor", mycolor, 2);
386
                            mycolor = c_red;
387
                        }
388
                    }
389
                }
390
            }
391
            if (i_ex(grabmarker))
392
            {
393
                if (suhitbuff > 0 && ((suhitbuff / 2) % 2) == 0)
394
                    grabmarker.visible = 1 - grabmarker.visible;
395
                if (suhitbuff <= 0)
396
                    grabmarker.visible = true;
397
            }
398
            susie.iframes = 2;
399
            if (sudir == "right" && susie.x >= 480)
400
            {
401
                
scr_play_susie_recording
scr_play_susie_recording

function
scr_play_susie_recording(arg0)
{ with (obj_mainchara_board) { if (name == "susie") { susierecordcon = 2; susierecordcount = 0; susierecordstring = arg0; susierecordsave = false; } } }
("0W");
402
                susie.x = 480;
403
                susie.facing = 3;
404
                ralsei.facing = 3;
405
                npcwalk = 23;
406
                susie.iframes = 0;
407
                ralsei.iframes = 0;
408
                if (i_ex(grabmarker))
409
                    grabmarker.visible = true;
410
            }
411
            if (sudir == "left" && susie.x <= 128)
412
            {
413
                
scr_play_susie_recording
scr_play_susie_recording

function
scr_play_susie_recording(arg0)
{ with (obj_mainchara_board) { if (name == "susie") { susierecordcon = 2; susierecordcount = 0; susierecordstring = arg0; susierecordsave = false; } } }
("0W");
414
                susie.x = 128;
415
                susie.facing = 1;
416
                npcwalk = 23;
417
                susie.iframes = 0;
418
                ralsei.iframes = 0;
419
                ralsei.facing = 1;
420
                if (i_ex(grabmarker))
421
                    grabmarker.visible = true;
422
            }
423
        }
424
    }
425
}
426
else
427
{
428
    splatside = 0;
429
    if (i_ex(boulderdropper))
430
    {
431
        safe_delete(boulderdropper);
432
        boulderdropper = 0;
433
    }
434
    eventchosen = 0;
435
    if (roomvisit == 1)
436
        roomvisit = 2;
437
    if (roomvisit > 2)
438
        roomvisit = -1;
439
    if (npcwalk != 0)
440
    {
441
        ralsei.iframes = 0;
442
        susie.iframes = 0;
443
        npcwalk = 0;
444
    }
445
    npcwalktimer = 0;
446
    safe_delete(grabmarker);
447
    grabmarker = 0;
448
}
449
if (!active && ralseiwashit == 1)
450
{
451
    if (!instance_exists(obj_board_splattered_ralsei))
452
    {
453
        ralseiwashit = 2;
454
        with (obj_mainchara_board)
455
        {
456
            if (name == "ralsei")
457
            {
458
                visible = true;
459
                iframes = 0;
460
            }
461
        }
462
    }
463
}