Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_pulley_elevator_Other_4

(view raw script w/o annotations or w/e)
1
switch global.last_room_overworld
2
{
3
    case "rm_dunes_24":
4
    case "rm_dunes_25":
5
    case "rm_dunes_27":
6
    case "rm_dunes_28":
7
        if (room == rm_dunes_27)
8
        {
9
            layer_depth("ground_tiles", -9999998)
10
            layer_depth("grass_tiles", -9999999)
11
        }
12
        act = 1
13
        pull_speed = 2.5
14
        elevator_can_collide = false
15
        y = target_y
16
        obj_pl.x = x
17
        obj_pl.y = y + 14
18
        if (global.party_member != -4)
19
        {
20
            var martlet_npc = instance_create((x + 20), y, obj_martlet_npc)
21
            martlet_npc.npc_direction = "down"
22
            martlet_npc.sprite_index = martlet_npc.down_sprite_idle
23
            martlet_npc.can_walk = false
24
            martlet_npc.npc_dynamic_depth = false
25
            obj_pl.x = x - 20
26
        }
27
        break
28
}