Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_mazepipis_Step_0

(view raw script w/o annotations or w/e)
1
if (boss == 1)
2
{
3
    if (con == 4)
4
        
scr_debug_print
scr_debug_print

function
scr_debug_print(arg0)
{ }
("con=" + string(con));
5
}
6
if (con == 1 && myinteract == 3 && !d_ex())
7
{
8
    pipismarker = 
scr_dark_marker
scr_dark_marker

function
scr_dark_marker(arg0, arg1, arg2)
{ thismarker = instance_create(arg0, arg1, obj_marker); with (thismarker) { sprite_index = arg2; image_speed = 0; image_xscale = 2; image_yscale = 2; } return thismarker; }
(x, y, sprite_index);
9
    
scr_darksize
scr_darksize

function
scr_darksize(arg0)
{ inst = arg0; inst.image_xscale = 2; inst.image_yscale = 2; }
(pipismarker);
10
    visible = false;
11
    myinteract = 0;
12
    snd_play_pitch(snd_spamton_laugh, 1.4);
13
    con = 2;
14
    timer = 0;
15
    boss = 1;
16
}
17
if (con == 2)
18
{
19
    timer++;
20
    if (timer == 15)
21
    {
22
        alarm[4]
 = 30;
gml_Object_obj_mazepipis_Alarm_4.gml

con++;
23
        global.flag[9 battle_music] = 2;
24
        
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; global.batmusic[0] = snd_init("battle.ogg"); } 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]) {
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; } } } }
(102, 0, pipismarker, 0, 0);
25
    }
26
}
27
if (con == 3)
28
{
29
    with (obj_mazepipis)
30
    {
31
        if (!boss)
32
        {
33
            if (distance_to_point(other.x, other.y) < 40)
34
                instance_destroy();
35
        }
36
    }
37
    instance_destroy();
38
}