Undertale script viewer

← back to main script listing

gml_Object_obj_napstablookdate_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 1)
2
{
3
    con = 2;
4
    alarm[4] = 20;
5
}
6
if (con == 3)
7
{
8
    nap.direction = 270;
9
    bl = instance_create(nap.x + 2, nap.y - 10, obj_cosmeticblcon);
10
    con = 4;
11
    alarm[4] = 30;
12
}
13
if (con == 5)
14
{
15
    with (bl)
16
        instance_destroy();
17
    con = 6;
18
    alarm[4] = 20;
19
}
20
if (con == 7)
21
{
22
    global.msg[0] = 
* oh...Delay 11 hey...Delay 11 you...Delay 11Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_napstablookdate_158")
;
23
    global.msg[1] = 
* followed me...Delay 11
* into my house...Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_napstablookdate_159")
;
24
    global.msg[2] = 
* ...Delay 11
* m-make yourself at home???Wait for inputClose MessageClose Message
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_napstablookdate_160")
;
25
    if (global.flag[36 spared_napstablook] > 0)
26
    {
27
        global.msg[0] = 
* oh...Delay 11
* you really came...Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_napstablookdate_163")
;
28
        global.msg[1] = 
* sorry,Delay 11 i...
* wasn't expecting that.Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_napstablookdate_164")
;
29
        global.msg[2] = 
* it's not much,Delay 11 but make
yourself at home.Wait for inputClose MessageClose Message
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_napstablookdate_165")
;
30
    }
31
    global.flag[93 dated_napstablook] = 1;
32
    scr_regulartext
scr_regulartext

global.typer = 5; global.facechoice = 0; global.faceemotion = 0; global.msc = 0; instance_create(0, 0, obj_dialoguer);
();
33
    con = 8;
34
}
35
if (con == 8 && instance_exists(OBJ_WRITER) == 0)
36
{
37
    global.interact = 0;
38
    con = 9;
39
    if (global.flag[36 spared_napstablook] <= 0)
40
        nap.direction = 90;
41
}
42
if (con == 11 && instance_exists(OBJ_WRITER) == 0)
43
{
44
    global.interact = 1;
45
    nap.direction = 180;
46
    con = 12;
47
    alarm[4] = 20;
48
}
49
if (con == 12)
50
    global.interact = 1;
