Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_pippins_marker_Step_0

(view raw script w/o annotations or w/e)
1
if (sprite_index == spr_krisb_eye_x)
2
{
3
    with (obj_herokris)
4
    {
5
        if (state == 6)
6
            acttimer += 0.5;
7
    }
8
}
9
if (sprite_index == spr_ralsei_mustache2)
10
{
11
    with (obj_heroralsei)
12
    {
13
        if (state == 6)
14
            acttimer += 0.5;
15
    }
16
}
17
timer++;
18
if (timer == 30)
19
{
20
    visible = true;
21
    image_speed = 0.1;
22
    snd_play(snd_magicmarker);
23
}
24
if (image_index > 3)
25
{
26
    image_index = 3;
27
    image_speed = 0;
28
}
29
if (
scr_monsterpop
scr_monsterpop

function
scr_monsterpop()
{ return global.monster[0] + global.monster[1] + global.monster[2]; }
() == 0)
30
    instance_destroy();
31
if (sprite_index == spr_krisb_eye_x && global.hp[1] < 1)
32
    instance_destroy();
33
if (sprite_index == spr_ralsei_mustache2 && global.hp[3] < 1)
34
    instance_destroy();