| 1 |
event_inherited(); |
| 2 |
if (interact && sprite_index == spr_cafe_npc_gamer) |
| 3 |
{ |
| 4 |
if (obj_pl.x < x) |
| 5 |
{ |
| 6 |
image_xscale = -1; |
| 7 |
x = xstart + 1; |
| 8 |
} |
| 9 |
else |
| 10 |
{ |
| 11 |
image_xscale = 1; |
| 12 |
x = xstart; |
| 13 |
} |
| 14 |
waiter = 1; |
| 15 |
scr_cutscene_start(); |
| 16 |
} |
| 17 |
if (waiter == 0) |
| 18 |
{ |
| 19 |
if (sprite_index == spr_cafe_npc_gamer_talk) |
| 20 |
{ |
| 21 |
sprite_index = spr_cafe_npc_gamer; |
| 22 |
image_index = image_number - 4; |
| 23 |
} |
| 24 |
else if (image_index <= 0) |
| 25 |
{ |
| 26 |
image_speed = 0; |
| 27 |
sprite_index = spr_cafe_npc_gamer; |
| 28 |
} |
| 29 |
else if (image_speed == 0) |
| 30 |
{ |
| 31 |
image_speed = -0.25; |
| 32 |
} |
| 33 |
} |
| 34 |
if (waiter > 0) |
| 35 |
{ |
| 36 |
if (waiter == 1) |
| 37 |
{ |
| 38 |
if (sprite_index == spr_cafe_npc_gamer) |
| 39 |
{ |
| 40 |
if (image_speed == 0) |
| 41 |
image_speed = 0.25; |
| 42 |
if (image_index >= (image_number - 1)) |
| 43 |
{ |
| 44 |
image_speed = 0; |
| 45 |
sprite_index = spr_cafe_npc_gamer_talk; |
| 46 |
waiter = 2; |
| 47 |
} |
| 48 |
} |
| 49 |
exit; |
| 50 |
} |
| 51 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
| 52 |
switch (npc_flag) |
| 53 |
{ |
| 54 |
case 0: |
| 55 |
with (msg) |
| 56 |
{ |
| 57 |
talker[0] = other.object_index; |
| 58 |
message[0] = "* Yo, what do ya want? I'm in# the middle of a gaming sesh."; |
| 59 |
message[1] = "* Oh, you're a kid like me! I# bet you're good at these# machines."; |
| 60 |
message[2] = "* Have you tried out Mew Mew# Love Blaster? It's addicting!"; |
| 61 |
message[3] = "* I suck at it though."; |
| 62 |
message[4] = "* I hear there's a final boss# but I've never seen anyone# reach it."; |
| 63 |
message[5] = "* Bet you could totally kick its# butt!"; |
| 64 |
} |
| 65 |
break; |
| 66 |
case 1: |
| 67 |
with (msg) |
| 68 |
{ |
| 69 |
talker[0] = other.object_index; |
| 70 |
message[0] = "* If you're around the area and# need monsters to hang with,"; |
| 71 |
message[1] = "* My friend group are the# coolest kids around."; |
| 72 |
message[2] = "* The head count has been down# lately... but it's still a fun# time!"; |
| 73 |
} |
| 74 |
break; |
| 75 |
case 2: |
| 76 |
with (msg) |
| 77 |
{ |
| 78 |
talker[0] = other.object_index; |
| 79 |
message[0] = "* Yo, sorry if I'm hogging this# game."; |
| 80 |
message[1] = "* I'm determined to unlock a# secret character I saw on# Undernet."; |
| 81 |
message[2] = "* So far I haven't had any luck,# but it's gotta be real! I saw# the screenshot!"; |
| 82 |
} |
| 83 |
break; |
| 84 |
case 3: |
| 85 |
with (msg) |
| 86 |
{ |
| 87 |
talker[0] = other.object_index; |
| 88 |
message[0] = "* Can't talk. Gaming."; |
| 89 |
} |
| 90 |
break; |
| 91 |
} |
| 92 |
if (!global.dialogue_open) |
| 93 |
{ |
| 94 |
if (npc_flag < 3) |
| 95 |
npc_flag += 1; |
| 96 |
waiter = 0; |
| 97 |
scr_cutscene_end(); |
| 98 |
} |
| 99 |
} |