Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_newhome_03_cutscene_Create_0

(view raw script w/o annotations or w/e)
1
if (global.route != 2)
2
{
3
    instance_destroy()
4
    return;
5
}
6
if (global.hotland_flag[10] > 0)
7
{
8
    instance_destroy()
9
    return;
10
}
11
if (global.hotland_flag[3] == 1)
12
{
13
    instance_destroy()
14
    instance_create(x, y, obj_newhome_03_cutscene_postfight_spare)
15
    return;
16
}
17
else if (global.hotland_flag[3] == 2)
18
{
19
    instance_destroy()
20
    instance_create(x, y, obj_newhome_03_cutscene_postfight_kill)
21
    return;
22
}
23
with (instance_create(163, 239, obj_ceroba_npc))
24
    npc_direction = "up"
25
with (instance_create(163, 287, obj_starlo_npc))
26
{
27
    npc_direction = "up"
28
    up_sprite = 207
29
    right_sprite = 237
30
    down_sprite = 240
31
    left_sprite = 236
32
    up_sprite_idle = 206
33
    right_sprite_idle = 235
34
    down_sprite_idle = 230
35
    left_sprite_idle = 232
36
}
37
scene = 0
38
cutscene_timer = 0
39
cutscene_music = 0
40
starlo_overlay = 0