Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_hotland_roof_cutscene_geno_Create_0

(view raw script w/o annotations or w/e)
1
if (global.route != 3)
2
{
3
    instance_destroy()
4
    return;
5
}
6
if (global.hotland_flag[9] >= 3)
7
{
8
    layer_set_visible("roof_foreground", false)
9
    layer_set_visible("roof_base", false)
10
    layer_set_visible("roof_foreground_destroyed", true)
11
    layer_set_visible("roof_base_destroyed", true)
12
    instance_destroy()
13
    return;
14
}
15
with (instance_create_depth(205, 300, 0, obj_martlet_npc))
16
{
17
    can_walk = false
18
    up_sprite = 3617
19
    right_sprite = 3143
20
    down_sprite = 2486
21
    left_sprite = 3622
22
    up_sprite_idle = 2324
23
    right_sprite_idle = 3294
24
    down_sprite_idle = 3564
25
    left_sprite_idle = 1469
26
    npc_direction = "up"
27
}
28
scene = 0
29
cutscene_timer = 0
30
cutscene_music = 0
31
draw_alpha = 0
32
draw_alpha_white = 0
33
draw_clover_yellow_alpha = 0
34
global.player_can_run = false