1 |
event_inherited() |
2 |
if (!interact) |
3 |
return; |
4 |
scr_textscr_textfunction scr_text() //gml_Script_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] = "* DEPUTY!!!" |
12 |
message[1] = "* Howdy!" |
13 |
message[2] = "* I am ever so delighted# that you returned." |
14 |
message[3] = "* ...Makes my parting# letter a bit awkward but# hey, s'all good!" |
15 |
prt[0] = 422 |
16 |
prt[1] = 417 |
17 |
prt[2] = 417 |
18 |
prt[3] = 415 |
19 |
} |
20 |
npc_flag = 1 |
21 |
break |
22 |
case 1: |
23 |
with (msg) |
24 |
{ |
25 |
talker[0] = other.object_index |
26 |
message[0] = "* Don't ya have important# places to be?" |
27 |
message[1] = "* I mean, I'm flattered# you wanted to see me# but..." |
28 |
message[2] = "* I already said goodbye!" |
29 |
message[3] = "* Now I gotta go through# the feisty five stages# of grief AGAIN!" |
30 |
prt[0] = 417 |
31 |
prt[1] = 415 |
32 |
prt[2] = 417 |
33 |
prt[3] = 420 |
34 |
} |
35 |
npc_flag = 2 |
36 |
break |
37 |
case 2: |
38 |
with (msg) |
39 |
{ |
40 |
talker[0] = other.object_index |
41 |
message[0] = "* Now that I think about# it..." |
42 |
message[1] = "* ...The trail up ahead# must be pretty scary." |
43 |
message[2] = "* Feel free to relax for# a bit before you go!" |
44 |
message[3] = "* Moray's playin' a# lovely set tonight." |
45 |
message[4] = "* They have been on this# particular tune for a# while though..." |
46 |
prt[0] = 407 |
47 |
prt[1] = 418 |
48 |
prt[2] = 417 |
49 |
prt[3] = 415 |
50 |
prt[4] = 421 |
51 |
} |
52 |
npc_flag = 3 |
53 |
break |
54 |
case 3: |
55 |
with (msg) |
56 |
{ |
57 |
talker[0] = other.object_index |
58 |
message[0] = "* Wish nothin' but the# absolute best for ya,# partner!" |
59 |
message[1] = "* Yeehaw!" |
60 |
prt[0] = 417 |
61 |
prt[1] = 422 |
62 |
} |
63 |
break |
64 |
} |
65 |
|
66 |
if (ds_map_find_value(global.npc_map, npc_id) != npc_flag) |
67 |
ds_map_replace(global.npc_map, npc_id, npc_flag) |