Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_teevie_susiezilla_ropeenemy_Step_0

(view raw script w/o annotations or w/e)
1
scr_depth_alt
scr_depth_alt

function
scr_depth_alt()
{ depth = 100000 - ((y * 10) + ((sprite_height - sprite_yoffset) * 10)); }
();
2
if (fakey > -48)
3
    active = true;
4
else
5
    active = false;
6
if (con == 0)
7
{
8
    if (active && global.interact == 0)
9
    {
10
        var ymod = y + 58;
11
        if (i_ex(collision_rectangle(x - 30, ymod - 20, x + 30, ymod + 4, obj_mainchara, 0, 0)))
12
        {
13
            with (object_index)
14
                image_speed = 0;
15
            with (obj_dw_teevie_susiezilla)
16
                killmove = 1;
17
            global.interact = 1;
18
            snd_play(snd_tensionhorn);
19
            snd_play_delay(snd_tensionhorn, 8, 1, 1.1);
20
            con = 1;
21
        }
22
    }
23
}
24
if (con == 1)
25
{
26
    timer++;
27
    if (timer == 1)
28
    {
29
        with (
scr_marker_ext
scr_marker_ext

function
scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{ var thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { depth = arg8; sprite_index = arg2; image_speed = arg5; image_xscale = arg3; image_yscale = arg4; image_index = arg6; image_blend = arg7; image_alpha = arg11; if (arg9)
scr_depth();
} if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker; }
(x, cameray(), spr_pxwhite, 4, cameray() + y + fakey, 0, 0, c_black, depth + 1, undefined, 30))
30
            image_blend = #5F3417;
31
        shadowman = 
scr_marker_ext
scr_marker_ext

function
scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{ var thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { depth = arg8; sprite_index = arg2; image_speed = arg5; image_xscale = arg3; image_yscale = arg4; image_index = arg6; image_blend = arg7; image_alpha = arg11; if (arg9)
scr_depth();
} if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker; }
(x, y + fakey, sprite_index, 2, 2, 0, image_index, undefined, 88);
32
        visible = false;
33
    }
34
    if (timer == 31)
35
    {
36
        shadowman.sprite_index = spr_shadowman_idle_a;
37
        shadowman.x -= 56;
38
        shadowman.y -= 61;
39
        global.flag[54 encounter_pointer] = encounterflag;
40
        encounterno = 136;
41
        
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; } } } }
(encounterno, 0, shadowman);
42
    }
43
    if (timer == 80)
44
    {
45
        if (erase == true)
46
        {
47
            with (object_index)
48
                instance_destroy();
49
        }
50
        else
51
        {
52
            instance_destroy();
53
        }
54
    }
55
}