Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_29_controller_neutral_Step_0

(view raw script w/o annotations or w/e)
1
var gardener_talknoise = snd_talk_axis
2
audio_sound_pitch(gardener_talknoise, guardener_pitch)
3
switch scene
4
{
5
    case 0:
6
        if (obj_pl.y <= 370)
7
            cutscene_initialize()
8
        break
9
    case 1:
10
        cutscene_sfx_play(gardener_talknoise, 1)
11
        break
12
    case 2:
13
        obj_pl.direction = 90
14
        cutscene_advance()
15
        break
16
    case 3:
17
        cutscene_wait(0.5)
18
        break
19
    case 4:
20
        cutscene_audio_fade(obj_radio.current_song, 0, 1000, 0.2, false, true)
21
        break
22
    case 5:
23
        cutscene_camera_move(obj_pl.x, (obj_steamworks_29_gardener_bot.y + 20), 1)
24
        break
25
    case 6:
26
        cutscene_wait(0.5)
27
        break
28
    case 7:
29
        cutscene_dialogue()
30
        with (msg)
31
        {
32
            sndfnt = gardener_talknoise
33
            message[0] = "* I..."
34
            position = 0
35
        }
36
        break
37
    case 8:
38
        cutscene_wait(0.5)
39
        break
40
    case 9:
41
        obj_steamworks_29_gardener_bot.image_speed = 1
42
        audio_play_sound(snd_guardener_rise, 1, 0)
43
        cutscene_advance()
44
        break
45
    case 10:
46
        if (obj_steamworks_29_gardener_bot.image_index >= 28)
47
        {
48
            obj_steamworks_29_gardener_bot.image_speed = 0
49
            cutscene_wait(0.25)
50
        }
51
        break
52
    case 11:
53
        cutscene_dialogue()
54
        with (msg)
55
        {
56
            sndfnt = gardener_talknoise
57
            message[0] = "* AM..."
58
            message[1] = "* AWAKE."
59
            position = 0
60
        }
61
        break
62
    case 12:
63
        obj_steamworks_29_gardener_bot.image_speed = 1
64
        cutscene_advance()
65
        break
66
    case 13:
67
        if (obj_steamworks_29_gardener_bot.image_index >= (obj_steamworks_29_gardener_bot.image_number - 1) || obj_steamworks_29_gardener_bot.sprite_index == spr_steamworks_29_gardener_bot_idle)
68
        {
69
            obj_steamworks_29_gardener_bot.image_speed = 1
70
            obj_steamworks_29_gardener_bot.sprite_index = spr_steamworks_29_gardener_bot_idle
71
            cutscene_wait(0.25)
72
        }
73
        break
74
    case 14:
75
        cutscene_dialogue()
76
        with (msg)
77
        {
78
            sndfnt = gardener_talknoise
79
            message[0] = "* GUARDENER - MODEL 02 -_#  ST_ATUS, D_MAGED. .   ."
80
            position = 0
81
        }
82
        break
83
    case 15:
84
        cutscene_wait(0.5)
85
        break
86
    case 16:
87
        cutscene_dialogue()
88
        with (msg)
89
        {
90
            sndfnt_array[0] = gardener_talknoise
91
            color = true
92
            col_modif[0] = 255
93
            message[0] = "* OH, HE-HELLO THERE."
94
            message[1] = "* WAS IT YOU WHO DISTURBED THE#  FLOR-A? ?"
95
            message[2] = "* I ASK YOU TO PLEASE HAVE MORE#  _RESPECT."
96
            message[3] = "* BU-T DO NOT WORRY. _"
97
            message[4] = "* SEEING T;HAT YOU ARE SO#  Y-Y-OUNG, IT IS FORGI>ABLE."
98
            message[5] = "* I WILL REPORT THE_INCIDENT AS#  A LEVEL 3-03--__4LLEE"
99
            message[6] = "* EV-EL 10 OFFENSE."
100
            message_col[6][0] = "* EV-EL 10 OFFENSE."
101
            message[7] = "* LEVEL 10 MEANS - THE#  TERMINATION OF THE TRAMPLER."
102
            message[8] = "* FAREWELL."
103
            position = 0
104
            switch message_current
105
            {
106
                case 0:
107
                    noloop_message = 0
108
                    break
109
                case 6:
110
                    if (noloop_message < message_current)
111
                    {
112
                        noloop_message = message_current
113
                        scr_screenshake
scr_screenshake

function scr_screenshake(argument0, argument1) //gml_Script_scr_screenshake { if instance_exists(obj_screenshake_player) return; with (instance_create(__view_get((9 << 0), 0).x, __view_get((9 << 0), 0).y, obj_screenshake_player)) { alarm[0] intensity = argument1 } }
(6, 2)
114
                        audio_play_sound(snd_guardener_level10, 1, 0)
115
                        other.guardener_pitch = 0.25
116
                    }
117
                    message_timer = 60
118
                    skippable = false
119
                    break
120
                case 7:
121
                    skippable = true
122
                    message_timer = -1
123
                    break
124
            }
125
126
        }
127
        break
128
    case 17:
129
        instance_create_depth(170, (obj_pl.y + 10), (obj_pl.depth - 1), obj_steamworks_29_gardener_bot_fence)
130
        instance_create_depth(170, (obj_pl.y - 20), (obj_pl.depth + 1), obj_steamworks_29_gardener_bot_fence)
131
        cutscene_advance()
132
        break
133
    case 18:
134
        cutscene_wait(1.5)
135
        break
136
    case 19:
137
        cutscene_battle_initiate("guardener", true, true)
138
        instance_destroy()
139
        break
140
    case 20:
141
        cutscene_wait(1.5)
142
        guardener_pitch = 0.5
143
        break
144
    case 21:
145
        cutscene_dialogue()
146
        with (msg)
147
        {
148
            color = true
149
            col_modif[0] = 16711935
150
            sndfnt_array[0] = gardener_talknoise
151
            sndfnt_array[4] = 391
152
            sndfnt_array[5] = gardener_talknoise
153
            sndfnt_array[12] = 391
154
            sndfnt_array[13] = gardener_talknoise
155
            message[0] = "* I WAS ABOUT TO DO SOMETHING..#  ."
156
            message[1] = "* OH YES, I REMEMBER."
157
            message[2] = "* SENDING LEVEL 3 REPORT_"
158
            message[3] = "* ..."
159
            message[4] = "* [RESPONSE - NEGATIVE]"
160
            message_col[4][0] = "* [RESPONSE - NEGATIVE]"
161
            message[5] = "* I APOLOGIZE. ALLOW ME TO CALL#  AGAIN."
162
            message[6] = "* SENDING LEVEL 3 REPORT_"
163
            message[7] = "* HELLO? CREATOR?"
164
            message[8] = "* ARE YOU THERE?"
165
            message[9] = "* ..."
166
            message[10] = "* I BELIEVE MY CREATOR MAY BE#  PLAYING A \"PRACTICAL JOKE\" ON#  ME."
167
            message[11] = "* SIGNALING STEAMWORKS HEAD#  OFFICE_"
168
            message[12] = "* [BEEEEP - THE LINE YOU ARE#  CONTACTING HAS BEEN#  DISCONNECTED]"
169
            message_col[12][0] = "* [BEEEEP - THE LINE YOU ARE#  CONTACTING HAS BEEN#  DISCONNECTED]"
170
            message[13] = "* WHERE... WHERE IS EVERYBODY?"
171
            position = 0
172
        }
173
        break
174
    case 22:
175
        cutscene_action_sprite(780, 3630, 1, false, 0)
176
        break
177
    case 23:
178
        obj_steamworks_29_gardener_bot.sprite_index = spr_steamworks_29_gardener_bot_idle
179
        cutscene_advance()
180
        break
181
    case 24:
182
        cutscene_wait(0.5)
183
        break
184
    case 25:
185
        cutscene_dialogue()
186
        with (msg)
187
        {
188
            color = true
189
            col_modif[0] = 16711935
190
            sndfnt_array[0] = gardener_talknoise
191
            sndfnt_array[5] = 391
192
            sndfnt_array[6] = gardener_talknoise
193
            message[0] = "* OH... I HAVE ALLOWED IMMENSE#  OVERGROWTH."
194
            message[1] = "* I UNDERSTAND."
195
            message[2] = "* IT SEEMS... MY DAY HAS PASSED."
196
            message[3] = "* ..."
197
            message[4] = "* ...CANCEL REPORT AND#  REINITIATE HIBERNATION_"
198
            message[5] = "* [HIBERNATION SEQUENCE ENGAGED]"
199
            message_col[5][0] = "* [HIBERNATION SEQUENCE ENGAGED]"
200
            message[6] = "* I AM SORRY FOR INCONVENIENCING#  YOU."
201
            message[7] = "* I DO NOT KNOW WHAT THE WORLD#  IS LIKE NOW, NOR D-DO I WISH#  TO. //"
202
            position = 0
203
        }
204
        break
205
    case 26:
206
        audio_play_sound(snd_guardener_leave_1, 1, 0)
207
        obj_steamworks_29_gardener_bot.sprite_index = spr_steamworks_29_gardener_bot_leave
208
        obj_steamworks_29_gardener_bot.image_speed = 1
209
        obj_steamworks_29_gardener_bot.image_index = 0
210
        cutscene_advance()
211
        break
212
    case 27:
213
        if (obj_steamworks_29_gardener_bot.image_index >= 24)
214
        {
215
            obj_steamworks_29_gardener_bot.image_speed = 0
216
            cutscene_advance()
217
        }
218
        break
219
    case 28:
220
        cutscene_dialogue()
221
        with (msg)
222
        {
223
            sndfnt = gardener_talknoise
224
            message[0] = "* LIFE WAS. .. M-MUCH BETT>ER..."
225
            message[1] = "* _NOT ;KNOWING...  ."
226
            position = 0
227
        }
228
        break
229
    case 29:
230
        audio_play_sound(snd_guardener_leave_2, 1, 0)
231
        obj_steamworks_29_gardener_bot.image_speed = 1
232
        cutscene_advance()
233
        break
234
    case 30:
235
        if (obj_steamworks_29_gardener_bot.image_index >= (obj_steamworks_29_gardener_bot.image_number - 1))
236
        {
237
            obj_steamworks_29_gardener_bot.image_speed = 0
238
            cutscene_advance()
239
        }
240
        break
241
    case 31:
242
        cutscene_wait(0.5)
243
        break
244
    case 32:
245
        cutscene_camera_move(obj_pl.x, obj_pl.y, 2)
246
        break
247
    case 33:
248
        scr_radio_restart
scr_radio_restart

function scr_radio_restart() //gml_Script_scr_radio_restart { with (obj_radio) event_user(0) }
()
249
        global.sworks_flag[20] = 2
250
        camera_set_view_target(view_camera[0], 1031)
251
        instance_destroy(obj_steamworks_29_gardener_bot)
252
        audio_sound_pitch(snd_talk_axis, 1)
253
        cutscene_end()
254
        break
255
}