Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_b1rocks1_Step_1

(view raw script w/o annotations or w/e)
1
if (npcwalk == 2)
2
{
3
    var splat = false;
4
    with (ralsei)
5
    {
6
        if (place_meeting(x, y, obj_board_boulder))
7
            splat = true;
8
    }
9
    ralsei.iframes = 2;
10
    if (rahit == 0 && splat == true)
11
    {
12
        snd_play(snd_splat);
13
        rahit = 1;
14
        ralsei.iframes = 180;
15
        ralsei.visible = false;
16
        splatmarker = instance_create(round(ralsei.x / 2) * 2, round(ralsei.y / 2) * 2, obj_board_splattered_ralsei);
17
        splatmarker.splatside = splatside;
18
        ralseiwashit = 1;
19
        var ratalk = stringsetloc(
Oops.
"Oops.", "obj_b1rocks1_slash_Step_1_gml_19_0"
);
20
        
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);
21
        npcwalk = 3;
22
        npcwalktimer = 0;
23
    }
24
}