1 |
event_inherited() |
2 |
if interact |
3 |
waiter = 1 |
4 |
if (waiter == 1) |
5 |
{ |
6 |
if (obj_pl.direction == 90) |
7 |
{ |
8 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
9 |
with (msg) |
10 |
{ |
11 |
message[0] = "* Chujin Ketsukane " |
12 |
message[1] = "* The best of us." |
13 |
} |
14 |
waiter = 0 |
15 |
} |
16 |
else if (obj_pl.direction == 270) |
17 |
{ |
18 |
if (npc_flag == 0) |
19 |
{ |
20 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
21 |
with (msg) |
22 |
{ |
23 |
if (message_current == 0) |
24 |
{ |
25 |
ch_msg = 1 |
26 |
ch[1] = "Yes" |
27 |
ch[2] = "No" |
28 |
} |
29 |
message[0] = "* (You notice a subtle indention# in the dirt behind the# gravestone.)" |
30 |
message[1] = "* (Inspect further?)" |
31 |
if (outcome == 1) |
32 |
{ |
33 |
if (message_current == 1) |
34 |
{ |
35 |
message[2] = "* (You dig into the ground with# your hands until you hit# something solid.)" |
36 |
message[3] = "* (It's a videotape with a blank# label.)" |
37 |
message[4] = "* (Take it?)" |
38 |
ch_msg = 4 |
39 |
ch[1] = "Yes" |
40 |
ch[2] = "No" |
41 |
} |
42 |
else 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
}
}
} ("Videotape") |
43 |
{ |
44 |
message[5] = "* (You got a Videotape!)" |
45 |
other.npc_flag += 1 |
46 |
} |
47 |
else |
48 |
{ |
49 |
message[5] = "* (Not enough space.)" |
50 |
audio_play_sound(snd_fail, 1, 0) |
51 |
other.waiter = 0 |
52 |
} |
53 |
} |
54 |
if (outcome == 2) |
55 |
{ |
56 |
message[2] = "* (Disturbing a resting place# like this might be illegal.)" |
57 |
other.waiter = 0 |
58 |
} |
59 |
} |
60 |
} |
61 |
else |
62 |
waiter = 0 |
63 |
} |
64 |
} |
65 |
image_alpha = 0 |