Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_town_diner_Step_0

(view raw script w/o annotations or w/e)
1
if (global.chapter == 4)
2
{
3
    if (nicecream_turn)
4
    {
5
        if (!nicecream_talk)
6
        {
7
            nicecream_turn_timer++;
8
            if (nicecream_turn_timer == 45)
9
            {
10
                with (nicecream)
11
                    image_index = 1;
12
            }
13
            if (nicecream_turn_timer == 105)
14
            {
15
                nicecream_turn_timer = 0;
16
                with (nicecream)
17
                    image_index = 0;
18
            }
19
        }
20
    }
21
    if (bratty_turn)
22
    {
23
        if (bratty_talk)
24
        {
25
            if (!d_ex())
26
            {
27
                bratty_talk = false;
28
                nicecream_talk = false;
29
            }
30
            else
31
            {
32
                with (bratty)
33
                    image_index = 0;
34
                with (nicecream)
35
                    image_index = 0;
36
                exit;
37
            }
38
        }
39
        bratty_turn_timer++;
40
        if (bratty_turn_timer == 120)
41
        {
42
            with (bratty)
43
                image_index = 1;
44
        }
45
        if (bratty_turn_timer == 180)
46
        {
47
            bratty_turn_timer = 0;
48
            with (bratty)
49
                image_index = 0;
50
        }
51
    }
52
}