Undertale script viewer

← back to main script listing

gml_Object_obj_hivestem_Step_1

(view raw script w/o annotations or w/e)
1
scr_depth
scr_depth

depth = 50000 - ((y * 10) + (sprite_height * 10));
(0, 0, 0, 0, 0);
2
if (con < 3)
3
    scr_npc_anim
scr_npc_anim

tt = 0; if (myinteract == 3) { if (instance_exists(OBJ_WRITER)) { image_speed = 0.2; if (OBJ_WRITER.halt != 0) tt = 1; } else { tt = 1; } } if (tt == 1) { image_speed = 0; image_index = 0; }
();
4
if (con == 2 && instance_exists(OBJ_WRITER) == 0)
5
{
6
    global.interact = 1;
7
    con = 3;
8
    caster_pause(global.currentsong);
9
    alarm[4] = 45;
10
}
11
if (con == 3)
12
    global.interact = 1;
13
if (con == 4)
14
{
15
    snd_play(snd_movemenu);
16
    sprite_index = spr_temmie_hive;
17
    image_index = 1;
18
    con = 5;
19
    alarm[4] = 30;
20
}
21
if (con == 6)
22
{
23
    snd_play(snd_movemenu);
24
    sprite_index = spr_temmie_hive;
25
    image_index = 2;
26
    con = 7;
27
    alarm[4] = 30;
28
}
29
if (con == 8)
30
{
31
    snd_play(snd_movemenu);
32
    sprite_index = spr_temmie_hive;
33
    image_index = 3;
34
    con = 9;
35
    alarm[4] = 30;
36
}
37
if (con == 10)
38
{
39
    snd_play(snd_movemenu);
40
    sprite_index = spr_temmie_hivetalk;
41
    image_index = 0;
42
    con = 11;
43
    alarm[4] = 45;
44
}
45
if (con == 12)
46
{
47
    global.flag[269 allergy_tem_talked] = 1;
48
    con = -1;
49
    global.interact = 0;
50
    caster_resume(global.currentsong);
51
}