1 |
event_inherited() |
2 |
if (is_talking == 1 && image_speed > 0) |
3 |
{ |
4 |
if (sprite_index != spr_npc_cooper_talk) |
5 |
sprite_index = spr_npc_cooper_talk |
6 |
} |
7 |
else |
8 |
sprite_index = spr_npc_cooper_idle |
9 |
if interact |
10 |
{ |
11 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
12 |
is_talking = 1 |
13 |
switch npc_flag |
14 |
{ |
15 |
case 0: |
16 |
with (msg) |
17 |
{ |
18 |
message[0] = "* I love this place!" |
19 |
message[1] = "* It has a great sense of# community, there's not much# like it anywhere else!" |
20 |
message[2] = "* There's a new friend to make# every time I go outside!" |
21 |
message[3] = "* Never too many friends for ol'# Cooper!" |
22 |
} |
23 |
npc_flag = 1 |
24 |
break |
25 |
case 1: |
26 |
with (msg) |
27 |
{ |
28 |
message[0] = "* I tried hanging around the# Mines, but that place confuses# me." |
29 |
message[1] = "* Everywhere I step there's# another puzzle blocking my way!" |
30 |
message[2] = "* I don't get it, what's the# point?" |
31 |
} |
32 |
npc_flag = 2 |
33 |
break |
34 |
case 2: |
35 |
with (msg) |
36 |
{ |
37 |
message[0] = "* There aren't many turtle# monsters like me around here." |
38 |
message[1] = "* There's this one in Snowdin,# but he's way too popular to# ever talk to me..." |
39 |
message[2] = "* Maybe someday we can be# friends!" |
40 |
} |
41 |
break |
42 |
} |
43 |
|
44 |
} |