1 |
scr_textscr_textfunction scr_text() //gml_Script_scr_text
{
if (!instance_exists(obj_dialogue))
msg = instance_create(x, y, obj_dialogue)
} () |
2 |
if (scr_determine_item_droppable_yellowscr_determine_item_droppable_yellowfunction scr_determine_item_droppable_yellow(argument0) //gml_Script_scr_determine_item_droppable_yellow
{
var item_slot = argument0
switch item_slot
{
case "Missing Poster":
case "Snowdin Map":
case "Matches":
case "Lukewarm Coffee":
case "Soggy Mitten":
case "H. Acid":
return false;
case "Pickaxe":
case "Flint":
case "Steel Buckle":
if (global.dunes_flag[4] >= 2)
return true;
else
return false;
break
default:
return true;
}
} (current_item) == true) |
3 |
{ |
4 |
with (msg) |
5 |
{ |
6 |
message[0] = "* Are you sure you want to# drop the " + other.current_item + "?" |
7 |
ch_msg = 0 |
8 |
ch[1] = "Yes" |
9 |
ch[2] = "No" |
10 |
if (outcome == 1) |
11 |
{ |
12 |
scr_item_removescr_item_removefunction scr_item_remove(argument0) //gml_Script_scr_item_remove
{
i = 1
while (i <= 8)
{
if (global.item_slot[i] == argument0)
{
while (i < 8)
{
global.item_slot[i] = global.item_slot[(i + 1)]
i += 1
}
global.item_slot[8] = "Nothing"
return true;
}
else
{
if (i == 8)
return false;
i += 1
continue
}
}
} (other.current_item) |
13 |
instance_destroy(other) |
14 |
} |
15 |
if (outcome == 2) |
16 |
instance_destroy(other) |
17 |
} |
18 |
} |
19 |
else |
20 |
{ |
21 |
with (msg) |
22 |
message[0] = "* You cannot drop the# " + other.current_item + "." |
23 |
if (!global.dialogue_open) |
24 |
instance_destroy() |
25 |
} |