//Sets the value at [a0,a1,a3] of user inventories.
//argument0 - "Array index" 1, or rather the UID.
//argument1 - "Array index" 2, or rather the category.
//argument2 - "Array index" 3, or rather the item number.
//argument3 - Setting a real(0) or a string(1) value?
//argument4 - The value to set.

if(argument3)
{
execute_string("global.u" + string(argument0) + "inv_itemdb[" + string(argument1) + "," + string(argument2) +
               "] = '" + argument4 + "';");
}
else
{
execute_string("global.u" + string(argument0) + "inv_itemdb[" + string(argument1) + "," + string(argument2) +
               "] = " + string(argument4) + ";");
}