Ifpinventory: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
Line 11: Line 11:
*GET_SHIELD
*GET_SHIELD
*GET_STEROIDS
*GET_STEROIDS
For testing inventory amounts other than equal or less than, it is easier to use the [[player member functions]].
Inventory amounts may also be tested and adjusted using the [[player member functions]].

Revision as of 18:03, 1 February 2005

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

Inventory amounts may also be tested and adjusted using the player member functions.