51
if (con == 13)
52
{
53
    global.msg[0] = 
* oh...Delay 11 are you hungry...Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_napstablookdate_192")
;
54
    global.msg[1] = 
* i can get you something
to eat...Wait for inputClose MessageClose Message
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_napstablookdate_193")
;
55
    scr_regulartext
scr_regulartext

global.typer = 5; global.facechoice = 0; global.faceemotion = 0; global.msc = 0; instance_create(0, 0, obj_dialoguer);
();
56
    con = 14;
57
}
58
if (con == 14 && instance_exists(OBJ_WRITER) == 0)
59
{
60
    nap.hspeed = -2;
61
    con = 15;
62
    alarm[4] = 30;
63
}
64
if (con == 16)
65
{
66
    obj_mainchara.vspeed = 3;
67
    obj_mainchara.image_speed = 0.25;
68
    con = 17;
69
    alarm[4] = 10;
70
}
71
if (con == 18)
72
{
73
    obj_mainchara.image_speed = 0;
74
    obj_mainchara.image_index = 0;
75
    obj_mainchara.vspeed = 0;
76
    con = 19;
77
    alarm[4] = 26;
78
}
79
if (con == 20)
80
{
81
    nap.hspeed = 0;
82
    nap.direction = 90;
83
    nap.vspeed = -2;
84
    con = 21;
85
    alarm[4] = 10;
86
}
87
if (con == 22)
88
{
89
    nap.vspeed = 0;
90
    nap.direction = 90;
91
    nap.speed = 0.01;
92
    con = 23;
93
    alarm[4] = 30;
94
}
95
if (con == 24)
96
{
97
    nap.direction = 270;
98
    nap.speed = 0;
99
    alarm[4] = 30;
100
    con = 25;
101
}
102
if (con == 26)
103
{
104
    global.msc = 615;
105
    instance_create(0, 0, obj_dialoguer);
106
    con = 27;
107
}
108
if (con == 27 && instance_exists(OBJ_WRITER) == 0)
109
{
110
    con = 28;
111
    alarm[4] = 90;
112
}
113
if (con == 29)
114
{
115
    global.msc = 617;
116
    instance_create(0, 0, obj_dialoguer);
117
    con = 30;
118
}
119
if (con == 30 && instance_exists(OBJ_WRITER) == 0)
120
{
121
    with (nap)
122
    {
123
        move_towards_point(220, 100, 4);
124
        sprite_index = rsprite;
125
    }
126
    with (obj_mainchara)
127
    {
128
        move_towards_point(120, 100, 2);
129
        sprite_index = rsprite;
130
        image_speed = 0.25;
131
    }
132
    con = 31;
133
    alarm[4] = 20;
134
}
135
if (con == 32)
136
{
137
    nap.speed = 0;
138
    obj_mainchara.x = round(obj_mainchara.x);
139
    obj_mainchara.y = round(obj_mainchara.y);
140
    obj_mainchara.speed = 0;
141
    obj_mainchara.image_speed = 0;
142
    obj_mainchara.image_index = 0;
143
    con = 33;
144
    alarm[4] = 30;
145
}
146
if (con == 34)
147
{
148
    nap.direction = 180;
149
    con = 35;
150
    alarm[4] = 15;
151
}
152
if (con == 36)
153
{
154
    nap.sprite_index = spr_napstablook_grsm_headphones;
155
    nap.y += 20;
156
    nap.fun = 1;
157
    obj_mainchara.visible = false;
158
    mc = scr_marker
scr_marker

thismarker = instance_create(argument0, argument1, obj_npc_marker); thismarker.visible = true; thismarker.image_speed = 0; thismarker.sprite_index = argument2; return thismarker;
(obj_mainchara.x, obj_mainchara.y, spr_maincharar_liedown);
159
    con = 37;
160
    alarm[4] = 30;
161
}
162
if (con == 38)
163
{
164
    global.msg[0] = 
* here we go...Delay 11
* you'll lie down as long
as you don't move.Wait for input
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_napstablookdate_312")
;
165
    global.msg[1] = 
* so...Delay 11 only move around when
you want to get up,Delay 11 i
guess.Wait for inputClose MessageClose Message
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_napstablookdate_313")
;
166
    scr_regulartext
scr_regulartext

global.typer = 5; global.facechoice = 0; global.faceemotion = 0; global.msc = 0; instance_create(0, 0, obj_dialoguer);
();
167
    con = 39;
168
    buffer = 10;
169
}
170
if (con == 39 && instance_exists(OBJ_WRITER) == 0)
171
{
172
    get_mcx = obj_mainchara.x;
173
    get_mcy = obj_mainchara.y;
174
    alarm[6] = 230;
gml_Object_obj_napstablookdate_Alarm_6.gml

with (obj_napstablookdate_music) fadeout = 1; global.flag[94 current_napstablook_song] = 0;
175
    alarm[5] = 300;
176
    con = 40;
177
}
178
if (con == 40)
179
{
180
    buffer -= 1;
181
    global.interact = 1;
182
    if (buffer < 1)
183
        global.interact = 0;
184
    global.flag[17 menu_disabled] = 1;
185
    if (obj_mainchara.x != get_mcx || (obj_mainchara.y != get_mcy && buffer < 1))
186
    {
187
        if (alarm[6] >= 1)
188
            alarm[6] = -1;
gml_Object_obj_napstablookdate_Alarm_6.gml

with (obj_napstablookdate_music) fadeout = 1; global.flag[94 current_napstablook_song] = 0;
189
        global.flag[458 experience_cosmic_garbage] = 1;
190
        global.flag[17 menu_disabled] = 0;
191
        global.interact = 1;
192
        obj_mainchara.x = mc.x;
193
        obj_mainchara.y = mc.y;
194
        obj_mainchara.visible = true;
195
        with (mc)
196
            instance_destroy();
197
        con = 40;
198
        if (wavein == 0)
199
        {
200
            alarm[5] = -1;
201
            con = 41;
202
            alarm[4] = 30;
203
        }
204
        if (wavein > 0)
205
        {
206
            event_user(1);
207
            con = 41;
208
            alarm[4] = 90;
209
        }
210
    }
211
}
212
if (con == 42)
213
{
214
    nap.fun = 0;
215
    nap.sprite_index = nap.lsprite;
216
    nap.y -= 20;
217
    global.msg[0] = 
* well,Delay 11 that was nice...Delay 11
* thank you...Wait for inputClose MessageClose Message
scr_gettext
scr_gettext

var text_id = argument[0]; var text = ds_map_find_value(global.text_data_en, text_id); if (is_undefined(text)) text = ""; if (global.language == "ja") { var loc_text = ds_map_find_value(global.text_data_ja, text_id); if (!is_undefined(loc_text)) text = loc_text; } for (var i = 1; i <= (string_length(text) - 3); i++) { if (string_copy(text, i, 2) == "\[" && string_char_at(text, i + 3) == "]") { var sel = string_char_at(text, i + 2); var replace; if (sel == "C") replace = global.charname; else if (sel == "G") replace = string(global.gold); else if (sel == "I") replace = global.itemname[global.menucoord[1]]; else if (sel == "1" && argument_count > 1) replace = argument[1]; else if (sel == "2" && argument_count > 2) replace = argument[2]; else if (sel == "3" && argument_count > 3) replace = argument[3]; else if (sel == "4" && argument_count > 4) replace = argument[4]; else if (sel == "5" && argument_count > 5) replace = argument[5]; else if (sel == "6" && argument_count > 6) replace = argument[6]; else if (sel == "7" && argument_count > 7) replace = argument[7]; else if (sel == "8" && argument_count > 8) replace = argument[8]; else if (sel == "9" && argument_count > 9) replace = argument[9]; else replace = ""; var before = string_copy(text, 1, i - 1); var after = string_copy(text, i + 4, string_length(text)); text = before + replace + after; i += (string_length(replace) - 1); } } return text;
("obj_napstablookdate_356")
;
218
    scr_regulartext
scr_regulartext

global.typer = 5; global.facechoice = 0; global.faceemotion = 0; global.msc = 0; instance_create(0, 0, obj_dialoguer);
();
219
    con = 44;
220
}
221
if (con == 44 && instance_exists(OBJ_WRITER) == 0)
222
{
223
    con = 45;
224
    with (obj_napstablook_cd)
225
        buffer = 240;
226
    global.interact = 0;
227
    global.flag[93 dated_napstablook] = 3;
228
}
229
if (con == 80)
230
{
231
    nap.vspeed = 2;
232
    nap.direction = 270;
233
    con = 81;
234
    alarm[4] = 10;
235
}
236
if (con == 82)
237
{
238
    nap.vspeed = 0;
239
    nap.hspeed = 2;
240
    con = 85;
241
    alarm[4] = 150;
242
}
243
if (con == 86 && instance_exists(OBJ_WRITER) == 0)
244
{
245
    with (nap)
246
        instance_destroy();
247
    con = 87;
248
    global.interact = 0;
249
}
250
if (wavein == 1 || wavein == 2)
251
{
252
    wavein = 2;
253
    waver.image_alpha += 0.005;
254
    if (waver.image_alpha >= 1)
255
    {
256
        waver.image_alpha = 1;
257
        wavein = 2.1;
258
    }
259
    global.screen_border_alpha = 1 - waver.image_alpha;
260
}
261
if (wavein == 3)
262
{
263
    waver.image_alpha -= 0.005;
264
    if (waver.image_alpha <= 0)
265
        waver.image_alpha = 0;
266
    global.screen_border_alpha = 1 - waver.image_alpha;
267
    if (waver.image_alpha <= 0 && obj_napstablookdate_music.songplaying == 0)
268
    {
269
        wavein = 0;
270
        with (waver)
271
            instance_destroy();
272
        with (obj_napstablookdate_music)
273
            event_user(7);
274
    }
275
}