Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_23_controller_neutral_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.x < 595)
7
        {
8
            instance_create(580, 215, obj_flowey_npc)
9
            obj_flowey_npc.action_sprite = true
10
            obj_flowey_npc.sprite_index = spr_floweyrise
11
            obj_flowey_npc.image_speed = 0.2
12
            obj_determination.image_alpha = 0
13
            obj_pl.direction = 90
14
            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 }
()
15
            cutscene_advance()
16
        }
17
        break
18
    case 1:
19
        if (obj_flowey_npc.image_index >= (obj_flowey_npc.image_number - 1))
20
        {
21
            obj_flowey_npc.action_sprite = false
22
            obj_flowey_npc.npc_direction = "down"
23
            cutscene_advance()
24
        }
25
        break
26
    case 2:
27
        cutscene_wait(0.75)
28
        break
29
    case 3:
30
        cutscene_dialogue()
31
        with (msg)
32
        {
33
            if (global.route == 1 && global.geno_complete[3] == false)
34
            {
35
                talker[0] = 3194
36
                message[0] = "* Howdy!"
37
                message[1] = "* I know I usually let you#  handle imminent threats#  but..."
38
                message[2] = "* ...You really looked#  cornered back there!"
39
                message[3] = "* My friendliness pellets#  sure come in handy in#  tight spots!"
40
                message[4] = "* Anyway, you must be#  totally out of breath#  after that."
41
                message[5] = "* You should take it easy#  for a while, pal!"
42
                message[6] = "* Grab a snack, hydrate,#  won't bother me!"
43
                message[7] = "* Need to be in tip-top#  shape for what's coming!"
44
                prt[0] = 348
45
                prt[1] = 347
46
                prt[2] = 357
47
                prt[3] = 348
48
                prt[4] = 348
49
                prt[5] = 348
50
                prt[6] = 347
51
                prt[7] = 3251
52
            }
53
            else
54
            {
55
                talker[0] = 3194
56
                message[0] = "* ..."
57
                message[1] = "* Can I be real with you?"
58
                message[2] = "* I'm gonna be real with#  you."
59
                message[3] = "* I get it. Stomping#  around, full of anger,#  boredom..."
60
                message[4] = "* Laying waste to#  everything in your path#  - we all have hobbies."
61
                message[5] = "* But, heh, come on..."
62
                message[6] = "* How is this forwarding#  your cause?"
63
                message[7] = "* These aren't monsters."
64
                message[8] = "* As far as I'm concerned#  they're barely even#  conscious."
65
                message[9] = "* We don't have time for#  this little joyride of#  yours."
66
                message[10] = "* In my opinion, of#  course!"
67
                message[11] = "* ..."
68
                message[12] = "* ..."
69
                message[13] = "* Fine, we can talk later#  I guess."
70
                prt[0] = 353
71
                prt[1] = 352
72
                prt[2] = 352
73
                prt[3] = 353
74
                prt[4] = 352
75
                prt[5] = 357
76
                prt[6] = 352
77
                prt[7] = 353
78
                prt[8] = 352
79
                prt[9] = 3692
80
                prt[10] = 348
81
                prt[11] = 347
82
                prt[12] = 352
83
                prt[13] = 3122
84
            }
85
        }
86
        break
87
    case 4:
88
        cutscene_npc_action_sprite(3194, 245, 0.2, true)
89
        break
90
    case 5:
91
        instance_destroy(obj_flowey_npc)
92
        global.sworks_flag[15] = 1
93
        obj_determination.image_alpha = 1
94
        cutscene_end()
95
        break
96
}