scr_itemget_anytype_textfunction
scr_itemget_anytype_text()
{
noroom = 0;
scr_itemget_anytype(argument[0], argument[1]);
var itemgetstring = "";
itemname = "NULL";
itemtypename = "NULL";
var _itemtype = argument1;
var _itemid = argument0;
if (_itemtype == "armor")
{
scr_armorinfo(_itemid);
itemname = armornametemp;
itemtypename = stringsetloc(
ARMORs"ARMORs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_22_0"
);
}
else if (_itemtype == "weapon")
{
scr_weaponinfo(_itemid);
itemname = weaponnametemp;
itemtypename = stringsetloc(
WEAPONs"WEAPONs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_29_0"
);
}
if (_itemtype == "item")
{
scr_iteminfo(_itemid);
itemname = itemnameb;
itemtypename = stringsetloc(
ITEMs"ITEMs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_36_0"
);
if (_pocketed)
itemtypename = stringsetloc(
STORAGE"STORAGE", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_38_0"
);
}
if (_itemtype == "key")
{
scr_keyiteminfo(_itemid);
itemname = tempkeyitemname;
itemtypename = stringsetloc(
KEY ITEMs"KEY ITEMs", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_44_0"
);
}
if (_itemtype == "money")
{
noroom = 0;
itemtypename = stringsetloc(
MONEY HOLE"MONEY HOLE", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_51_0"
);
itemname = string(_itemid) + stringsetloc(
Dark Dollars" Dark Dollars", "scr_itemget_anytype_text_slash_scr_itemget_anytype_text_gml_52_0"
);
}
if (noroom == 0)
itemgetstring = stringsetsubloc("* (\\cY~1\\cW was added to your \\cY~2\\cW.)", itemname, itemtypename, "obj_treasure_room_slash_Other_10_gml_76_0");
else
itemgetstring = stringsetsubloc("* (You have too many \\cY~2\\cW to take \\cY~1\\c0.)", itemname, itemtypename, "obj_treasure_room_slash_Other_10_gml_83_0");
if (argument_count >= 3)
itemgetstring += argument[2];
else
itemgetstring += "/%";
return itemgetstring;
}