Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_talking_text_color

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

function scr_talking_text_color() //gml_Script_scr_talking_text_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_footsteps_water_1) audio_play_sound(snd_footsteps_water_1, 20, false) } } break default: audio_stop_sound(snd_footsteps_water_1) audio_play_sound(snd_footsteps_water_1, 20, false) } } break default: audio_stop_sound(snd_footsteps_water_1) audio_play_sound(snd_footsteps_water_1, 20, false) } can_talk = true }
() //gml_Script_scr_talking_text_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_footsteps_water_1)
22
                                    audio_play_sound(snd_footsteps_water_1, 20, false)
23
                            }
24
25
                        }
26
                        break
27
                    default:
28
                        audio_stop_sound(snd_footsteps_water_1)
29
                        audio_play_sound(snd_footsteps_water_1, 20, false)
30
                }
31
32
            }
33
            break
34
        default:
35
            audio_stop_sound(snd_footsteps_water_1)
36
            audio_play_sound(snd_footsteps_water_1, 20, false)
37
    }
38
39
    can_talk = true
40
}