Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_cutscene_starlo_post_fight_neutral_Step_0

(view raw script w/o annotations or w/e)
1
if instance_exists(obj_ceroba_npc)
2
    var actor_ceroba = obj_ceroba_npc
3
if instance_exists(obj_player_npc)
4
    var actor_clover = obj_player_npc
5
switch scene
6
{
7
    case 17:
8
        cutscene_wait(1)
9
        break
10
    case 18:
11
        cutscene_dialogue()
12
        with (msg)
13
        {
14
            talker[0] = actor_ceroba
15
            message[0] = "* Hey! Clover!"
16
            prt[0] = 370
17
        }
18
        break
19
    case 19:
20
        cutscene_npc_direction(actor_clover, "down")
21
        break
22
    case 20:
23
        cutscene_npc_walk(actor_ceroba, actor_clover.x, (actor_clover.y + 40), 3, "x", "up")
24
        break
25
    case 21:
26
        cutscene_dialogue()
27
        with (msg)
28
        {
29
            position = 1
30
            ch_msg = 0
31
            ch[1] = "No"
32
            ch[2] = "I'm sorry"
33
            talker[0] = actor_ceroba
34
            message[0] = "* Have you seen Starlo?"
35
            prt[0] = 370
36
            if (outcome == 1)
37
            {
38
                message[1] = "* Didn't think so..."
39
                prt[1] = 394
40
            }
41
            if (outcome == 2)
42
            {
43
                message[1] = "* It wasn't your fault#  this happened. Don't#  apologize."
44
                message[2] = "* I gotta find out where#  he went."
45
                prt[1] = 377
46
                prt[2] = 394
47
            }
48
            if (outcome != 0)
49
            {
50
                var message_last = array_length(message) - 1
51
                message[(message_last + 1)] = "* I haven't seen him#  anywhere since the#  breakup."
52
                message[(message_last + 2)] = "* That's the most upset#  he's been in quite some#  time. I'm worried."
53
                message[(message_last + 3)] = "* ..."
54
                message[(message_last + 4)] = "* I'll speak to his#  family up ahead, maybe#  they know something."
55
                message[(message_last + 5)] = "* See you later."
56
                prt[(message_last + 1)] = 370
57
                prt[(message_last + 2)] = 394
58
                prt[(message_last + 3)] = 394
59
                prt[(message_last + 4)] = 370
60
                prt[(message_last + 5)] = 370
61
            }
62
        }
63
        break
64
    case 22:
65
        cutscene_npc_walk_relative(actor_clover, -40, 0, 3, "x", "right")
66
    case 23:
67
        cutscene_npc_walk(actor_ceroba, actor_ceroba.x, -40, 3, "y", "up")
68
        if (actor_ceroba.y < (actor_clover.y - 20))
69
            actor_clover.npc_direction = "up"
70
        break
71
    case 24:
72
        cutscene_npc_walk_relative(actor_clover, 40, 0, 3, "x", "up")
73
    case 25:
74
        cutscene_wait(1)
75
        break
76
    case 26:
77
        cutscene_dialogue()
78
        with (msg)
79
        {
80
            sndfnt = 102
81
            message[0] = "* Clover! Clover!"
82
            prt[0] = 318
83
        }
84
        actor_clover.npc_direction = "down"
85
        break
86
    case 27:
87
        cutscene_instance_create(obj_pl.x, ((__view_get((1 << 0), 0)) + (__view_get((2 << 0), 0)) + 50), obj_martlet_npc)
88
        break
89
    case 28:
90
        cutscene_npc_walk(1164, 160, 220, 3, "x", "up")
91
        break
92
    case 29:
93
        cutscene_dialogue()
94
        with (msg)
95
        {
96
            sndfnt = 102
97
            message[0] = "* Was that Ceroba?"
98
            message[1] = "* I wonder where she's#  off to in such a hurry?"
99
            message[2] = "* -Oh yeah, hi!"
100
            message[3] = "* So I have good news and#  bad news."
101
            message[4] = "* I'll start with the#  good:"
102
            message[5] = "* Ceroba, an old#  acquaintance of mine,#  freed me!"
103
            message[6] = "* I can see that you two#  have already met."
104
            message[7] = "* She knows I won't tell#  ASGORE about this, so no#  worries!"
105
            message[8] = "* Now that that's taken#  care of... the bad news."
106
            message[9] = "* I'm about to go back on#  my word, sadly."
107
            message[10] = "* I know I JUST said I#  wouldn't leave your side#  but then... ya know... 	"
108
            message[11] = "* ...This crazy detour#  happened."
109
            message[12] = "* I also realize I threw#  my job to the wind to#  travel with you but..."
110
            message[13] = "* Since the imprisonment#  took up so much time, I#  have to go back."
111
            message[14] = "* If I don't at LEAST#  clock in,"
112
            message[15] = "* the Royal Guard#  will grow suspicious!"
113
            message[16] = "* Plus, Ava is totalled.#  It was their property."
114
            message[17] = "* I'll only be gone for a#  moment to fix my#  mistakes!"
115
            message[18] = "* Trust me, this will#  help you in the long#  run!"
116
            message[19] = "* And I know you're tough#  enough to handle#  yourself.	"
117
            message[20] = "* I'll send ya a message#  where to meet back up,#  alright?"
118
            message[21] = "* Again, I'm#  so-so-so-SO sorry about#  this but I'll cya later!"
119
            prt[0] = 311
120
            prt[1] = 324
121
            prt[2] = 333
122
            prt[3] = 320
123
            prt[4] = 321
124
            prt[5] = 318
125
            prt[6] = 318
126
            prt[7] = 328
127
            prt[8] = 317
128
            prt[9] = 320
129
            prt[10] = 333
130
            prt[11] = 321
131
            prt[12] = 329
132
            prt[13] = 321
133
            prt[14] = 321
134
            prt[15] = 321
135
            prt[16] = 323
136
            prt[17] = 321
137
            prt[18] = 328
138
            prt[19] = 328
139
            prt[20] = 312
140
            prt[21] = 323
141
            position = 1
142
        }
143
        break
144
    case 30:
145
        cutscene_npc_walk(1164, obj_martlet_npc.x, ((__view_get((1 << 0), 0)) + (__view_get((2 << 0), 0)) + 50), 4, "x", "down")
146
        break
147
    case 31:
148
        cutscene_camera_move(obj_pl.x, obj_pl.y, 1)
149
        break
150
    case 32:
151
        scr_cutscene_end
scr_cutscene_end

function scr_cutscene_end() //gml_Script_scr_cutscene_end { global.cutscene = false obj_pl.alarm[0] = 1 }
()
152
        camera_set_view_target(view_camera[0], 1031)
153
        global.dunes_flag[39] = 1
154
        ds_list_clear(global.encounter_list)
155
        scene = -1
156
        instance_destroy(actor_clover)
157
        instance_destroy(obj_martlet_npc)
158
        instance_destroy(actor_ceroba)
159
        instance_destroy()
160
        break
161
}