Deltarune script viewer

← back to main script listing

gml_Object_obj_holemouse_Collision_obj_npc_facing

(view raw script w/o annotations or w/e)
1
if (nointeract == false)
2
{
3
    if (other.lifetimer > 20)
4
    {
5
        if (room == room_dw_city_mice && con == 1)
6
        {
7
            with (other)
8
            {
9
                noelle = instance_create(x, y, obj_noelle_scared);
10
                noelle.con = 0;
11
                noelle.targetx = x;
12
                noelle.targety = y;
13
                noelle.alarm[0] = 1;
14
                noelle.extflag = "mice1Scare";
15
                instance_destroy();
16
            }
17
            if (instance_exists(obj_controller_dw_city_mice))
18
                obj_controller_dw_city_mice.scaredAgain = 0;
19
        }
20
        if (room == room_dw_city_mice2 && con == 1 && !d_ex())
21
        {
22
            with (other)
23
            {
24
                scaredNoelle = instance_create(x, y, obj_noelle_scared);
25
                scaredNoelle.con = 0;
26
                scaredNoelle.targetx = x;
27
                scaredNoelle.targety = y;
28
                scaredNoelle.alarm[0] = 1;
29
                instance_destroy();
30
            }
31
            if (instance_exists(obj_controller_city_mice2))
32
                obj_controller_city_mice2.scared = 0;
33
        }
34
    }
35
}