Undertale script viewer

← back to main script listing

gml_Object_obj_hotelreceptionist_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
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; }
();
3
if (con == 1 && instance_exists(OBJ_WRITER) == 0)
4
{
5
    global.hp = global.maxhp;
6
    if (global.lv == 1)
7
        global.hp = 30;
8
    if (global.lv == 2)
9
        global.hp = 32;
10
    if (global.lv == 3)
11
        global.hp = 34;
12
    if (global.lv == 4)
13
        global.hp = 36;
14
    if (global.lv == 5)
15
        global.hp = 38;
16
    global.interact = 1;
17
    con = 2;
18
    alarm[4] = 30;
19
    instance_create(0, 0, obj_unfader);
20
    instance_create(0, 0, obj_musfadeout);
21
}
22
if (con == 2)
23
    global.interact = 1;
24
if (con == 3)
25
{
26
    caster_free(all);
27
    global.entrance = 1;
28
    instance_create(0, 0, obj_persistentfader);
29
    room_goto(room_fire_hotelbed Hotland - Hotel Alley);
30
}