Undertale script viewer

← back to main script listing

gml_Object_obj_menubone_maker_Create_0

(view raw script w/o annotations or w/e)
1
if (instance_exists(obj_menubone) || instance_exists(obj_menubone_bottom))
2
{
3
    instance_destroy();
4
    exit;
5
}
6
h = 0;
7
if (instance_exists(obj_sansb))
8
{
9
    if (obj_sansb.hit_try == 14)
10
        h = 1;
11
    if (obj_sansb.hit_try == 15)
12
        h = 1;
13
    if (obj_sansb.hit_try == 16)
14
        h = 2;
15
    if (obj_sansb.hit_try == 17)
16
        h = 2;
17
    if (obj_sansb.hit_try >= 23)
18
    {
19
        instance_destroy();
20
        exit;
21
    }
22
}
23
if (h != 2)
24
    alarm[0] = 1;
gml_Object_obj_menubone_maker_Alarm_0.gml

instance_create(-20, -20, obj_menubone);
25
if (h != 1)
26
{
27
    alarm[1] = 3;
gml_Object_obj_menubone_maker_Alarm_1.gml

mbb = instance_create(-20, -20, obj_menubone_bottom); mbb.spot = 0; mbb.myspeed = -5;
28
    alarm[2] = 20;
gml_Object_obj_menubone_maker_Alarm_2.gml

mbb = instance_create(-20, -20, obj_menubone_bottom); mbb.spot = 1; mbb.myspeed = -5;
29
    alarm[3] = 3;
gml_Object_obj_menubone_maker_Alarm_3.gml

mbb = instance_create(-20, -20, obj_menubone_bottom); mbb.spot = 2; mbb.myspeed = -5;
30
    alarm[4] = 20;
gml_Object_obj_menubone_maker_Alarm_4.gml

mbb = instance_create(-20, -20, obj_menubone_bottom); mbb.spot = 3; mbb.myspeed = -5; instance_destroy();
31
}
32
alarm[5] = 50;