Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_newhome_03_elevator_Create_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
image_speed = 0;
4
if (global.route == 3 || global.hotland_flag[10] != 0)
5
{
6
    scene = 0;
7
    cutscene_timer = 0;
8
    image_speed = 0;
9
    if (obj_pl.x > 130)
10
    {
11
        scr_cutscene_start
scr_cutscene_start

function scr_cutscene_start() { global.cutscene = true; obj_pl.state = scr_frozen_state; obj_pl.image_index = 0; obj_pl.image_speed = 0; }
();
12
        instance_create(obj_pl.x, obj_pl.y, obj_player_npc);
13
        obj_player_npc.image_alpha = 0;
14
        obj_player_npc.npc_direction = "down";
15
        if (global.party_member != -4)
16
        {
17
            actor_follower = instance_create(obj_pl.x, obj_pl.y, obj_martlet_npc);
18
            actor_follower.image_alpha = 0;
19
            actor_follower.npc_direction = "down";
20
        }
21
    }
22
    else
23
    {
24
        scene = 8;
25
    }
26
}