Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_hotland_roof_cutscene_geno_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
switch scene
4
{
5
    case 0:
6
        if (obj_pl.x < 400)
7
        {
8
            instance_create(obj_pl.x, obj_pl.y, obj_player_npc)
9
            cutscene_advance()
10
        }
11
        break
12
    case 1:
13
        cutscene_npc_walk(1168, obj_martlet_npc.x, obj_pl.y, 3, "x", "up")
14
        break
15
    case 2:
16
        if cutscene_wait(1.5)
17
            cutscene_advance(2.5)
18
        break
19
    case 2.5:
20
        if cutscene_npc_walk(1168, obj_martlet_npc.x, (obj_martlet_npc.y + 60), 1, "x", "up")
21
            cutscene_advance(3)
22
        break
23
    case 3:
24
        cutscene_camera_move(obj_martlet_npc.x, 300, 1)
25
        camera_set_view_speed(view_camera[0], -1, -1)
26
        break
27
    case 4:
28
        cutscene_wait(0.5)
29
        break
30
    case 5:
31
        cutscene_instance_create(obj_martlet_npc.x, (obj_martlet_npc.y - 45), obj_cutscene_ex)
32
        audio_play_sound(snd_encounter, 1, 0)
33
        break
34
    case 6:
35
        cutscene_wait(1)
36
        break
37
    case 7:
38
        cutscene_npc_direction(obj_martlet_npc, "down")
39
        instance_destroy(obj_cutscene_ex)
40
        break
41
    case 8:
42
        cutscene_wait(0.5)
43
        break
44
    case 9:
45
        cutscene_dialogue()
46
        with (msg)
47
        {
48
            talker[0] = 1164
49
            position = 1
50
            message[0] = "* ..."
51
            message[1] = "* So you found me..."
52
            message[2] = "* Pretty easy when#  there's so few left."
53
            prt[0] = 315
54
            prt[1] = 336
55
            prt[2] = 338
56
        }
57
        break
58
    case 10:
59
        cutscene_wait(0.5)
60
        break
61
    case 11:
62
        cutscene_npc_action_sprite(1168, 3380, 1, true, 0, 634, 2)
63
        break
64
    case 12:
65
        cutscene_wait(1)
66
        break
67
    case 13:
68
        cutscene_battle_initiate("martlet genocide final", true, false)
69
        break
70
}