Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_tenna_tv_time_Step_0

(view raw script w/o annotations or w/e)
1
if (!show_text)
2
    exit;
3
if (con == 0)
4
{
5
    con = 5;
6
    tv_sound = snd_play_pitch(snd_its_tv_time, tv_pitch);
7
    is_active = true;
8
}
9
if (con == 5)
10
{
11
    text_timer++;
12
    if (text_timer >= ((timestamps[timestamp_index] * 30) / tv_pitch))
13
    {
14
        con = 10;
15
        if (timestamp_index < array_length_1d(timestamps))
16
            timestamp_index++;
17
    }
18
}
19
if (con == 10)
20
{
21
    tv_max++;
22
    
scr_var_delay
scr_var_delay

function
scr_var_delay(arg0, arg1, arg2)
{
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_var_delayed(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
} function scr_delay_var(arg0, arg1, arg2) {
scr_script_delayed(scr_var, arg2, arg0, arg1);
}
("lights_max", lights_max - 1, 4 / tv_pitch);
23
    if (tv_max == 4)
24
        con = 20;
25
    else
26
        con = 5;
27
}
28
if (con == 20)
29
{
30
    con = 21;
31
    if (!intro_mode)
32
        alarm[0]
 = 90;
gml_Object_obj_tenna_tv_time_Alarm_0.gml

con++;
33
}
34
if (con == 22)
35
{
36
    con = 0;
37
    timestamp_index = 0;
38
    show_text = false;
39
    is_active = false;
40
    text_timer = 0;
41
    snd_free(51);
42
}