1 |
if (interact && waiter == 0) |
2 |
{ |
3 |
if (global.route == 3) |
4 |
{ |
5 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
6 |
with (msg) |
7 |
message[0] = "* (An abandoned table.)" |
8 |
} |
9 |
else |
10 |
waiter = 1 |
11 |
} |
12 |
if (waiter == 1) |
13 |
{ |
14 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
15 |
with (msg) |
16 |
{ |
17 |
message[0] = "* (A table for three with a few# empty glasses.)" |
18 |
if (other.npc_flag == 1) |
19 |
{ |
20 |
other.waiter = 0 |
21 |
return; |
22 |
} |
23 |
message[1] = "* (A few G's from a past tip# catch your eye.)" |
24 |
message[2] = "* (Take it?)" |
25 |
ch_msg = 2 |
26 |
ch[1] = "Yes" |
27 |
ch[2] = "No" |
28 |
if (outcome == 1) |
29 |
{ |
30 |
message[3] = "* (You got 10G! Happy?)" |
31 |
audio_play_sound(snd_success, 1, 0) |
32 |
other.npc_flag = 1 |
33 |
other.waiter = 0 |
34 |
} |
35 |
if (outcome == 2) |
36 |
{ |
37 |
message[3] = "* (It doesn't belong to you# anyway.)" |
38 |
other.waiter = 0 |
39 |
} |
40 |
} |
41 |
} |
42 |
image_alpha = 0 |