Undertale script viewer

← back to main script listing

gml_Object_obj_stick_Create_0

(view raw script w/o annotations or w/e)
1
if (global.plot >= 35)
2
{
3
    instance_destroy();
4
}
5
else
6
{
7
    snap = caster_load("music/sticksnap.ogg");
8
    broken = 0;
9
    if (global.flag[47 status_creepy_tundra] >= 2)
10
    {
11
        image_index = 1;
12
        broken = 1;
13
    }
14
    if (global.flag[275 tundra_stick_broken] >= 1)
15
    {
16
        image_index = 1;
17
        broken = 1;
18
    }
19
    image_speed = 0;
20
    instance_create(2650, 0, obj_creeptree_sansmaker);
21
    instance_create(2725, 0, obj_creeptree_stickbreak);
22
    instance_create(3400, 0, obj_creeptree1);
23
    instance_create(3440, 0, obj_creeptree1);
24
    instance_create(4040, 0, obj_creeptree1);
25
}
26
myinteract = 0;