Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_noelle_scared_Alarm_0

(view raw script w/o annotations or w/e)
1
if (autocomplete == 0)
2
{
3
    if (jumppuzzle == 0)
4
    {
5
        if (con == 0)
6
        {
7
            snd_play(snd_noelle_scared);
8
            jumpy = 20;
9
            if (i_ex(obj_controller_city_mice2))
10
            {
11
                targetx = 370;
12
                targety = 166;
13
            }
14
            if (instance_exists(obj_controller_city_mice2) && obj_controller_city_mice2.victory == 1 && obj_controller_city_mice2.con != -2)
15
            {
16
                targetx = 860;
17
                targety = 238;
18
            }
19
            if (extflag == "mice1Scare")
20
            {
21
                targetx = x;
22
                targety = y;
23
            }
24
            con = 1;
25
        }
26
    }
27
    else
28
    {
29
        if (instance_exists(obj_controller_city_mice3))
30
        {
31
            if (fallen == 0)
32
                obj_controller_city_mice3.exttrig = "success";
33
            else
34
                obj_controller_city_mice3.exttrig = "fell";
35
        }
36
        snd_play(snd_noelle_scared);
37
        if (instance_exists(obj_masterPlatformController))
38
        {
39
            if (con == 0)
40
            {
41
                jumpy = 20;
42
                if (fallen == 0)
43
                {
44
                    targetx = obj_masterPlatformController.plat[obj_masterPlatformController.currentPlatform].x + 120;
45
                    targety = obj_masterPlatformController.plat[obj_masterPlatformController.currentPlatform].patidealy;
46
                }
47
                else
48
                {
49
                    targetx = obj_masterPlatformController.plat[obj_masterPlatformController.currentPlatform - 1].x + 120;
50
                    targety = obj_masterPlatformController.plat[obj_masterPlatformController.currentPlatform - 1].patidealy;
51
                }
52
                con = 1;
53
            }
54
        }
55
    }
56
}