|
1
|
if (myinteract == 1)
|
|
2
|
{
|
|
3
|
if (obj_kitchenchecker.level == 0)
|
|
4
|
{
|
|
5
|
global.interact = 1;
|
|
6
|
alarm[0] = 1; gml_Object_obj_papsink_Alarm_0.gml
myinteract = 3;
global.msc = 0;
global.typer = 5;
global.facechoice = 0;
global.faceemotion = 0;
if (instance_exists(obj_papyrusparent))
{
if (global.flag[82 papyrus_sink_event_occurred] == 0)
{
scr_papface(0, 0);
conversation = 1;
global.msg[1] = IMPRESSED?Delay 11 I INCREASED THE HEIGHT OF MY SINK.Wait for input ;
global.msg[2] = NOW I CAN FIT MORE BONES UNDER IT!Delay 11 TAKE A LOOKSY!Wait for inputClose MessageClose Message ;
}
else
{
scr_papface(0, 3);
global.msg[1] = FORGET IT.Wait for inputClose MessageClose Message ;
}
}
else
{
global.msg[0] = * (This sink is so tall,Delay 11 you can't even wash your hands...)Wait for inputClose MessageClose Message ;
conversation = 0;
}
mydialoguer = instance_create(0, 0, obj_dialoguer);
talkedto += 1;
|
|
7
|
myinteract = 2;
|
|
8
|
}
|
|
9
|
else
|
|
10
|
{
|
|
11
|
x -= 400;
|
|
12
|
myinteract = 0;
|
|
13
|
with (obj_mainchara)
|
|
14
|
{
|
|
15
|
if (global.facing == 2)
|
|
16
|
{
|
|
17
|
if (collision_rectangle(x + 4, (y + sprite_height) - 5, (x + sprite_width) - 4, y + 5, obj_interactable, 0, 1))
|
|
18
|
{
|
|
19
|
interactedobject = collision_rectangle(x + 4, (y + sprite_height) - 5, (x + sprite_width) - 4, y + 8, obj_interactable, 0, 1);
|
|
20
|
if (interactedobject != -4)
|
|
21
|
{
|
|
22
|
with (interactedobject)
|
|
23
|
facing = 0;
|
|
24
|
with (interactedobject)
|
|
25
|
script_execute(scr_interact);
|
|
26
|
}
|
|
27
|
}
|
|
28
|
}
|
|
29
|
}
|
|
30
|
x += 400;
|
|
31
|
}
|
|
32
|
}
|
|
33
|
if (myinteract == 3 && conversation == 0)
|
|
34
|
{
|
|
35
|
if (instance_exists(mydialoguer) == 0)
|
|
36
|
{
|
|
37
|
global.interact = 0;
|
|
38
|
myinteract = 0;
|
|
39
|
}
|
|
40
|
}
|
|
41
|
if (conversation == 1 && instance_exists(OBJ_WRITER) == 0)
|
|
42
|
{
|
|
43
|
pap = 1027;
|
|
44
|
caster_pause(global.currentsong);
|
|
45
|
alarm[2] = 10; gml_Object_obj_papsink_Alarm_2.gml
conversation += 1;
|
|
46
|
conversation = 2;
|
|
47
|
}
|
|
48
|
if (conversation == 3)
|
|
49
|
{
|
|
50
|
caster_play(mus_dooropen, 1, 1);
|
|
51
|
image_index = 1;
|
|
52
|
thedog = instance_create(x + 4, obj_mainchara.y - 20, obj_npc_marker);
|
|
53
|
thedog.visible = true;
|
|
54
|
thedog.sprite_index = spr_tobydogeat_small;
|
|
55
|
thedog.depth = depth + 1;
|
|
56
|
thedog.image_speed = 0.25;
|
|
57
|
conversation = 4;
|
|
58
|
alarm[2] = 30; gml_Object_obj_papsink_Alarm_2.gml
conversation += 1;
|
|
59
|
}
|
|
60
|
if (conversation == 5)
|
|
61
|
{
|
|
62
|
dogvolume = 1;
|
|
63
|
caster_loop(dogsong, 1, 1);
|
|
64
|
conversation = 5.1;
|
|
65
|
alarm[2] = 30; gml_Object_obj_papsink_Alarm_2.gml
conversation += 1;
|
|
66
|
}
|
|
67
|
if (conversation == 6.1)
|
|
68
|
{
|
|
69
|
snd_play(snd_b);
|
|
70
|
blcon = instance_create(obj_papyrusparent.x + 5, obj_papyrusparent.y - 12, obj_cosmeticblcon);
|
|
71
|
conversation = 6;
|
|
72
|
alarm[2] = 30; gml_Object_obj_papsink_Alarm_2.gml
conversation += 1;
|
|
73
|
}
|
|
74
|
if (conversation == 7)
|
|
75
|
{
|
|
76
|
with (blcon)
|
|
77
|
instance_destroy();
|
|
78
|
global.faceemotion = 1;
|
|
79
|
global.facechoice = 4;
|
|
80
|
global.msc = 0;
|
|
81
|
alarm[2] = 15; gml_Object_obj_papsink_Alarm_2.gml
conversation += 1;
|
|
82
|
conversation = 8;
|
|
83
|
}
|
|
84
|
if (conversation == 9)
|
|
85
|
{
|
|
86
|
thedog.sprite_index = spr_tobydogsurprise_small;
|
|
87
|
global.msg[0] = WHAT!?!?Wait for inputClose MessageClose Messagescr_gettextscr_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_papsink_234") ;
|
|
88
|
instance_create(0, 0, obj_dialoguer);
|
|
89
|
conversation = 10;
|
|
90
|
}
|
|
91
|
if (conversation == 10 && instance_exists(OBJ_WRITER) == 0)
|
|
92
|
{
|
|
93
|
thedog.sprite_index = spr_tobydogscoot_small;
|
|
94
|
thedog.depth = 10000;
|
|
95
|
thedog.vspeed = 5;
|
|
96
|
global.msg[0] = CATCH THAT MEDDLING CANINE!Wait for inputClose MessageClose Messagescr_gettextscr_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_papsink_244") ;
|
|
97
|
instance_create(0, 0, obj_dialoguer);
|
|
98
|
conversation = 9.5;
|
|
99
|
alarm[2] = 20; gml_Object_obj_papsink_Alarm_2.gml
conversation += 1;
|
|
100
|
}
|
|
101
|
if (conversation == 10.5)
|
|
102
|
{
|
|
103
|
thedog.vspeed = 0;
|
|
104
|
thedog.image_speed = 0;
|
|
105
|
conversation = 10.6;
|
|
106
|
alarm[2] = 20; gml_Object_obj_papsink_Alarm_2.gml
conversation += 1;
|
|
107
|
}
|
|
108
|
if (conversation == 11.6 && instance_exists(OBJ_WRITER) == 0)
|
|
109
|
{
|
|
110
|
thedog.vspeed = 4;
|
|
111
|
thedog.hspeed = 1;
|
|
112
|
thedog.image_speed = 0.25;
|
|
113
|
obj_mainchara.facing = 0;
|
|
114
|
global.facing = 0;
|
|
115
|
obj_mainchara.vspeed = 3;
|
|
116
|
obj_mainchara.image_speed = 0.2;
|
|
117
|
dogvolume -= 0.04;
|
|
118
|
if (dogvolume < 0.04)
|
|
119
|
dogvolume = 0;
|
|
120
|
caster_set_volume(dogsong, dogvolume);
|
|
121
|
if (dogvolume == 0)
|
|
122
|
{
|
|
123
|
conversation = 12;
|
|
124
|
caster_free(dogsong);
|
|
125
|
}
|
|
126
|
}
|
|
127
|
if (conversation == 12)
|
|
128
|
{
|
|
129
|
obj_mainchara.vspeed = 0;
|
|
130
|
obj_mainchara.image_speed = 0;
|
|
131
|
conversation = 12.1;
|
|
132
|
alarm[2] = 15; gml_Object_obj_papsink_Alarm_2.gml
conversation += 1;
|
|
133
|
}
|
|
134
|
if (conversation == 13.1)
|
|
135
|
{
|
|
136
|
global.msg[0] = CURSES!!!Wait for inputClose MessageClose Messagescr_gettextscr_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_papsink_284") ;
|
|
137
|
tt = instance_create(0, 0, obj_dialoguer);
|
|
138
|
tt.side = 0;
|
|
139
|
conversation = 14;
|
|
140
|
}
|
|
141
|
if (conversation == 14 && instance_exists(OBJ_WRITER) == 0)
|
|
142
|
{
|
|
143
|
obj_sansdoor.image_index = 1;
|
|
144
|
caster_play(mus_dooropen, 1, 1);
|
|
145
|
obj_sansdoor.sans = 1;
|
|
146
|
alarm[2] = 80; gml_Object_obj_papsink_Alarm_2.gml
conversation += 1;
|
|
147
|
conversation = 15;
|
|
148
|
}
|
|
149
|
if (conversation == 16)
|
|
150
|
{
|
|
151
|
obj_sansdoor.image_index = 0;
|
|
152
|
caster_play(mus_doorclose, 1, 1);
|
|
153
|
conversation = 17;
|
|
154
|
alarm[2] = 30; gml_Object_obj_papsink_Alarm_2.gml
conversation += 1;
|
|
155
|
}
|
|
156
|
if (conversation == 18)
|
|
157
|
{
|
|
158
|
caster_resume(global.currentsong);
|
|
159
|
global.faceemotion = 1;
|
|
160
|
global.msg[0] = SANS!Wait for inputscr_gettextscr_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_papsink_313") ;
|
|
161
|
global.msg[1] = STOP PLAGUING MY LIFE WITH INCIDENTAL MUSIC!!!Wait for inputClose MessageClose Messagescr_gettextscr_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_papsink_314") ;
|
|
162
|
tt = instance_create(0, 0, obj_dialoguer);
|
|
163
|
tt.side = 0;
|
|
164
|
conversation = 19;
|
|
165
|
}
|
|
166
|
if (conversation == 19 && instance_exists(OBJ_WRITER) == 0)
|
|
167
|
{
|
|
168
|
conversation = 0;
|
|
169
|
myinteract = 0;
|
|
170
|
global.flag[82 papyrus_sink_event_occurred] = 1;
|
|
171
|
global.interact = 0;
|
|
172
|
}
|