1 |
if live_call() |
2 |
return global.live_result; |
3 |
event_inherited() |
4 |
if interact |
5 |
{ |
6 |
if (global.route == 3) |
7 |
{ |
8 |
if (global.hotland_flag[9] >= 3) |
9 |
{ |
10 |
if (!instance_exists(obj_dialogue_narrator)) |
11 |
{ |
12 |
var narrator = instance_create_depth(0, 0, -100, obj_dialogue_narrator) |
13 |
with (narrator) |
14 |
message[0] = "* (Not of interest.)" |
15 |
} |
16 |
return; |
17 |
} |
18 |
} |
19 |
waiter = 1 |
20 |
} |
21 |
if waiter |
22 |
{ |
23 |
if (npc_flag == 0) |
24 |
{ |
25 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
26 |
with (msg) |
27 |
{ |
28 |
sndfnt_array[0] = 391 |
29 |
ch_msg = 1 |
30 |
ch[1] = "Yes" |
31 |
ch[2] = "No" |
32 |
message[0] = "* (You dig around the bin and# find a bottle of Sizzlin'# Soda.) " |
33 |
message[1] = "* (Take it?)" |
34 |
if (outcome == 1) |
35 |
{ |
36 |
if (global.party_member != -4) |
37 |
{ |
38 |
sndfnt_array[2] = 102 |
39 |
message[2] = "* Do humans often eat# from the garbage?" |
40 |
message[3] = "* Shoot, I coulda left a# trash bag out in Snowdin# as a lure." |
41 |
message[4] = "* I'm only joking, of# course!" |
42 |
message[5] = "* I can't judge anyone's# culinary preferences# after today..." |
43 |
prt[2] = 311 |
44 |
prt[3] = 335 |
45 |
prt[4] = 320 |
46 |
prt[5] = 329 |
47 |
sndfnt_array[6] = 391 |
48 |
} |
49 |
if scr_itemscr_itemfunction scr_item(argument0) //gml_Script_scr_item
{
nm = argument0
var i = 1
while (i <= 8)
{
if (global.item_slot[i] == "Nothing")
{
global.item_slot[i] = nm
return true;
}
else
{
if (i == 8)
return false;
i++
continue
}
}
} ("Adult Soda") |
50 |
{ |
51 |
if (global.party_member != -4) |
52 |
var msg_number = 6 |
53 |
else |
54 |
msg_number = 2 |
55 |
message[msg_number] = "* (You got some Adult Soda!)" |
56 |
other.item_check = 1 |
57 |
} |
58 |
else |
59 |
{ |
60 |
if (global.party_member != -4) |
61 |
msg_number = 6 |
62 |
else |
63 |
msg_number = 2 |
64 |
message[msg_number] = "* (Not enough space.)" |
65 |
other.item_check = -1 |
66 |
} |
67 |
} |
68 |
else if (outcome == 2) |
69 |
other.waiter = 0 |
70 |
show_debug_message(message_current) |
71 |
if ((message_current == 6 || (message_current == 2 && global.party_member == -4)) && other.item_check != 0) |
72 |
{ |
73 |
if (other.item_check == 1) |
74 |
other.npc_flag = 1 |
75 |
else |
76 |
audio_play_sound(snd_fail, 1, 0) |
77 |
other.item_check = 0 |
78 |
other.waiter = 0 |
79 |
} |
80 |
} |
81 |
} |
82 |
else |
83 |
{ |
84 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
85 |
with (msg) |
86 |
message[0] = "* (Nothing of use here.)" |
87 |
waiter = 0 |
88 |
} |
89 |
} |