Undertale script viewer

← back to main script listing

gml_Object_obj_amalgam_biter_Other_11

(view raw script w/o annotations or w/e)
1
if (miss == -1)
2
{
3
    miss = floor(random(11));
4
}
5
else
6
{
7
    missadd = 1 + floor(random(6));
8
    miss += (choose(1, -1) * missadd);
9
    if (miss < 0)
10
        miss = 0 + missadd;
11
    if (miss > 10)
12
        miss = 10 - missadd;
13
}
14
toothno = 0;
15
tx = global.idealborder[0] - 25;
16
repeat (5)
17
{
18
    if (toothno != miss)
19
    {
20
        downtooth = instance_create(tx, 0, obj_amalgam_tooth);
21
        downtooth.top = 0;
22
    }
23
    toothno += 1;
24
    tx += 25;
25
    if (toothno != miss)
26
    {
27
        uptooth = instance_create(tx, 0, obj_amalgam_tooth);
28
        uptooth.top = 1;
29
    }
30
    toothno += 1;
31
    tx += 25;
32
}
33
if (toothno != miss)
34
{
35
    downtooth = instance_create(tx, 0, obj_amalgam_tooth);
36
    downtooth.top = 0;
37
}