Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_robot_build_dialogue_confirm_Step_0

(view raw script w/o annotations or w/e)
1
scr_text
scr_text

function scr_text() { if (!instance_exists(obj_dialogue)) msg = instance_create(x, y, obj_dialogue); }
();
2
if (robot_item_number == 0)
3
{
4
    with (msg)
5
    {
6
        sndfnt = 108;
7
        message[0] = "* Perfect! You made#  nothing!";
8
        message[1] = "* At least put a LITTLE#  effort into this.";
9
        prt[0] = 384;
10
        prt[1] = 382;
11
    }
12
    if (!global.dialogue_open)
13
        instance_destroy();
14
}
15
else
16
{
17
    with (msg)
18
    {
19
        sndfnt = 108;
20
        message[0] = "* All done?";
21
        prt[0] = 370;
22
        ch[1] = "Yeah";
23
        ch[2] = "Nah";
24
        ch_msg = 0;
25
        if (outcome == 1)
26
        {
27
            switch (other.robot_item_number)
28
            {
29
                case 1:
30
                    message[1] = "* Outstanding work.#  Really.";
31
                    prt[1] = 384;
32
                    break;
33
                case 2:
34
                    message[1] = "* You reeally stretched#  yourself on this one,#  huh.";
35
                    prt[1] = 382;
36
                    break;
37
                case 3:
38
                case 4:
39
                case 5:
40
                    message[1] = "* It's simple but#  recognizable. Not bad.";
41
                    prt[1] = 377;
42
                    break;
43
                case 6:
44
                case 7:
45
                case 8:
46
                    message[1] = "* Hmm... It's a little#  busy but should work.";
47
                    prt[1] = 370;
48
                    break;
49
                case 9:
50
                case 10:
51
                case 11:
52
                    message[1] = "* Um, I'm not sure about#  this design but okay...";
53
                    prt[1] = 388;
54
                    break;
55
                case 12:
56
                    message[1] = "* It's uh... something#  alright. I'm sure Axis#  will love it...";
57
                    prt[1] = 3754;
58
                    break;
59
            }
60
        }
61
        if (outcome == 2)
62
        {
63
            instance_destroy(other);
64
            exit;
65
        }
66
    }
67
    if (!global.dialogue_open)
68
    {
69
        instance_destroy();
70
        obj_robot_build_controller.destroy_self = true;
71
        scr_audio_fade_out
scr_audio_fade_out

function scr_audio_fade_out(arg0, arg1) { var snd = arg0; var fade_len = arg1; 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; }
(218, 800);
72
    }
73
}