1 |
event_inherited(); |
2 |
if (!interact) |
3 |
exit; |
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 |
with (msg) |
9 |
{ |
10 |
talker[0] = other.object_index; |
11 |
message[0] = "* Hey, kid."; |
12 |
message[1] = "* Glad you decided to# come back."; |
13 |
message[2] = "* The last time we saw# each other wasn't too# pretty, heh."; |
14 |
message[3] = "* Uh, what I'm gettin' at# is..."; |
15 |
message[4] = "* Sorry for all those# hurtful things I said."; |
16 |
message[5] = "* My temper gets the best# of me sometimes..."; |
17 |
message[6] = "* Trying to work on it."; |
18 |
prt[0] = 451; |
19 |
prt[1] = 452; |
20 |
prt[2] = 454; |
21 |
prt[3] = 451; |
22 |
prt[4] = 454; |
23 |
prt[5] = 452; |
24 |
prt[6] = 451; |
25 |
} |
26 |
npc_flag = 1; |
27 |
break; |
28 |
case 1: |
29 |
with (msg) |
30 |
{ |
31 |
talker[0] = other.object_index; |
32 |
message[0] = "* Doesn't Moray sound# great?"; |
33 |
message[1] = "* I tried to learn the# guitar once but my# fingers were too large."; |
34 |
message[2] = "* Just one covered all# six strings."; |
35 |
message[3] = "* Still, I do enjoy the# instrument.\t"; |
36 |
message[4] = "* Maybe someone could# build a guitar big# enough for me?"; |
37 |
message[5] = "* One day, kid. One day."; |
38 |
prt[0] = 452; |
39 |
prt[1] = 453; |
40 |
prt[2] = 454; |
41 |
prt[3] = 452; |
42 |
prt[4] = 451; |
43 |
prt[5] = 451; |
44 |
} |
45 |
npc_flag = 2; |
46 |
break; |
47 |
case 2: |
48 |
with (msg) |
49 |
{ |
50 |
talker[0] = other.object_index; |
51 |
message[0] = "* Ya know... I guess you# do make a pretty good# deputy.\t"; |
52 |
message[1] = "* Good luck, wherever you# go next."; |
53 |
prt[0] = 454; |
54 |
prt[1] = 451; |
55 |
} |
56 |
break; |
57 |
} |
58 |
if (ds_map_find_value(global.npc_map, npc_id) != npc_flag) |
59 |
ds_map_replace(global.npc_map, npc_id, npc_flag); |