Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ghosthouse_jackolantern_Other_15

(view raw script w/o annotations or w/e)
1
if (tutu == 1 && collision_line(x, y + 8, obj_heart.x + 4, obj_heart.y + 4, obj_battlesolid, true, true))
2
    exit;
3
if (damage && global.inv < 0 && !polite && tutu != 1)
4
{
5
    damage = 20 - floor(hits / 2);
6
    if (global.tempflag[89] >= 2)
7
        damage = 15 - floor(hits / 2);
8
    if (damage < 1)
9
        damage = 1;
10
    hits++;
11
    if (hits == 12)
12
        global.turntimer = 1;
13
}
14
if (damage && global.inv < 0 && !polite && tutu != 1)
15
    target = 3;
16
event_inherited();
17
global.inv = min(global.inv, 10 - floor(hits / 2));
18
if (tutu == 1)
19
{
20
    with (obj_battlesolid)
21
        image_blend = c_yellow;
22
    if (i_ex(obj_jackenstein_enemy) && obj_jackenstein_enemy.scaredycat)
23
    {
24
        scaredy = obj_jackenstein_enemy.scaredycat;
25
        obj_jackenstein_enemy.scaredycat = false;
26
    }
27
    obj_heart.wspeed = 0;
28
    if (room == room_bullettest || room == room_bullettest_new)
29
        audio_stop_all();
30
    else
31
        snd_pause(global.batmusic[0]);
32
    with (obj_gh_fireball_bouncy)
33
        speed = 0;
34
    with (obj_gh_fireball_linear)
35
        rate = 0;
36
    with (obj_gh_fireball_square)
37
        path_speed = 0;
38
    timer = 100;
39
    tutu = 2;
40
    image_speed = 0;
41
    sprite_index = spr_guywhoappearswhenyoudroppedyourtutu;
42
    
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("x", x, obj_heart.x - 60, 45, -1, "out");
43
    
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("y", y, obj_heart.y - 12, 45, -1, "out");
44
    path_end();
45
}
46
else if (polite == 1)
47
{
48
    path_speed = 0;
49
}
50
else if (!tutu)
51
{
52
    if (!fully_aggro)
53
        event_user(0);
54
}