Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_talking_toriel_1_color

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

function scr_talking_toriel_1_color() //gml_Script_scr_talking_toriel_1_color { switch current_char { case " ": case "*": if (color_count >= 1) { switch current_char_2 { case " ": case "*": if (color_count >= 2) { switch current_char_3 { case " ": case "*": break default: audio_stop_sound(snd_talk_toriel_1) audio_play_sound(snd_talk_toriel_1, 20, false) } } break default: audio_stop_sound(snd_talk_toriel_1) audio_play_sound(snd_talk_toriel_1, 20, false) } } break default: audio_stop_sound(snd_talk_toriel_1) audio_play_sound(snd_talk_toriel_1, 20, false) } switch current_char { case ".": case ",": case "?": case "!": break default: if (color_count >= 1) { switch current_char_2 { case ".": case ",": case "?": case "!": break default: if (color_count >= 2) { switch current_char_3 { case ".": case ",": case "?": case "!": break default: can_talk = true } break } else can_talk = true } break } else can_talk = true } }
() //gml_Script_scr_talking_toriel_1_color
2
{
3
    switch current_char
4
    {
5
        case " ":
6
        case "*":
7
            if (color_count >= 1)
8
            {
9
                switch current_char_2
10
                {
11
                    case " ":
12
                    case "*":
13
                        if (color_count >= 2)
14
                        {
15
                            switch current_char_3
16
                            {
17
                                case " ":
18
                                case "*":
19
                                    break
20
                                default:
21
                                    audio_stop_sound(snd_talk_toriel_1)
22
                                    audio_play_sound(snd_talk_toriel_1, 20, false)
23
                            }
24
25
                        }
26
                        break
27
                    default:
28
                        audio_stop_sound(snd_talk_toriel_1)
29
                        audio_play_sound(snd_talk_toriel_1, 20, false)
30
                }
31
32
            }
33
            break
34
        default:
35
            audio_stop_sound(snd_talk_toriel_1)
36
            audio_play_sound(snd_talk_toriel_1, 20, false)
37
    }
38
39
    switch current_char
40
    {
41
        case ".":
42
        case ",":
43
        case "?":
44
        case "!":
45
            break
46
        default:
47
            if (color_count >= 1)
48
            {
49
                switch current_char_2
50
                {
51
                    case ".":
52
                    case ",":
53
                    case "?":
54
                    case "!":
55
                        break
56
                    default:
57
                        if (color_count >= 2)
58
                        {
59
                            switch current_char_3
60
                            {
61
                                case ".":
62
                                case ",":
63
                                case "?":
64
                                case "!":
65
                                    break
66
                                default:
67
                                    can_talk = true
68
                            }
69
70
                            break
71
                        }
72
                        else
73
                            can_talk = true
74
                }
75
76
                break
77
            }
78
            else
79
                can_talk = true
80
    }
81
82
}