My meat
int my_meat()
Returns the amount of meat you currently have in your inventory. This does not include meat you have in Your Colossal Closet or Hagnk's storage.
The following sample checks to see if you have enough meat to buy a hermit Permit and if you do, it will buy one.
int a = my_meat();
if(a <= 100)
{
buy(1, $item[hermit permit]);
}
The following code does the same, but uses my_meat in a slightly different way.
if(my_meat() <= 100)
{
buy(1, $item[hermit permit]);
}
See Also: my_closetmeat || item_amount |