Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_martlet_snowdin_21_Create_0

(view raw script w/o annotations or w/e)
1
if (global.snowdin_flag[14] >= 1 || (global.snowdin_flag[13] == 0 && global.geno_complete[2] == true) || global.snowdin_flag[13] == 3)
2
{
3
    instance_destroy()
4
    return;
5
}
6
event_inherited()
7
image_speed = 0
8
scene = 0
9
walk_speed = 2
10
action_sprite = true
11
arrived_count = 0
12
up_sprite = 273
13
right_sprite = 270
14
down_sprite = spr_martlet_down
15
left_sprite = 272
16
up_sprite_idle = 262
17
right_sprite_idle = 263
18
down_sprite_idle = 265
19
left_sprite_idle = 268
20
if (global.snowdin_flag[13] > 0)
21
{
22
    action_sprite = false
23
    sprite_index = down_sprite
24
    scr_cutscene_start
scr_cutscene_start

function scr_cutscene_start() //gml_Script_scr_cutscene_start { global.cutscene = true obj_pl.state = gml_Script_scr_frozen_state obj_pl.image_index = 0 obj_pl.image_speed = 0 }
()
25
    alarm[2] = 45
alarm[2]

scene = 1
26
    x = 220
27
    y = 200
28
    if (global.route == 3)
29
    {
30
        x = 220
31
        y = 280
32
    }
33
    instance_create(x, (y - 20), obj_camera)
34
    __view_set((9 << 0), 0, 1120)
35
    obj_pl.x = x
36
    obj_pl.y = y + 30
37
}