| 1 |
event_inherited(); |
| 2 |
depth = 100000; |
| 3 |
if (global.dunes_flag[16] > 0 && npc_flag <= 2) |
| 4 |
npc_flag = 3; |
| 5 |
if (global.dunes_flag[24] != 0 && npc_flag <= 2) |
| 6 |
npc_flag = 3; |
| 7 |
if (global.geno_complete[2] && npc_flag < 4) |
| 8 |
npc_flag = 4; |
| 9 |
if (interact) |
| 10 |
can_talk = true; |
| 11 |
if (can_talk) |
| 12 |
{ |
| 13 |
switch (npc_flag) |
| 14 |
{ |
| 15 |
case 0: |
| 16 |
if (scene == 0) |
| 17 |
{ |
| 18 |
scr_cutscene_start(); |
| 19 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 20 |
is_talking = true; |
| 21 |
with (msg) |
| 22 |
{ |
| 23 |
color = true; |
| 24 |
col_modif[0] = 65535; |
| 25 |
ch_msg = 2; |
| 26 |
ch[1] = "Hazards"; |
| 27 |
ch[2] = "Foreman"; |
| 28 |
message[0] = "* Hello there!"; |
| 29 |
message[1] = "* My name is Angie! I'm# the receptionist of# Mining Co."; |
| 30 |
message[2] = "* How may I help you?"; |
| 31 |
prt[0] = 363; |
| 32 |
prt[1] = 364; |
| 33 |
prt[2] = 364; |
| 34 |
if (outcome == 1) |
| 35 |
{ |
| 36 |
message[3] = "* Yes, I am aware of the# dangers that lie# outside the mines."; |
| 37 |
message[4] = "* I could investigate# but..."; |
| 38 |
message[5] = "* My husband, Gillbert# needs to take more# initiative."; |
| 39 |
message[6] = "* I asked him to do it,# let's see... six hours# ago."; |
| 40 |
message[7] = "* Sigh..."; |
| 41 |
message[8] = "* Baby steps."; |
| 42 |
message[9] = "* Anyways..."; |
| 43 |
message[10] = "* I've heard that several# hazards have been seen# around the Dunes."; |
| 44 |
message_col[10][0] = " # # Dunes "; |
| 45 |
message[11] = "* I hope it isn't those# Wild East monsters# pulling pranks."; |
| 46 |
message_col[11][0] = " # Wild East # "; |
| 47 |
message[12] = "* They tend to step out# of line every now and# then."; |
| 48 |
message[13] = "* I can't help but feel# they're a bad influence# on Moray."; |
| 49 |
message[14] = "* Ah, these matters don't# pertain to you.# I apologize."; |
| 50 |
prt[3] = 363; |
| 51 |
prt[4] = 365; |
| 52 |
prt[5] = 363; |
| 53 |
prt[6] = 363; |
| 54 |
prt[7] = 365; |
| 55 |
prt[8] = 363; |
| 56 |
prt[9] = 363; |
| 57 |
prt[10] = 363; |
| 58 |
prt[11] = 363; |
| 59 |
prt[12] = 365; |
| 60 |
prt[13] = 365; |
| 61 |
prt[14] = 363; |
| 62 |
other.npc_flag++; |
| 63 |
other.can_talk = false; |
| 64 |
other.scene = 0; |
| 65 |
global.cutscene = false; |
| 66 |
} |
| 67 |
if (outcome == 2) |
| 68 |
{ |
| 69 |
instance_destroy(); |
| 70 |
other.scene++; |
| 71 |
} |
| 72 |
} |
| 73 |
} |
| 74 |
else if (scene == 1) |
| 75 |
{ |
| 76 |
is_talking = true; |
| 77 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 78 |
with (msg) |
| 79 |
{ |
| 80 |
message[0] = "* The Foreman right over# there is my husband,# Gillbert."; |
| 81 |
message[1] = "* He's the boss of the# mines but I do more# than him around here."; |
| 82 |
prt[0] = 363; |
| 83 |
prt[1] = 364; |
| 84 |
} |
| 85 |
timer = 20; |
| 86 |
if (!global.dialogue_open) |
| 87 |
scene++; |
| 88 |
} |
| 89 |
else if (scene == 2) |
| 90 |
{ |
| 91 |
if (!scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 92 |
exit; |
| 93 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 94 |
with (msg) |
| 95 |
{ |
| 96 |
if (message_current == 1 || message_current == 5) |
| 97 |
{ |
| 98 |
obj_big_boss.is_talking = false; |
| 99 |
other.is_talking = true; |
| 100 |
} |
| 101 |
else |
| 102 |
{ |
| 103 |
obj_big_boss.is_talking = true; |
| 104 |
other.is_talking = false; |
| 105 |
} |
| 106 |
message[0] = "* What was that?"; |
| 107 |
prt[0] = 359; |
| 108 |
message[1] = "* I work harder than you."; |
| 109 |
prt[1] = 363; |
| 110 |
message[2] = "* Hey!"; |
| 111 |
message[3] = "* ..."; |
| 112 |
message[4] = "* Yeah, you're right."; |
| 113 |
prt[2] = 361; |
| 114 |
prt[3] = 361; |
| 115 |
prt[4] = 359; |
| 116 |
message[5] = "* It's a mutual# understanding."; |
| 117 |
prt[5] = 364; |
| 118 |
message[6] = "* And I love you for it."; |
| 119 |
prt[6] = 362; |
| 120 |
} |
| 121 |
if (!global.dialogue_open) |
| 122 |
{ |
| 123 |
scene = 0; |
| 124 |
npc_flag++; |
| 125 |
can_talk = false; |
| 126 |
scr_cutscene_end(); |
| 127 |
} |
| 128 |
} |
| 129 |
break; |
| 130 |
case 1: |
| 131 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 132 |
is_talking = true; |
| 133 |
with (msg) |
| 134 |
{ |
| 135 |
sndfnt = 99; |
| 136 |
message[0] = "* This business is more# important than it may# seem."; |
| 137 |
message[1] = "* It isn't easy for# monsters to find a job# these days."; |
| 138 |
message[2] = "* For that reason, we# hire anyone who applies!"; |
| 139 |
message[3] = "* All except for children.# I think that's illegal."; |
| 140 |
prt[0] = 363; |
| 141 |
prt[1] = 365; |
| 142 |
prt[2] = 363; |
| 143 |
prt[3] = 363; |
| 144 |
} |
| 145 |
can_talk = false; |
| 146 |
npc_flag++; |
| 147 |
break; |
| 148 |
case 2: |
| 149 |
if (scene == 0) |
| 150 |
{ |
| 151 |
scr_cutscene_start(); |
| 152 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 153 |
is_talking = true; |
| 154 |
with (msg) |
| 155 |
{ |
| 156 |
sndfnt = 99; |
| 157 |
message[0] = "* You have a good journey!"; |
| 158 |
message[1] = "* Heard it could get# rocky!"; |
| 159 |
prt[0] = 364; |
| 160 |
prt[1] = 363; |
| 161 |
} |
| 162 |
if (!global.dialogue_open) |
| 163 |
{ |
| 164 |
timer = 20; |
| 165 |
scene++; |
| 166 |
} |
| 167 |
} |
| 168 |
else if (scene == 1) |
| 169 |
{ |
| 170 |
if (!scr_timerscr_timerfunction scr_timer()
{
if (timer > 0)
{
timer--;
return false;
}
else
{
return true;
}
} ()) |
| 171 |
exit; |
| 172 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 173 |
with (msg) |
| 174 |
{ |
| 175 |
sndfnt = 99; |
| 176 |
if (message_current == 1) |
| 177 |
{ |
| 178 |
obj_big_boss.is_talking = false; |
| 179 |
other.is_talking = true; |
| 180 |
} |
| 181 |
else |
| 182 |
{ |
| 183 |
obj_big_boss.is_talking = true; |
| 184 |
other.is_talking = false; |
| 185 |
} |
| 186 |
message[0] = "* Haha! Good one, dear!"; |
| 187 |
message[1] = "* I've been waiting to# say that."; |
| 188 |
message[2] = "* That's my Angie!"; |
| 189 |
prt[0] = 359; |
| 190 |
prt[1] = 364; |
| 191 |
prt[2] = 362; |
| 192 |
} |
| 193 |
if (!global.dialogue_open) |
| 194 |
{ |
| 195 |
scene = 0; |
| 196 |
can_talk = false; |
| 197 |
scr_cutscene_end(); |
| 198 |
} |
| 199 |
} |
| 200 |
break; |
| 201 |
case 3: |
| 202 |
is_talking = true; |
| 203 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 204 |
with (msg) |
| 205 |
{ |
| 206 |
sndfnt = 99; |
| 207 |
message[0] = "* Hope you've had a good# time at Mining Co.!"; |
| 208 |
prt[0] = 364; |
| 209 |
} |
| 210 |
can_talk = false; |
| 211 |
break; |
| 212 |
case 4: |
| 213 |
is_talking = true; |
| 214 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 215 |
with (msg) |
| 216 |
{ |
| 217 |
sndfnt = 99; |
| 218 |
message[0] = "* Oh, hello."; |
| 219 |
message[1] = "* If you need a place to# hide out right now, you# can stay here."; |
| 220 |
message[2] = "* Would hate a youngin# like you to get into# trouble."; |
| 221 |
prt[0] = 365; |
| 222 |
prt[1] = 363; |
| 223 |
prt[2] = 365; |
| 224 |
} |
| 225 |
can_talk = false; |
| 226 |
npc_flag++; |
| 227 |
break; |
| 228 |
case 5: |
| 229 |
is_talking = true; |
| 230 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 231 |
with (msg) |
| 232 |
{ |
| 233 |
sndfnt = 99; |
| 234 |
message[0] = "* I hope little Moray is# alright..."; |
| 235 |
message[1] = "* Need to go to the Wild# East as soon as I can."; |
| 236 |
prt[0] = 365; |
| 237 |
prt[1] = 365; |
| 238 |
} |
| 239 |
can_talk = false; |
| 240 |
break; |
| 241 |
} |
| 242 |
} |