| 1 |
event_inherited(); |
| 2 |
if (interact) |
| 3 |
{ |
| 4 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 5 |
switch (npc_flag) |
| 6 |
{ |
| 7 |
case 0: |
| 8 |
waiter = 1; |
| 9 |
npc_flag = 1; |
| 10 |
break; |
| 11 |
case 1: |
| 12 |
with (msg) |
| 13 |
{ |
| 14 |
talker[0] = other.object_index; |
| 15 |
message[0] = "* I keep trying to sneak# a drink from Dina but# she won't let me!"; |
| 16 |
message[1] = "* It's not fair, being# the ONLY member who# can't touch the stuff."; |
| 17 |
message[2] = "* Oh, wait, am I being a# bad influence?"; |
| 18 |
message[3] = "* Right, uhhhh..."; |
| 19 |
message[4] = "* Vegetables! Education!# The stock market!# OoooOOOooo!!"; |
| 20 |
prt[0] = 460; |
| 21 |
prt[1] = 460; |
| 22 |
prt[2] = 456; |
| 23 |
prt[3] = 455; |
| 24 |
prt[4] = 458; |
| 25 |
} |
| 26 |
npc_flag = 2; |
| 27 |
break; |
| 28 |
case 2: |
| 29 |
with (msg) |
| 30 |
{ |
| 31 |
talker[0] = other.object_index; |
| 32 |
message[0] = "* While I'm sad you're# leaving us, I know# you'll do great things."; |
| 33 |
message[1] = "* Give 'em heck, Clover!"; |
| 34 |
prt[0] = 455; |
| 35 |
prt[1] = 458; |
| 36 |
} |
| 37 |
break; |
| 38 |
} |
| 39 |
} |
| 40 |
if (ds_map_find_value(global.npc_map, npc_id) != npc_flag) |
| 41 |
ds_map_replace(global.npc_map, npc_id, npc_flag); |
| 42 |
if (waiter == 1) |
| 43 |
{ |
| 44 |
with (msg) |
| 45 |
{ |
| 46 |
talker[0] = other.object_index; |
| 47 |
message[0] = "* Clover!! Hiya!"; |
| 48 |
message[1] = "* Just dropping by?"; |
| 49 |
message[2] = "* Yeah..."; |
| 50 |
message[3] = "* Sucks you aren't# actually joining the# squad."; |
| 51 |
message[4] = "* With two small bodies,# we could steal SO much# sh-"; |
| 52 |
message[5] = "* Uh...\t"; |
| 53 |
message[6] = "* ...I should probably# stop saying the quiet# part out loud, heh!"; |
| 54 |
prt[0] = 458; |
| 55 |
prt[1] = 455; |
| 56 |
prt[2] = 462; |
| 57 |
prt[3] = 455; |
| 58 |
prt[4] = 463; |
| 59 |
prt[5] = 456; |
| 60 |
prt[6] = 462; |
| 61 |
if (message_current == 4) |
| 62 |
{ |
| 63 |
skippable = false; |
| 64 |
message_timer = 15; |
| 65 |
} |
| 66 |
if (message_current > 4) |
| 67 |
{ |
| 68 |
skippable = true; |
| 69 |
other.waiter = 0; |
| 70 |
message_timer = -1; |
| 71 |
} |
| 72 |
} |
| 73 |
} |