Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_22_controller_pacifist_Create_0

(view raw script w/o annotations or w/e)
1
scene = 0
2
cutscene_timer = 0
3
cutscene_music = -4
4
if (global.geno_complete[3] == true)
5
{
6
    layer_set_visible("rubble", false)
7
    instance_destroy()
8
    return;
9
}
10
if (global.route == 1)
11
{
12
    instance_create(x, y, obj_steamworks_22_controller_neutral)
13
    instance_destroy()
14
    return;
15
}
16
if (global.sworks_flag[13] == 1)
17
{
18
    layer_set_visible("asset_glass_panel", false)
19
    instance_create_depth(clamp(obj_pl.x, 0, 1860), 90, (layer_get_depth("tiles_outside") - 50), obj_steamworks_22_axis_throwing)
20
    instance_create(obj_pl.x, obj_pl.y, obj_camera)
21
    instance_create(60, 120, obj_ceroba_npc)
22
    obj_ceroba_npc.npc_direction = "right"
23
    cutscene_music = 627
24
    scene = 16
25
}
26
else if (global.sworks_flag[13] == 2)
27
{
28
    layer_set_visible("asset_glass_panel", false)
29
    layer_set_visible("rubble", false)
30
    instance_destroy()
31
    return;
32
}
33
energy_ball_deflect_noloop = false
34
depth = -100