1 |
if (destroy_self_noloop && !global.dialogue_open) |
2 |
{ |
3 |
instance_destroy(); |
4 |
exit; |
5 |
} |
6 |
scr_textscr_textfunction scr_text()
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue);
} (); |
7 |
with (msg) |
8 |
{ |
9 |
if (other.current_mail == "Steamworks ID" || other.current_mail == "Martlet's Letter") |
10 |
{ |
11 |
message[0] = "* You cannot drop the# " + other.current_mail + "."; |
12 |
other.destroy_self_noloop = true; |
13 |
exit; |
14 |
} |
15 |
message[0] = "* Are you sure you want to# drop the mail?"; |
16 |
ch_msg = 0; |
17 |
ch[1] = "Yes"; |
18 |
ch[2] = "No"; |
19 |
if (outcome == 1) |
20 |
{ |
21 |
scr_mail_remove(other.current_mail); |
22 |
instance_destroy(other); |
23 |
} |
24 |
if (outcome == 2) |
25 |
instance_destroy(other); |
26 |
} |