Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_castle_01_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
scene = 0
5
cutscene_timer = 0
6
image_speed = 0
7
if (obj_pl.x > 1990)
8
{
9
    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 }
()
10
    instance_create(obj_pl.x, obj_pl.y, obj_player_npc)
11
    obj_player_npc.image_alpha = 0
12
    obj_player_npc.npc_direction = "down"
13
    if (global.party_member != -4)
14
    {
15
        actor_follower = instance_create(obj_pl.x, obj_pl.y, obj_martlet_npc)
16
        actor_follower.image_alpha = 0
17
        actor_follower.npc_direction = "down"
18
    }
19
}
20
else
21
    scene = 8