Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_chairiel_Step_0

(view raw script w/o annotations or w/e)
1
if (is_reading == false)
2
{
3
    if (pause_time > 0)
4
    {
5
        pause_time--;
6
    }
7
    else
8
    {
9
        pause_time = pause_time_max;
10
        image_speed = 1;
11
        is_reading = true;
12
    }
13
}
14
else if (reading_time > 0)
15
{
16
    reading_time--;
17
}
18
else
19
{
20
    reading_time = irandom_range(30, 120);
21
    is_reading = false;
22
    image_speed = 0;
23
    image_index = 0;
24
}
25
if (floor(image_index) == 1 && talk_noloop == false && can_talk == true)
26
{
27
    var talk_noise = audio_play_sound(sndfnt_toriel, 1, 0);
28
    audio_sound_gain(talk_noise, 0.2, 0);
29
    talk_noloop = true;
30
}
31
if (floor(image_index) == 0)
32
    talk_noloop = false;