Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_hotland_03_elevator_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
image_speed = 0
6
if place_meeting(x, y, obj_pl)
7
{
8
    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 }
()
9
    instance_create(obj_pl.x, obj_pl.y, obj_player_npc)
10
    obj_player_npc.image_alpha = 0
11
    obj_player_npc.npc_direction = "down"
12
    if (global.party_member != -4)
13
    {
14
        actor_follower = instance_create(obj_pl.x, obj_pl.y, obj_martlet_npc)
15
        actor_follower.image_alpha = 0
16
        actor_follower.npc_direction = "down"
17
    }
18
}
19
player_fade_out = false