Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_hotland_complex_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 (global.hotland_flag[9] >= 3)
7
    sprite_index = spr_hotland_elevator_door_darkened
8
if place_meeting(x, y, obj_pl)
9
{
10
    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 }
()
11
    instance_create(obj_pl.x, obj_pl.y, obj_player_npc)
12
    obj_player_npc.image_alpha = 0
13
    obj_player_npc.npc_direction = "down"
14
    if (global.party_member != -4)
15
    {
16
        actor_follower = instance_create(obj_pl.x, obj_pl.y, obj_martlet_npc)
17
        actor_follower.image_alpha = 0
18
        actor_follower.npc_direction = "down"
19
    }
20
}
21
else
22
    scene = 8