Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_29_controller_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.y <= 440)
7
        {
8
            scr_cutscene_start
scr_cutscene_start

function scr_cutscene_start() //gml_Script_scr_cutscene_start { global.cutscene = true obj_pl.state = gml_Script_scr_frozen_state obj_pl.image_index = 0 obj_pl.image_speed = 0 }
()
9
            cutscene_instance_create(obj_pl.x, obj_pl.y, obj_player_npc)
10
        }
11
        break
12
    case 1:
13
        cutscene_camera_move(170, 300, 3)
14
        break
15
    case 2:
16
        obj_player_npc.x = 170
17
        cutscene_dialogue()
18
        with (msg)
19
        {
20
            talker[0] = 1166
21
            message[0] = "* ST4Y pUT, OK?"
22
            message[1] = "* YoUR'E s-SAFE."
23
            prt[0] = 3282
24
            prt[1] = 3282
25
            position = 0
26
        }
27
        break
28
    case 3:
29
        cutscene_npc_walk(1166, obj_axis_npc.x, 0, 4, "y", "up")
30
        cutscene_advance()
31
        break
32
    case 4:
33
        cutscene_wait(0.5)
34
        break
35
    case 5:
36
        cutscene_npc_walk(1168, obj_player_npc.x, 380, 2, "y", "up")
37
        break
38
    case 6:
39
        audio_play_sound(snd_encounter, 1, 0)
40
        instance_create(170, (obj_steamworks_29_gardener_bot.y - 30), obj_cutscene_ex)
41
        cutscene_advance()
42
        break
43
    case 7:
44
        cutscene_wait(0.7)
45
        break
46
    case 8:
47
        instance_destroy(obj_cutscene_ex)
48
        obj_steamworks_29_gardener_bot.image_speed = 1
49
        if (obj_steamworks_29_gardener_bot.image_index >= (obj_steamworks_29_gardener_bot.image_number - 1))
50
        {
51
            obj_steamworks_29_gardener_bot.image_index = obj_steamworks_29_gardener_bot.image_number - 1
52
            obj_steamworks_29_gardener_bot.image_speed = 0
53
            cutscene_advance()
54
        }
55
        break
56
    case 9:
57
        cutscene_wait(1)
58
        break
59
    case 10:
60
        cutscene_camera_move(obj_pl.x, obj_pl.y, 2)
61
        break
62
    case 11:
63
        cutscene_camera_reset()
64
        cutscene_end()
65
        instance_destroy(obj_steamworks_29_gardener_bot)
66
        instance_destroy(obj_axis_npc)
67
        global.sworks_flag[20] = 1
68
        break
69
}