Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_35_cutscene_geno_Step_0

(view raw script w/o annotations or w/e)
1
switch (scene)
2
{
3
    case 0:
4
        if (obj_pl.x < 790)
5
        {
6
            scr_cutscene_start
scr_cutscene_start

function scr_cutscene_start() { global.cutscene = true; obj_pl.state = scr_frozen_state; obj_pl.image_index = 0; obj_pl.image_speed = 0; }
();
7
            instance_create(obj_pl.x, obj_pl.y, obj_player_npc);
8
            cutscene_advance();
9
        }
10
        break;
11
    case 1:
12
        cutscene_npc_walk(1168, 700, 140, 3, "x", "up");
13
        break;
14
    case 2:
15
        cutscene_wait(1.25);
16
        break;
17
    case 3:
18
        cutscene_dialogue();
19
        with (msg)
20
        {
21
            talker[0] = 1166;
22
            if (global.geno_complete[4] == true)
23
            {
24
                message[0] = "* I. ..";
25
                message[1] = "* I DID ALL I C0ULD.";
26
                message[2] = "* I wAS OnLY ABLE TO sAVE#  A FEW buT...";
27
                message[3] = "* NoW_ I KN0W YOU WILL#  LE4VE ThIS PLaCE#  UNSATISFIED.";
28
                message[4] = "* . . .";
29
                message[5] = "* TH3 SAME FaTE ThEY mET#  MAY AWAiT ME,";
30
                message[6] = "* BuT I WILL N0 LONG,ER#  RUN FRom YOU.";
31
                message[7] = "* ThAT CANN0N OF DE4TH#  YOU WIeLD iS STR0NG.. .";
32
                prt[0] = 3282;
33
                prt[1] = 3282;
34
                prt[2] = 3282;
35
                prt[3] = 3282;
36
                prt[4] = 3282;
37
                prt[5] = 3282;
38
                prt[6] = 3282;
39
                prt[7] = 3282;
40
            }
41
            else
42
            {
43
                message[0] = "* CoULDN'T GET us ALL,#  HUH?";
44
                message[1] = "* IT SE3MS MaNY BOTS#  EvADED Y0U.";
45
                message[2] = "* NoW_ I KN0W YOU WILL#  LE4VE ThIS PLaCE#  UNSATISFIED.";
46
                message[3] = "* BUT AS yOU CAN SEE, I#  AM STILL H3RE.";
47
                message[4] = "* WeLL, ,,";
48
                message[5] = "* I DECIdED I WILL N0#  LONG,ER RUN FRom YOU.";
49
                message[6] = "* ThAT CANN0N OF DE4TH#  YOU WIeLD iS STR0NG.. .";
50
                prt[0] = 3282;
51
                prt[1] = 3282;
52
                prt[2] = 3282;
53
                prt[3] = 3282;
54
                prt[4] = 3282;
55
                prt[5] = 3282;
56
                prt[6] = 3282;
57
            }
58
            position = 0;
59
        }
60
        break;
61
    case 4:
62
        cutscene_npc_walk(1166, obj_steamworks_35_trashcan.x + 20, obj_steamworks_35_trashcan.y - 1, 2, "x", "left");
63
        break;
64
    case 5:
65
        cutscene_wait(0.5);
66
        cutscene_advance(5.5);
67
        break;
68
    case 5.5:
69
        if (cutscene_npc_action_sprite(1166, 3549, 1, true))
70
        {
71
            obj_steamworks_35_trashcan.image_index = 1;
72
            obj_axis_npc.action_sprite = false;
73
            cutscene_npc_set_sprites(1166, 2592, 1728, 3681, 233, 488, 1728, 3681, 3415);
74
            cutscene_advance(6);
75
        }
76
        break;
77
    case 6:
78
        cutscene_npc_walk(1166, 700, 100, 3, "x", "down");
79
        break;
80
    case 7:
81
        cutscene_wait(0.5);
82
        break;
83
    case 8:
84
        cutscene_dialogue();
85
        with (msg)
86
        {
87
            talker[0] = 1166;
88
            if (global.geno_complete[4] == true)
89
            {
90
                message[0] = "* BUT AS you CAN SEE, . .";
91
                message[1] = "* I H4VE DRaWN A \"WEAP0n\"#  OF MY OWN_.";
92
                message[2] = "* NoW.. . AS THE K1DS#  SAY,";
93
                message[3] = "* COME AT ME.";
94
                prt[0] = 3282;
95
                prt[1] = 3282;
96
                prt[2] = 3282;
97
                prt[3] = 3282;
98
            }
99
            else
100
            {
101
                message[0] = "* BUT I H4VE DRaWN A#  \"WEAP0n\" OF MY OWN_.";
102
                message[1] = "* SO. ..";
103
                message[2] = "* WhY NOT TRY Y0UR LUCK?";
104
                prt[0] = 3282;
105
                prt[1] = 3282;
106
                prt[2] = 3282;
107
            }
108
            position = 0;
109
        }
110
        break;
111
    case 9:
112
        scr_audio_fade_out
scr_audio_fade_out

function scr_audio_fade_out(arg0, arg1) { var snd = arg0; var fade_len = arg1; if (!audio_is_playing(snd)) return false; audio_sound_gain(snd, 0, fade_len); if (instance_exists(obj_audio_fade_helper)) { with (obj_audio_fade_helper) { if (audio_to_fade == snd) return false; } } with (instance_create(0, 0, obj_audio_fade_helper)) audio_to_fade = snd; }
(cutscene_music, 650);
113
        cutscene_advance();
114
        break;
115
    case 10:
116
        cutscene_battle_initiate("axis genocide", true, true);
117
        cutscene_advance();
118
        break;
119
}