Ifpinventory

From EDukeWiki
Revision as of 18:01, 1 February 2005 by Usurper (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ifpinventory <inventory item> <value>

Returns true if the current amount of the inventory item being tested is not equal to <value>. Valid values for <inventory item> are:

  • GET_ACCESS
  • GET_BOOTS
  • GET_FIRSTAID
  • GET_HEATS
  • GET_HOLODUKE
  • GET_JETPACK
  • GET_SCUBA
  • GET_SHIELD
  • GET_STEROIDS

For testing inventory amounts other than equal or less than, it is easier to use the player member functions.