Undertale script viewer

← back to main script listing

gml_Object_obj_randomhandgen_Alarm_0

(view raw script w/o annotations or w/e)
1
alarm[0] = factor;
gml_Object_obj_randomhandgen_Alarm_0.gml

alarm[0] = factor; tt = choose(1, 2, 3, 4); if (tt == 1) { hand2 = instance_create(104, 146, obj_handbullet_new); hand2.type = 1; } if (tt == 2) { hand1 = instance_create(440, 382, obj_handbullet_new); hand1.type = 2; } if (tt == 3) { hand4 = instance_create(global.idealborder[1] - 50, global.idealborder[2] - 90, obj_handbullet_new); hand4.type = 3; } if (tt == 4) { hand3 = instance_create(global.idealborder[0] - 10, global.idealborder[3] + 10, obj_handbullet_new); hand3.type = 4; }
2
tt = choose(1, 2, 3, 4);
3
if (tt == 1)
4
{
5
    hand2 = instance_create(104, 146, obj_handbullet_new);
6
    hand2.type = 1;
7
}
8
if (tt == 2)
9
{
10
    hand1 = instance_create(440, 382, obj_handbullet_new);
11
    hand1.type = 2;
12
}
13
if (tt == 3)
14
{
15
    hand4 = instance_create(global.idealborder[1] - 50, global.idealborder[2] - 90, obj_handbullet_new);
16
    hand4.type = 3;
17
}
18
if (tt == 4)
19
{
20
    hand3 = instance_create(global.idealborder[0] - 10, global.idealborder[3] + 10, obj_handbullet_new);
21
    hand3.type = 4;
22
}