|
1
|
hasitems = global.litem[0] != 0;
|
|
2
|
if (global.interact == 5)
|
|
3
|
{
|
|
4
|
currentmenu = global.menuno;
|
|
5
|
if (global.menuno < 6)
|
|
6
|
currentspot = global.menucoord[global.menuno];
|
|
7
|
if (button1_p())
|
|
8
|
{
|
|
9
|
if (global.menuno == 5)
|
|
10
|
{
|
|
11
|
if (global.menucoord[5] == 0)
|
|
12
|
{
|
|
13
|
global.menuno = 9;
|
|
14
|
script_execute(scr_litemuseb, global.menucoord[1], global.litem[global.menucoord[1]]);
|
|
15
|
}
|
|
16
|
if (global.menucoord[5] == 1)
|
|
17
|
{
|
|
18
|
global.menuno = 9;
|
|
19
|
script_execute(scr_litemdesc, global.litem[global.menucoord[1]]);
|
|
20
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
21
|
}
|
|
22
|
if (global.menucoord[5] == 2)
|
|
23
|
{
|
|
24
|
dontthrow = 0;
|
|
25
|
dontthrowtype = 0;
|
|
26
|
global.menuno = 9;
|
|
27
|
if (global.litem[global.menucoord[1]] == 5)
|
|
28
|
dontthrow = 1;
|
|
29
|
if (global.litem[global.menucoord[1]] == 11)
|
|
30
|
{
|
|
31
|
dontthrow = 1;
|
|
32
|
dontthrowtype = 2;
|
|
33
|
}
|
|
34
|
if (dontthrow == 0)
|
|
35
|
{
|
|
36
|
i = round(random(30));
|
|
37
|
if (i == 0)
|
|
38
|
global.msg[0] = * You bid a quiet farewell to the + global.litemname[global.menucoord[1]] + ".";
|
|
39
|
if (i == 1)
|
|
40
|
global.msg[0] = scr_84_get_subst_stringscr_84_get_subst_string
function scr_84_get_subst_string()
{
var str = argument[0];
var sub_id = 1;
length = string_length(str);
pos = 0;
while (sub_id < argument_count)
{
var sub = "~" + string(sub_id);
str = string_replace_all(str, sub, argument[sub_id]);
sub_id = sub_id + 1;
}
return str;
}
(* You put the ~1 on the ground and gave it a little pat. , global.litemname[global.menucoord[1]]);
|
|
41
|
if (i == 2)
|
|
42
|
global.msg[0] = scr_84_get_subst_stringscr_84_get_subst_string
function scr_84_get_subst_string()
{
var str = argument[0];
var sub_id = 1;
length = string_length(str);
pos = 0;
while (sub_id < argument_count)
{
var sub = "~" + string(sub_id);
str = string_replace_all(str, sub, argument[sub_id]);
sub_id = sub_id + 1;
}
return str;
}
(* You threw the ~1 on the ground like the piece of trash it is. , global.litemname[global.menucoord[1]]);
|
|
43
|
if (i == 3)
|
|
44
|
global.msg[0] = + global.litemname[global.menucoord[1]] + ".";
|
|
45
|
if (i > 3)
|
|
46
|
global.msg[0] = scr_84_get_subst_stringscr_84_get_subst_string
function scr_84_get_subst_string()
{
var str = argument[0];
var sub_id = 1;
length = string_length(str);
pos = 0;
while (sub_id < argument_count)
{
var sub = "~" + string(sub_id);
str = string_replace_all(str, sub, argument[sub_id]);
sub_id = sub_id + 1;
}
return str;
}
(* The ~1 was thrown away. , global.litemname[global.menucoord[1]]);
|
|
47
|
global.msg[0] += Wait for inputClose Message ;
|
|
48
|
if (global.litem[global.menucoord[1]] == 8)
|
|
49
|
{
|
|
50
|
global.msg[0] = * What Egg?Wait for inputClose Message ;
|
|
51
|
if (global.flag[263 fridge_egg_status] == 0)
|
|
52
|
global.flag[263 fridge_egg_status] = 1;
|
|
53
|
}
|
|
54
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
55
|
script_execute(scr_litemshift, global.menucoord[1], 0);
|
|
56
|
}
|
|
57
|
if (dontthrow == 1)
|
|
58
|
{
|
|
59
|
if (dontthrowtype == 0)
|
|
60
|
{
|
|
61
|
global.msc = 10;
|
|
62
|
scr_textscr_text
function scr_text(arg0)
{
switch (arg0)
{
case 0:
break;
case 10:
global.choicemsg[1] = ;
global.choicemsg[0] = ;
global.choicemsg[2] = " ";
global.choicemsg[3] = " ";
global.msg[0] = * You really didn't want to throw it away.Wait for input ;
global.msg[1] = * Throw it away anyway?Wait for input ;
global.msg[2] = ;
break;
case 11:
if (global.choice == 0)
{
global.msg[0] = * You felt a feeling of relief.Wait for inputClose Message ;
}
else
{
global.msg[0] = * Hand shaking,Delay 11 you dropped the ball of junk on the ground.Wait for input ;
global.msg[1] = * It broke into pieces.Wait for input ;
global.msg[2] = * You felt bitter.Wait for inputClose Message ;
script_execute(scr_litemshift, global.menucoord[1], 0);
for (i = 0; i < 12; i += 1)
{
global.item[i] = 0;
global.weapon[i] = 0;
global.armor[i] = 0;
}
}
break;
case 100:
global.msg[0] = * Hey, Kris!Delay 11 What's up?Delay 11 * Didja lose your pencil again?Wait for input ;
global.msg[1] = Face 4* Here,Delay 11 you want the candy-cane one or the one with lights on it?Wait for input ;
global.msg[2] = Face 1* Huh?Delay 11 * You want to be partners?Wait for input ;
global.msg[3] = Face 4* Ummm...Delay 11 Sorry...Delay 11 * Berdly already asked me...Wait for input ;
global.msg[4] = Face 0* But I could ask Ms. Alphys if we could make a group of 3!Wait for input ;
global.msg[5] = Face 4* I'll ask if you're sure!
Not yet Yes. Ask.Choice type 1 ;
global.msg[6] = " ";
break;
case 101:
if (global.choice == 1)
{
global.msg[0] = Face 0* OK,Delay 11 I'll ask!Wait for input ;
global.msg[1] = * Miss Alphys!Delay 11 * Umm,Delay 11 is it OK if we have a group of 3?Wait for inputClose Message ;
with (obj_classscene)
con = 20;
}
if (global.choice == 0)
global.msg[0] = Face 4* Yeah,Delay 11 I'm sure there's someone else you can ask!Wait for inputClose Message ;
break;
case 102:
global.msg[0] = Face 0* Do you wanna be partners? Not yet YesChoice type 1 ;
global.msg[1] = " ";
break;
case 103:
if (global.choice == 1)
{
global.msg[0] = Face 0* OK,Delay 11 I'll ask!Wait for input ;
global.msg[1] = * Miss Alphys!Delay 11 * Umm,Delay 11 is it OK if we have a group of 3?Wait for inputClose Message ;
with (obj_classscene)
con = 20;
}
if (global.choice == 0)
global.msg[0] = Face 4* Umm,Delay 11 OK.Delay 11 * You just keep doing your thing,Delay 11 Kris.Wait for inputClose Message ;
break;
case 104:
global.msg[0] = Face 0* Alright.Delay 11 * Let's get this over with.Wait for input ;
global.msg[1] = * We'll get more chalk.Delay 11 * Mosey back to class.Delay 11 * And then,Delay 11 Kris...Wait for input ;
global.msg[2] = Face 2* YOU'LL do our project.Wait for input ;
global.msg[3] = * How's that sound?
Good BadChoice type 1 ;
global.msg[4] = " ";
break;
case 105:
global.msg[0] = " %%";
break;
case 110:
global.choicemsg[0] = ;
global.choicemsg[1] = ;
global.choicemsg[2] = " ";
global.choicemsg[3] = " ";
if (global.flag[100 got_glowshard] == 0)
{
global.msg[0] = * (There's something glowing inside.)Wait for input ;
global.msg[1] = * (Take it?)Wait for input ;
global.msg[2] = ;
}
else
{
global.msg[0] = * (It's dark inside.)Wait for inputClose Message ;
}
break;
case 111:
if (global.choice == 0)
{
global.msg[0] = * (You got the Glowshard.)Wait for inputClose Message ;
global.flag[100 got_glowshard] = 1;
scr_itemget(3);
...
(global.msc);
|
|
63
|
script_execute(scr_writetext, 10, "x", 0, 0);
|
|
64
|
}
|
|
65
|
else if (dontthrowtype == 2)
|
|
66
|
{
|
|
67
|
global.msg[0] = * (You didn't quite understand why...)Wait for input ;
|
|
68
|
global.msg[1] = * (But, the thought of discarding it felt very wrong.)Wait for inputClose Message ;
|
|
69
|
script_execute(scr_writetext, 0, "x", 0, 0);
|
|
70
|
}
|
|
71
|
}
|
|
72
|
}
|
|
73
|
}
|
|
74
|
if (global.menuno == 3)
|
|
75
|
{
|
|
76
|
global.menuno = 9;
|
|
77
|
script_execute(scr_litemuseb, global.menucoord[3], global.phone[global.menucoord[3]]);
|
|
78
|
}
|
|
79
|
if (global.menuno == 1)
|
|
80
|
{
|
|
81
|
global.menuno = 5;
|
|
82
|
global.menucoord[5] = 0;
|
|
83
|
}
|
|
84
|
if (global.menuno == 0)
|
|
85
|
global.menuno += (global.menucoord[0] + 1);
|
|
86
|
if (global.menuno == 3)
|
|
87
|
{
|
|
88
|
script_execute(scr_phonename);
|
|
89
|
global.menucoord[3] = 0;
|
|
90
|
}
|
|
91
|
if (global.menuno == 1)
|
|
92
|
{
|
|
93
|
if (global.litem[0] != 0)
|
|
94
|
{
|
|
95
|
global.menucoord[1] = 0;
|
|
96
|
script_execute(scr_litemname);
|
|
97
|
}
|
|
98
|
else
|
|
99
|
{
|
|
100
|
global.menuno = 0;
|
|
101
|
}
|
|
102
|
}
|
|
103
|
}
|
|
104
|
if (up_p())
|
|
105
|
{
|
|
106
|
if (global.menuno == 0)
|
|
107
|
{
|
|
108
|
if (global.menucoord[0] != 0)
|
|
109
|
global.menucoord[0] -= 1;
|
|
110
|
}
|
|
111
|
if (global.menuno == 1)
|
|
112
|
{
|
|
113
|
if (global.menucoord[1] != 0)
|
|
114
|
global.menucoord[1] -= 1;
|
|
115
|
}
|
|
116
|
if (global.menuno == 3)
|
|
117
|
{
|
|
118
|
if (global.menucoord[3] != 0)
|
|
119
|
global.menucoord[3] -= 1;
|
|
120
|
}
|
|
121
|
}
|
|
122
|
if (down_p())
|
|
123
|
{
|
|
124
|
if (global.menuno == 0)
|
|
125
|
{
|
|
126
|
if (global.menucoord[0] != 2)
|
|
127
|
global.menucoord[0] += 1;
|
|
128
|
}
|
|
129
|
if (global.menuno == 1)
|
|
130
|
{
|
|
131
|
if (global.menucoord[1] != 7)
|
|
132
|
{
|
|
133
|
if (global.litem[global.menucoord[1] + 1] != 0)
|
|
134
|
global.menucoord[1] += 1;
|
|
135
|
}
|
|
136
|
}
|
|
137
|
if (global.menuno == 3)
|
|
138
|
{
|
|
139
|
if (global.menucoord[3] != 7)
|
|
140
|
{
|
|
141
|
if (global.phone[global.menucoord[3] + 1] != 0)
|
|
142
|
global.menucoord[3] += 1;
|
|
143
|
}
|
|
144
|
}
|
|
145
|
}
|
|
146
|
if (button2_p() && buffer >= 0)
|
|
147
|
{
|
|
148
|
if (global.menuno == 0)
|
|
149
|
{
|
|
150
|
global.menuno = -1;
|
|
151
|
global.interact = 0;
|
|
152
|
}
|
|
153
|
else if (global.menuno <= 3)
|
|
154
|
{
|
|
155
|
global.menuno = 0;
|
|
156
|
}
|
|
157
|
if (global.menuno == 5)
|
|
158
|
global.menuno = 1;
|
|
159
|
}
|
|
160
|
if (right_p())
|
|
161
|
{
|
|
162
|
if (global.menuno == 5)
|
|
163
|
{
|
|
164
|
if (global.menucoord[5] != 2)
|
|
165
|
global.menucoord[5] += 1;
|
|
166
|
}
|
|
167
|
}
|
|
168
|
if (left_p())
|
|
169
|
{
|
|
170
|
if (global.menuno == 5)
|
|
171
|
{
|
|
172
|
if (global.menucoord[5] != 0)
|
|
173
|
global.menucoord[5] -= 1;
|
|
174
|
}
|
|
175
|
}
|
|
176
|
if (button3_p() && threebuffer <= 0)
|
|
177
|
{
|
|
178
|
if (global.menuno == 0)
|
|
179
|
{
|
|
180
|
global.menuno = -1;
|
|
181
|
global.interact = 0;
|
|
182
|
with (obj_mainchara)
|
|
183
|
threebuffer = 2;
|
|
184
|
}
|
|
185
|
}
|
|
186
|
if (currentmenu < global.menuno && global.menuno != 9)
|
|
187
|
{
|
|
188
|
selnoise = 1;
|
|
189
|
}
|
|
190
|
else if (global.menuno >= 0 && global.menuno < 6)
|
|
191
|
{
|
|
192
|
if (currentspot != global.menucoord[global.menuno])
|
|
193
|
movenoise = 1;
|
|
194
|
}
|
|
195
|
}
|
|
196
|
if (global.menuno == 9 && instance_exists(obj_dialoguer) == false)
|
|
197
|
{
|
|
198
|
global.menuno = -1;
|
|
199
|
global.interact = 0;
|
|
200
|
}
|
|
201
|
if (selnoise == 1)
|
|
202
|
{
|
|
203
|
snd_play(snd_select);
|
|
204
|
selnoise = 0;
|
|
205
|
}
|
|
206
|
if (movenoise == 1)
|
|
207
|
{
|
|
208
|
snd_play(snd_menumove);
|
|
209
|
movenoise = 0;
|
|
210
|
}
|
|
211
|
threebuffer--;
|