Deltarune (Chapter 1) script viewer

← back to main script listing

gml_Object_obj_darkphone_event_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    con = 1;
4
    alarm[4]
 = 40;
gml_Object_obj_darkphone_event_Alarm_4.gml

con += 1;
5
}
6
if (con == 1)
7
    global.interact = 1;
8
if (con == 2)
9
{
10
    sndplay = 0;
11
    if (snd_is_playing(global.currentsong[1]))
12
    {
13
        sndplay = 1;
14
        snd_pause(global.currentsong[1]);
15
    }
16
    snd_play(snd_smile);
17
    con = 3;
18
    alarm[4]
 = 200;
gml_Object_obj_darkphone_event_Alarm_4.gml

con += 1;
19
}
20
if (con == 4)
21
{
22
    with (obj_dialoguer)
23
        instance_destroy();
24
    with (obj_writer)
25
        instance_destroy();
26
    con = 7;
27
}
28
if (con == 7)
29
{
30
    snd_stop(snd_smile);
31
    if (sndplay == 1)
32
        snd_resume(global.currentsong[1]);
33
    global.msg[0] = 
* But it doesn't seem to be working.Wait for inputClose Message
scr_84_get_lang_string
scr_84_get_lang_string

function
scr_84_get_lang_string(arg0)
{ return ds_map_find_value(global.lang_map, arg0); }
("obj_darkphone_event_slash_Step_0_gml_42_0")
;
34
    instance_create(0, 0, obj_dialoguer);
35
    con = 5;
36
    global.interact = 6;
37
    instance_destroy();
38
}