Ifpinventory: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Helixhorned (talk | contribs) ifpinventory is really weird |
||
Line 1: | Line 1: | ||
'''ifpinventory''' <inventory item> <value> | '''ifpinventory''' <inventory item> <value> { '''''success_branch...''''' } | ||
For the following <inventory item>s, takes '''''success_branch''''' if the ''current player'' 's amount of the inventory item being tested is '''not equal''' to <value>: | |||
*GET_BOOTS | *GET_BOOTS | ||
*GET_FIRSTAID | *GET_FIRSTAID | ||
Line 9: | Line 8: | ||
*GET_JETPACK | *GET_JETPACK | ||
*GET_SCUBA | *GET_SCUBA | ||
*GET_STEROIDS | *GET_STEROIDS | ||
<br> | |||
For access cards (<inventory item> is GET_ACCESS), '''''success_branch''''' is taken whenever the ''current player'' '''has got''' the respective (determined by the palette of the ''current actor'') access card. | |||
<br> | |||
For armor (<inventory item> is GET_SHIELD), '''''success_branch''''' is taken whenever the armor amount is '''not''' equal to the maximum armor amount. [Duke3D 1.5: maximum health]<br> | |||
Note that <value> is ignored for the two last cases. | |||
<br> | |||
<br> | |||
Inventory amounts may also be tested and adjusted using the [[player member functions]]. | Inventory amounts may also be tested and adjusted using the [[player member functions]]. | ||
Revision as of 12:40, 2 December 2012
ifpinventory <inventory item> <value> { success_branch... }
For the following <inventory item>s, takes success_branch if the current player 's amount of the inventory item being tested is not equal to <value>:
- GET_BOOTS
- GET_FIRSTAID
- GET_HEATS
- GET_HOLODUKE
- GET_JETPACK
- GET_SCUBA
- GET_STEROIDS
For access cards (<inventory item> is GET_ACCESS), success_branch is taken whenever the current player has got the respective (determined by the palette of the current actor) access card.
For armor (<inventory item> is GET_SHIELD), success_branch is taken whenever the armor amount is not equal to the maximum armor amount. [Duke3D 1.5: maximum health]
Note that <value> is ignored for the two last cases.
Inventory amounts may also be tested and adjusted using the player member functions.