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