Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_martlet_snowdin_21_geno_Create_0

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

scene = 1
27
    x = 220
28
    y = 280
29
    obj_pl.x = x
30
    obj_pl.y = y + 30
31
}