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] = "* Oh. It's you." |
12 |
message[1] = "* ..." |
13 |
message[2] = "* ..." |
14 |
message[3] = "* ...What?" |
15 |
prt[0] = 435 |
16 |
prt[1] = 437 |
17 |
prt[2] = 437 |
18 |
prt[3] = 439 |
19 |
} |
20 |
npc_flag = 1 |
21 |
break |
22 |
case 1: |
23 |
with (msg) |
24 |
{ |
25 |
talker[0] = other.object_index |
26 |
message[0] = "* I'm trying to listen to# my friend perform, if# you don't mind." |
27 |
message[1] = "* This song is one of my# favorites but..." |
28 |
message[2] = "* I don't know how much# longer Moray will be# playing it." |
29 |
message[3] = "* Not gonna spend its# length chatting, sorry." |
30 |
prt[0] = 435 |
31 |
prt[1] = 437 |
32 |
prt[2] = 437 |
33 |
prt[3] = 439 |
34 |
} |
35 |
npc_flag = 2 |
36 |
break |
37 |
case 2: |
38 |
with (msg) |
39 |
{ |
40 |
talker[0] = other.object_index |
41 |
message[0] = "* I don't wanna talk,# alright?" |
42 |
message[1] = "* Just because you showed# up and solved a# problem..." |
43 |
message[2] = "* You think I should# magically grow as a# monster?" |
44 |
message[3] = "* Break out of my shell# and \"complete my arc?\"" |
45 |
message[4] = "* Nah..." |
46 |
message[5] = "* Growth is for main# characters like Star." |
47 |
message[6] = "* I might be as 2D as my# cards but hey, that's# fine by me." |
48 |
prt[0] = 439 |
49 |
prt[1] = 437 |
50 |
prt[2] = 435 |
51 |
prt[3] = 435 |
52 |
prt[4] = 437 |
53 |
prt[5] = 437 |
54 |
prt[6] = 439 |
55 |
} |
56 |
npc_flag = 3 |
57 |
break |
58 |
case 3: |
59 |
with (msg) |
60 |
{ |
61 |
talker[0] = other.object_index |
62 |
message[0] = "* ..." |
63 |
prt[0] = 437 |
64 |
} |
65 |
break |
66 |
} |
67 |
|
68 |
if (ds_map_find_value(global.npc_map, npc_id) != npc_flag) |
69 |
ds_map_replace(global.npc_map, npc_id, npc_flag) |