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] = "* Clover? You're back?" |
12 |
message[1] = "* Um..." |
13 |
message[2] = "* I appreciate you# thinking of us but..." |
14 |
message[3] = "* You should go." |
15 |
prt[0] = 370 |
16 |
prt[1] = 371 |
17 |
prt[2] = 370 |
18 |
prt[3] = 377 |
19 |
} |
20 |
npc_flag = 1 |
21 |
break |
22 |
case 1: |
23 |
with (msg) |
24 |
{ |
25 |
talker[0] = other.object_index |
26 |
message[0] = "* Sorry, I don't mean to# be rude. It's just a# personal situation." |
27 |
message[1] = "* I've found a road to# contentment in this# group..." |
28 |
message[2] = "* I don't want to be# given false hope and# slip back into..." |
29 |
message[3] = "* ..." |
30 |
message[4] = "* Nevermind." |
31 |
prt[0] = 394 |
32 |
prt[1] = 377 |
33 |
prt[2] = 370 |
34 |
prt[3] = 371 |
35 |
prt[4] = 394 |
36 |
} |
37 |
npc_flag = 2 |
38 |
break |
39 |
case 2: |
40 |
with (msg) |
41 |
{ |
42 |
talker[0] = other.object_index |
43 |
message[0] = "* Not sure if you# received it, but I sent# you a letter." |
44 |
message[1] = "* Maybe you being here is# a response to my request# but..." |
45 |
message[2] = "* Please leave us be." |
46 |
prt[0] = 377 |
47 |
prt[1] = 370 |
48 |
prt[2] = 394 |
49 |
} |
50 |
npc_flag = 3 |
51 |
break |
52 |
case 3: |
53 |
with (msg) |
54 |
{ |
55 |
talker[0] = other.object_index |
56 |
message[0] = "* ..." |
57 |
prt[0] = 394 |
58 |
} |
59 |
break |
60 |
} |
61 |
|
62 |
if (ds_map_find_value(global.npc_map, npc_id) != npc_flag) |
63 |
ds_map_replace(global.npc_map, npc_id, npc_flag) |