Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_04_controller_Create_0

(view raw script w/o annotations or w/e)
1
cutscene_timer = 0
2
scene = 0
3
if (global.geno_complete[3] == true)
4
{
5
    instance_destroy()
6
    instance_create(x, y, obj_steamworks_04_controller_geno)
7
    return;
8
}
9
if (global.route == 1)
10
{
11
    instance_destroy()
12
    instance_create(x, y, obj_steamworks_04_controller_neutral)
13
    return;
14
}
15
if (global.sworks_flag[0] == 2)
16
{
17
    actor_ceroba = instance_create(220, 405, obj_ceroba_npc)
18
    actor_ceroba.npc_direction = "up"
19
    actor_clover = instance_create(obj_pl.x, obj_pl.y, obj_player_npc)
20
    actor_clover.npc_direction = "up"
21
}
22
else if (global.sworks_flag[0] == 3 && global.sworks_flag[1] < 3)
23
{
24
    actor_ceroba = instance_create(224, 360, obj_ceroba_npc)
25
    actor_ceroba.npc_direction = "up"
26
}
27
else if (global.sworks_flag[1] == 3 || global.sworks_flag[1] == 4)
28
{
29
    actor_ceroba = instance_create(224, 360, obj_ceroba_npc)
30
    actor_ceroba.npc_direction = "up"
31
    __background_set((2 << 0), 0, 0x000A06)
32
    obj_pl.image_alpha = 0
33
    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 }
()
34
}
35
else
36
{
37
    __background_set((2 << 0), 0, 0x000A06)
38
    instance_destroy()
39
}