Undertale script viewer

← back to main script listing

gml_Object_obj_xoxocontroller1_Collision_1576

(view raw script w/o annotations or w/e)
1
ii = image_index;
2
if (room == room_tundra_xoxopuzz)
3
{
4
    if (instance_exists(obj_papyrus5) && fvic == 1)
5
    {
6
        global.plot = obj_papyrus5.xplot + 1;
7
        obj_mainchara.cutscene = 0;
8
        obj_xoxo.image_index = 3;
9
        if (obj_papyrus5.conversation < 9)
10
        {
11
            obj_papyrus5.conversation = 9;
12
            sans = instance_create(620, 80, obj_sans_room);
13
        }
14
    }
15
    else if (global.plot <= 55)
16
    {
17
        if (vic > 0)
18
            global.flag[63 xoxo_resets] += 1;
19
        obj_xoxo.image_index = 0;
20
        fvic = 0;
21
        vic = 0;
22
    }
23
    image_index = 1;
24
    alarm[2] = 3;
25
}
26
if (room == room_tundra_xoxosmall)
27
{
28
    if (fvic == 1 && global.plot < 53)
29
    {
30
        global.plot = 53;
31
        obj_xoxo.image_index = 3;
32
    }
33
    else if (global.plot < 53)
34
    {
35
        obj_xoxo.image_index = 0;
36
        fvic = 0;
37
        vic = 0;
38
    }
39
    image_index = 1;
40
    alarm[2] = 3;
41
}
42
if (room == room_tundra_iceentrance && global.phasing == 0)
43
{
44
    if (fvic == 1 && global.plot < 63)
45
    {
46
        global.plot = 63;
47
        fb = instance_create(obj_specialdrophole.x + 3, obj_specialdrophole.y, obj_fakebridge);
48
        fb.justdoit = 1;
49
        fb.alarm[3] = -1;
50
        obj_xoxo.image_index = 3;
51
    }
52
    else if (global.plot < 63)
53
    {
54
        obj_xoxo.image_index = 0;
55
        fvic = 0;
56
        vic = 0;
57
    }
58
    image_index = 1;
59
    alarm[2] = 3;
60
}
61
if (ii == 0 && ii != image_index)
62
    snd_play(snd_switchpull_n);