Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_wild_east_cutscene_02_Step_0

(view raw script w/o annotations or w/e)
1
var starlo = obj_starlo_npc
2
var ed = obj_ed_npc
3
var mooch = obj_mooch_npc
4
var moray = obj_moray_npc
5
var ace = obj_ace_npc
6
var clover_npc = obj_player_npc
7
switch scene
8
{
9
    case 0:
10
        if (!audio_is_playing(mus_feisty))
11
        {
12
            audio_sound_gain(obj_radio.current_song, 0, 0)
13
            audio_play_sound(mus_feisty, 10, 1)
14
        }
15
        __view_set((9 << 0), 0, starlo)
16
        with (starlo)
17
        {
18
            if (image_alpha < 1)
19
                image_alpha += 0.1
20
            else
21
            {
22
                x_dest[0] = x
23
                y_dest[0] = 270
24
                x_dest[1] = 640
25
                y_dest[1] = y_dest[0]
26
                x_dest[2] = 720
27
                y_dest[2] = 375
28
                axis_override = "y"
29
                end_direction = "down"
30
                can_walk = true
31
                actor_speed = 3
32
                other.scene++
33
                other.timer = 20
34
            }
35
        }
36
        break
37
    case 1:
38
        if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
39
            return;
40
        with (clover_npc)
41
        {
42
            if (image_alpha < 1)
43
                image_alpha += 0.1
44
            else
45
            {
46
                x_dest[0] = x
47
                y_dest[0] = 270
48
                x_dest[1] = 640
49
                y_dest[1] = y_dest[0]
50
                x_dest[2] = 700
51
                y_dest[2] = 375
52
                axis_override = "y"
53
                end_direction = "down"
54
                can_walk = true
55
                actor_speed = 3
56
                other.scene++
57
                other.timer = 15
58
            }
59
        }
60
        break
61
    case 2:
62
        if ((!starlo.npc_arrived) || (!clover_npc.npc_arrived) || (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
()))
63
            return;
64
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
65
        with (msg)
66
        {
67
            sndfnt = 107
68
            talker[0] = starlo
69
            message[0] = "* Alright, everyone! Come# 'ere!"
70
            prt[0] = 417
71
        }
72
        if (!global.dialogue_open)
73
            scene++
74
        break
75
    case 3:
76
        with (ace)
77
        {
78
            x_dest[0] = 640
79
            y_dest[0] = 375
80
            actor_speed = 3
81
            axis_override = "x"
82
            can_walk = true
83
            end_direction = "right"
84
        }
85
        with (mooch)
86
        {
87
            x_dest[0] = 680
88
            y_dest[0] = 440
89
            actor_speed = 3
90
            axis_override = "y"
91
            can_walk = true
92
            end_direction = "up"
93
        }
94
        with (ed)
95
        {
96
            x_dest[0] = 760
97
            y_dest[0] = 440
98
            actor_speed = 3
99
            can_walk = true
100
            end_direction = "up"
101
        }
102
        with (moray)
103
        {
104
            x_dest[0] = 800
105
            y_dest[0] = 375
106
            actor_speed = 3
107
            can_walk = true
108
            end_direction = "left"
109
        }
110
        scene++
111
        timer = 45
112
        break
113
    case 4:
114
        if (moray.npc_arrived && ed.npc_arrived && mooch.npc_arrived && ace.npc_arrived)
115
        {
116
            if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
117
                return;
118
            scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
119
            with (msg)
120
            {
121
                talker[0] = mooch
122
                message[0] = "* Watcha want, boss?"
123
                prt[0] = 455
124
                talker[1] = moray
125
                message[1] = "* Oooh, are we going to#  begin training with#  Clover?"
126
                prt[1] = 445
127
                talker[2] = starlo
128
                message[2] = "* Precisely, Moray!"
129
                message[3] = "* I thought we'd start#  with a classic game that#  involves pacin'."
130
                prt[2] = 417
131
                prt[3] = 424
132
                talker[4] = ed
133
                message[4] = "* You mean what I see#  you doin' every night#  outside the house?"
134
                message[5] = "* Back and forth,#  whispering to#  yourself..."
135
                prt[4] = 454
136
                prt[5] = 453
137
                talker[6] = starlo
138
                message[6] = "* What? I don't do that!"
139
                message[7] = "* Some monsters have#  unique ways of gettin'#  their thoughts out."
140
                message[8] = "* Other... monsters."
141
                message[9] = "* ..."
142
                message[10] = "* Ahem."
143
                message[11] = "* Can anyone CORRECTLY#  guess what game I'm#  hintin' at?"
144
                prt[6] = 412
145
                prt[7] = 407
146
                prt[8] = 410
147
                prt[9] = 428
148
                prt[10] = 415
149
                prt[11] = 417
150
                talker[12] = mooch
151
                message[12] = "* Oh! Oh! I know!"
152
                prt[12] = 458
153
                talker[13] = starlo
154
                message[13] = "* Yes, Mooch."
155
                prt[13] = 417
156
                talker[14] = mooch
157
                message[14] = "* A DUEL!"
158
                prt[14] = 463
159
                talker[15] = starlo
160
                message[15] = "* Bingo!"
161
                prt[15] = 422
162
            }
163
            if (!global.dialogue_open)
164
            {
165
                scene++
166
                audio_sound_gain(mus_feisty, 0, 300)
167
                timer = 30
168
            }
169
        }
170
        break
171
    case 5:
172
        if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
173
            return;
174
        cutscene_event_wildeast_stamp(spr_wild_east_stamp_1, 253, 150, 10, 50)
175
        break
176
    case 6:
177
        audio_sound_gain(mus_feisty, 1, 300)
178
        timer = 30
179
        scene++
180
        break
181
    case 7:
182
        if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
183
            return;
184
        scr_text
scr_text

function scr_text() //gml_Script_scr_text { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue) }
()
185
        with (msg)
186
        {
187
            color = true
188
            col_modif[0] = make_color_rgb(111, 104, 145)
189
            talker[0] = ace
190
            message[0] = "* No, no. This is all#  wrong."
191
            prt[0] = 435
192
            talker[1] = moray
193
            message[1] = "* Oh? What's the matter?"
194
            prt[1] = 449
195
            talker[2] = ace
196
            message[2] = "* Clover doesn't... look#  right."
197
            message[3] = "* Look at their hat. It's#  tattered and practically#  decomposing."
198
            message[4] = "* And that iron in their#  holster. What kinda#  peashooter is that?"
199
            prt[2] = 435
200
            prt[3] = 437
201
            prt[4] = 435
202
            talker[5] = ed
203
            message[5] = "* Cool it, Ace. I'm sure#  they tried their best."
204
            message_col[5][0] = "           Ace                                   "
205
            prt[5] = 453
206
            talker[6] = starlo
207
            message[6] = "* No, Ace has a point!"
208
            message[7] = "* What kinda host am I if#  I don't spoil you with#  gifts?"
209
            message[8] = "* To the weapon store!"
210
            prt[6] = 419
211
            prt[7] = 417
212
            prt[8] = 422
213
        }
214
        if (!global.dialogue_open)
215
        {
216
            audio_sound_gain(mus_feisty, 0, 600)
217
            timer = 20
218
            scene++
219
        }
220
        break
221
    case 8:
222
        if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
223
            return;
224
        cutscene_event_wildeast_stamp(spr_wild_east_stamp_1_5, 254, 120, 5, 1)
225
        break
226
    case 9:
227
        cutscene_camera_freeze()
228
        scr_audio_fade_out
scr_audio_fade_out

function scr_audio_fade_out(argument0, argument1) //gml_Script_scr_audio_fade_out { var snd = argument0 var fade_len = argument1 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 }
(mus_feisty, 1)
229
        timer = 30
230
        break
231
    case 10:
232
        if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
233
            return;
234
        with (starlo)
235
        {
236
            actor_speed = 3
237
            x_dest[0] = x + 200
238
            y_dest[0] = y + 30
239
            axis_override = "y"
240
            can_walk = true
241
        }
242
        timer = 10
243
        scene++
244
        break
245
    case 11:
246
        if (!scr_timer
scr_timer

function scr_timer() //gml_Script_scr_timer { if (timer > 0) { timer-- return false; } else return true; }
())
247
            return;
248
        with (clover_npc)
249
        {
250
            actor_speed = 3
251
            x_dest[0] = x + 220
252
            y_dest[0] = y + 30
253
            axis_override = "y"
254
            can_walk = true
255
        }
256
        scene++
257
        break
258
    case 12:
259
        if (clover_npc.npc_arrived == true)
260
        {
261
            trn = instance_create(0, 0, obj_transition)
262
            trn.newRoom = 133
263
            trn.xx = 40
264
            trn.yy = 440
265
            instance_destroy()
266
        }
267
        break
268
}