Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_35_cutscene_pacifist_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
scene = 0
4
cutscene_timer = 0
5
cutscene_music = 0
6
if ((global.route != 2 && global.sworks_flag[58] == 0) || global.geno_complete[3])
7
{
8
    instance_destroy()
9
    return;
10
}
11
if (global.sworks_flag[31] >= 3)
12
{
13
    instance_create(0, 0, obj_steamworks_35_cutscene_pacifist_alt)
14
    instance_destroy()
15
    return;
16
}
17
if (global.sworks_flag[31] == 0)
18
{
19
    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 }
()
20
    scr_follower_into_actor
scr_follower_into_actor

function scr_follower_into_actor() //gml_Script_scr_follower_into_actor { if (global.party_member == noone) return false; actor_follower = instance_create(global.party_member.x, global.party_member.y, global.party_member.npc_actor) with (global.party_member) { switch sprite_index { case up_sprite: case up_sprite_idle: case up_sprite_run: other.actor_follower.npc_direction = "up" other.actor_follower.sprite_index = other.actor_follower.up_sprite break case down_sprite: case down_sprite_idle: case down_sprite_run: other.actor_follower.npc_direction = "down" other.actor_follower.sprite_index = other.actor_follower.down_sprite break case left_sprite: case left_sprite_idle: case left_sprite_run: other.actor_follower.npc_direction = "left" other.actor_follower.sprite_index = other.actor_follower.left_sprite break case right_sprite: case right_sprite_idle: case right_sprite_run: other.actor_follower.sprite_index = other.actor_follower.right_sprite break } instance_destroy() } return true; }
()
21
    global.party_member = -4
22
    obj_pl.x = 1260
23
    obj_pl.y = 140
24
    instance_create_depth(obj_pl.x, obj_pl.y, obj_pl.depth, obj_player_npc)
25
    actor_follower.x = obj_pl.x + 40
26
    actor_follower.y = obj_pl.y
27
    with (105642)
28
        y -= 80
29
}
30
if (global.sworks_flag[31] == 1)
31
{
32
    instance_destroy(obj_steamworks_35_trashcan)
33
    scene = 50
34
}
35
if (global.sworks_flag[31] >= 2)
36
{
37
    instance_destroy(obj_steamworks_35_trashcan)
38
    scene = 83
39
    instance_destroy(obj_axis_npc)
40
    return;
41
}
42
actor_axis = 1166