|
1
|
if (scr_interactscr_interact
function scr_interact()
{
if (distance_to_object(obj_pl) < 20 && obj_pl.state == scr_normal_state)
{
var pl_dir = obj_pl.direction;
var pl_x = 0;
var pl_y = 0;
var check_distance_x = 0;
var check_distance_y = 0;
switch (pl_dir)
{
case 0:
pl_x = obj_pl.bbox_right;
pl_y = obj_pl.bbox_top + 1;
check_distance_x = 20;
break;
case 180:
pl_x = obj_pl.bbox_left;
pl_y = obj_pl.bbox_top + 1;
check_distance_x = -20;
break;
case 90:
pl_x = obj_pl.x;
pl_y = obj_pl.bbox_top;
check_distance_y = -20;
break;
case 270:
pl_x = obj_pl.x;
pl_y = obj_pl.bbox_bottom;
check_distance_y = 20;
break;
}
if (collision_line_first(pl_x, pl_y, pl_x + check_distance_x, pl_y + check_distance_y, id, false, false))
return true;
}
} () && keyboard_multicheck_pressed(0) && !interacted_with)
|
|
2
|
{
|
|
3
|
scene = 0;
|
|
4
|
interacted_with = true;
|
|
5
|
scr_cutscene_startscr_cutscene_start
function scr_cutscene_start()
{
global.cutscene = true;
obj_pl.state = scr_frozen_state;
obj_pl.image_index = 0;
obj_pl.image_speed = 0;
} ();
|
|
6
|
}
|
|
7
|
if (interacted_with)
|
|
8
|
{
|
|
9
|
if (scene == 0)
|
|
10
|
{
|
|
11
|
scr_textscr_text
function scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} ();
|
|
12
|
with (msg)
|
|
13
|
{
|
|
14
|
ch_msg = 2;
|
|
15
|
ch[1] = "Yes";
|
|
16
|
ch[2] = "No";
|
|
17
|
message[0] = "* (The leatherbound book's title# reads: Martlet's Day to Day!)";
|
|
18
|
message[1] = "* (You flip to an early page and# see an entry.)";
|
|
19
|
message[2] = "* (Read it?)";
|
|
20
|
if (outcome == 1)
|
|
21
|
{
|
|
22
|
instance_destroy();
|
|
23
|
other.scene = 1;
|
|
24
|
exit;
|
|
25
|
}
|
|
26
|
if (outcome == 2)
|
|
27
|
{
|
|
28
|
global.dialogue_open = false;
|
|
29
|
other.interacted_with = false;
|
|
30
|
scr_cutscene_endscr_cutscene_end
function scr_cutscene_end()
{
global.cutscene = false;
obj_pl.alarm[0] = 1;
} ();
|
|
31
|
}
|
|
32
|
}
|
|
33
|
}
|
|
34
|
if (scene == 1)
|
|
35
|
{
|
|
36
|
scr_textscr_text
function scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} ();
|
|
37
|
with (msg)
|
|
38
|
{
|
|
39
|
sndfnt_array[0] = 102;
|
|
40
|
message[0] = "* Entry 3.";
|
|
41
|
message[1] = "* So far, living on my own has# been BORING.";
|
|
42
|
message[2] = "* I don't know what to do with# myself most of the time.";
|
|
43
|
message[3] = "* Sure, I have a TV but monsters# don't exactly produce much# content.";
|
|
44
|
message[4] = "* My mom says I “need a job” but# more importantly, I need a# hobby.";
|
|
45
|
message[5] = "* The guy who built my balcony# seemed to enjoy what he was# doing.";
|
|
46
|
message[6] = "* Maybe I'll ask him to teach me# how to... ";
|
|
47
|
message[7] = "* I don't know, nail planks of# wood to houses? ";
|
|
48
|
message[8] = "* It would be a start. UvU#";
|
|
49
|
sndfnt_array[9] = 391;
|
|
50
|
message[9] = "* (Continue?)";
|
|
51
|
ch_msg = 9;
|
|
52
|
ch[1] = "Yes";
|
|
53
|
ch[2] = "No";
|
|
54
|
if (outcome == 1)
|
|
55
|
{
|
|
56
|
global.dialogue_open = false;
|
|
57
|
instance_destroy();
|
|
58
|
other.scene = 2;
|
|
59
|
other.timer = 10;
|
|
60
|
exit;
|
|
61
|
}
|
|
62
|
if (outcome == 2)
|
|
63
|
{
|
|
64
|
global.dialogue_open = false;
|
|
65
|
other.interacted_with = false;
|
|
66
|
other.scene = 0;
|
|
67
|
scr_cutscene_endscr_cutscene_end
function scr_cutscene_end()
{
global.cutscene = false;
obj_pl.alarm[0] = 1;
} ();
|
|
68
|
}
|
|
69
|
}
|
|
70
|
}
|
|
71
|
if (scene == 2)
|
|
72
|
{
|
|
73
|
if (!scr_timerscr_timer
function scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ())
|
|
74
|
exit;
|
|
75
|
scr_textscr_text
function scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} ();
|
|
76
|
with (msg)
|
|
77
|
{
|
|
78
|
sndfnt_array[0] = 391;
|
|
79
|
sndfnt_array[1] = 102;
|
|
80
|
message[0] = "* (You flip through a few# pages.)";
|
|
81
|
message[1] = "* Entry 8.";
|
|
82
|
message[2] = "* I think this \"tinkering\" thing# is for me.";
|
|
83
|
message[3] = "* I knew my B- in art class had# a purpose!";
|
|
84
|
message[4] = "* And Mr. Chujin is SO NICE!";
|
|
85
|
message[5] = "* He gladly took my wings under# his wing and now I'm making# wooden blocks!";
|
|
86
|
message[6] = "* Sounds boring, but I'm working# toward carving a buncha them...";
|
|
87
|
message[7] = "* ...to build one of those# \"wooden tower\" games.";
|
|
88
|
message[8] = "* Chujin thought it would be a# good beginner project! ^v^";
|
|
89
|
sndfnt_array[9] = 391;
|
|
90
|
message[9] = "* (Continue?)";
|
|
91
|
ch_msg = 9;
|
|
92
|
ch[1] = "Yes";
|
|
93
|
ch[2] = "No";
|
|
94
|
if (outcome == 1)
|
|
95
|
{
|
|
96
|
global.dialogue_open = false;
|
|
97
|
instance_destroy();
|
|
98
|
other.scene = 3;
|
|
99
|
other.timer = 10;
|
|
100
|
exit;
|
|
101
|
}
|
|
102
|
if (outcome == 2)
|
|
103
|
{
|
|
104
|
global.dialogue_open = false;
|
|
105
|
other.interacted_with = false;
|
|
106
|
other.scene = 0;
|
|
107
|
scr_cutscene_endscr_cutscene_end
function scr_cutscene_end()
{
global.cutscene = false;
obj_pl.alarm[0] = 1;
} ();
|
|
108
|
}
|
|
109
|
}
|
|
110
|
}
|
|
111
|
if (scene == 3)
|
|
112
|
{
|
|
113
|
if (!scr_timerscr_timer
function scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ())
|
|
114
|
exit;
|
|
115
|
scr_textscr_text
function scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} ();
|
|
116
|
with (msg)
|
|
117
|
{
|
|
118
|
sndfnt_array[0] = 391;
|
|
119
|
sndfnt_array[1] = 102;
|
|
120
|
message[0] = "* (You flip through a few more# pages.)";
|
|
121
|
message[1] = "* Entry 19.";
|
|
122
|
message[2] = "* I had a conversation with Mr.# Chujin last night.";
|
|
123
|
message[3] = "* We're about to start making# contraptions - like robotics!";
|
|
124
|
message[4] = "* Turns out, he specialized in# engineering at the Steamworks.";
|
|
125
|
message[5] = "* He said he doesn't talk about# his past job much out here.";
|
|
126
|
message[6] = "* Likes to keep things casual# while helping out the# townsfolk.";
|
|
127
|
message[7] = "* So I asked him why he's# helping me like he is.";
|
|
128
|
message[8] = "* He said he has a daughter# named “Kanako.”";
|
|
129
|
message[9] = "* “The world, as it is, is a# dark place” he said. “A place# unfit for a kid.”";
|
|
130
|
message[10] = "* He believes that small acts of# kindness will lead to a better# world.";
|
|
131
|
message[11] = "* Not only for him, or me, but# for Kanako.";
|
|
132
|
message[12] = "* Sooo yeah! Got a little deep# there, but I get it.";
|
|
133
|
message[13] = "* Him teaching me would, in# theory, lead to me teaching# someone else - etc, etc.";
|
|
134
|
message[14] = "* Sounds like he wants to leave# a lasting legacy or something.";
|
|
135
|
message[15] = "* Guy's got big aspirations,# that's for sure. ";
|
|
136
|
message[16] = "* Caaan't relate. =v=#";
|
|
137
|
sndfnt_array[17] = 391;
|
|
138
|
message[17] = "* (Continue?)";
|
|
139
|
ch_msg = 17;
|
|
140
|
ch[1] = "Yes";
|
|
141
|
ch[2] = "No";
|
|
142
|
if (outcome == 1)
|
|
143
|
{
|
|
144
|
global.dialogue_open = false;
|
|
145
|
instance_destroy();
|
|
146
|
other.scene = 4;
|
|
147
|
other.timer = 10;
|
|
148
|
exit;
|
|
149
|
}
|
|
150
|
if (outcome == 2)
|
|
151
|
{
|
|
152
|
global.dialogue_open = false;
|
|
153
|
other.interacted_with = false;
|
|
154
|
other.scene = 0;
|
|
155
|
scr_cutscene_endscr_cutscene_end
function scr_cutscene_end()
{
global.cutscene = false;
obj_pl.alarm[0] = 1;
} ();
|
|
156
|
}
|
|
157
|
}
|
|
158
|
}
|
|
159
|
if (scene == 4)
|
|
160
|
{
|
|
161
|
if (!scr_timerscr_timer
function scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ())
|
|
162
|
exit;
|
|
163
|
scr_textscr_text
function scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} ();
|
|
164
|
with (msg)
|
|
165
|
{
|
|
166
|
sndfnt_array[0] = 391;
|
|
167
|
sndfnt_array[1] = 102;
|
|
168
|
message[0] = "* (You flip through a few more# pages.)";
|
|
169
|
message[1] = "* Entry 27.";
|
|
170
|
message[2] = "* Welp, I couldn't procrastinate# any longer.";
|
|
171
|
message[3] = "* I had to... get a job. ;v;";
|
|
172
|
message[4] = "* Signed up for the Royal Guard.";
|
|
173
|
message[5] = "* I'm not one for combat but# with my new skills, I could# make a mighty fine puzzle!";
|
|
174
|
message[6] = "* Had to tell Chujin the good# news so I brought it up while# we were on break.";
|
|
175
|
message[7] = "* To my surprise, he wasn't# happy.";
|
|
176
|
message[8] = "* Said the job was dangerous.";
|
|
177
|
message[9] = "* That humans themselves are# dangerous.";
|
|
178
|
message[10] = "* I don't wanna believe what he# told me but...";
|
|
179
|
message[11] = "* ...the look in his eyes was# incredibly sincere.";
|
|
180
|
message[12] = "* So... yeah.";
|
|
181
|
message[13] = "* On the bright side, I can# stave off my newfound paranoia,";
|
|
182
|
message[14] = "* Because I was assigned boring# Lab duty.";
|
|
183
|
message[15] = "* Stand outside the Lab doors# and keep watch. Fuuuuuuun. TvT#";
|
|
184
|
sndfnt_array[16] = 391;
|
|
185
|
message[16] = "* (The following entry is ripped# out.)";
|
|
186
|
}
|
|
187
|
if (!global.dialogue_open)
|
|
188
|
{
|
|
189
|
scr_cutscene_endscr_cutscene_end
function scr_cutscene_end()
{
global.cutscene = false;
obj_pl.alarm[0] = 1;
} ();
|
|
190
|
interacted_with = false;
|
|
191
|
}
|
|
192
|
}
|
|
193
|
}
|