Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_small_jackolantern_Other_15

(view raw script w/o annotations or w/e)
1
if (damage && global.inv < 0)
2
{
3
    with (obj_ghosthouse_jackolantern)
4
    {
5
        hits++;
6
        if (hits == 12)
7
            global.turntimer = 1;
8
    }
9
}
10
if (global.tempflag[89] >= 2)
11
    damage = 20;
12
event_inherited();
13
global.inv = min(global.inv, 10);