My meat: Difference between revisions
Jump to navigation
Jump to search
imported>Raeith m My meat moved to My meat Temp |
imported>Raeith m My meat Temp moved to My meat |
(No difference)
|
Revision as of 06:36, 17 January 2007
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 places my_meat in the if statement rather than storing it in a variable first.
if(my_meat() <= 100)
{
buy(1, $item[hermit permit]);
}
See Also: my_closetmeat || item_amount |