Template:Inventory: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Doom64hunter moved page Template:Inventory to Template:Inventory icons: There exists another set of definitions for the inventory items themselves.
Tag: New redirect
 
Add Inventory item info template
Tag: Removed redirect
Line 1: Line 1:
#REDIRECT [[Template:Inventory icons]]
The following values are used with [[addinventory]] and [[ifpinventory]]. Not be to be confused with [[inven_icon]].
 
{| {{prettytable}}
!Exposed!!Value!!Label!!Description!!
|-
| No || 0 || GET_STEROIDS || Steroids Powerup. 100% equals an inventory amount of 400. <br> If <code>amount < 400</code>, then it will automatically activate and begin counting down by 1 every game tic until it reaches 0. <br>If <code>amount > 400</code>, the item cannot be used.
|-
| No || 1 || GET_SHIELD || Armor. In eduke32, the upper bound is [[max_shield_amount]]. In Duke 1.5, the upper bound for armor was set by [[max_player_health]].
|-
| No || 2 || GET_SCUBA || Scuba Gear. 100% equals an inventory amount of 6400. <br> Activates automatically when underwater, and decreases by 1 every gametic until it reaches 0.
|-
| No || 3 || GET_HOLODUKE || Holoduke. 100% equals an inventory amount of 2400. Decreases by 1 every gametic while active.
|-
| No || 4 || GET_JETPACK || Jetpack. 100% equals an inventory amount of 1600. Decreases by 1 every gametic while active.
|-
| No || 5 || GET_DUMMY1 || Reserved, unused.
|-
| No || 6 || GET_ACCESS || Access Card. Identified by palette: <code>Blue: 0, Red: 21, Yellow: 23</code>
|-
| No || 7 || GET_HEATS || Night Vision Goggles. 100% equals an inventory amount of 1200. Decreases by 1 every gametic while active.
|-
| No || 8 || GET_DUMMY2 || Reserved, unused.
|-
| No || 9 || GET_FIRSTAID || Portable Medkit. 100% equals an inventory amount of 100. Upper bound is directly tied to [[max_player_health]].
|-
| No || 10 || GET_BOOTS || Protective Boots. 100% equals an inventory amount of 200.<br> Decreased by 2 every time the player is supposed to take damage from HURTRAIL, FLOORSLIME, or FLOORPLASMA.<br> Decreased by 1 every time the player is supposed to take damage from BLOODPOOL with pal 0.<br> Decreased by 1 every gametic as long as the player is in a sector with PURPLELAVA as floor or ceiling tile.
|-
|}
 
{| {{Collapse}}
| <strong>Defines</strong>
|-
|
define ICON_NONE                        0
define ICON_FIRSTAID                    1
define ICON_STEROIDS                    2
define ICON_HOLODUKE                    3
define ICON_JETPACK                    4
define ICON_HEATS                      5
define ICON_SCUBA                      6
define ICON_BOOTS                      7
|}
 
<noinclude>[[Category:Templates]]</noinclude>
<includeonly>[[Category:Pages with templates]]</includeonly>

Revision as of 06:09, 10 January 2021

The following values are used with addinventory and ifpinventory. Not be to be confused with inven_icon.

Exposed Value Label Description
No 0 GET_STEROIDS Steroids Powerup. 100% equals an inventory amount of 400.
If amount < 400, then it will automatically activate and begin counting down by 1 every game tic until it reaches 0.
If amount > 400, the item cannot be used.
No 1 GET_SHIELD Armor. In eduke32, the upper bound is max_shield_amount. In Duke 1.5, the upper bound for armor was set by max_player_health.
No 2 GET_SCUBA Scuba Gear. 100% equals an inventory amount of 6400.
Activates automatically when underwater, and decreases by 1 every gametic until it reaches 0.
No 3 GET_HOLODUKE Holoduke. 100% equals an inventory amount of 2400. Decreases by 1 every gametic while active.
No 4 GET_JETPACK Jetpack. 100% equals an inventory amount of 1600. Decreases by 1 every gametic while active.
No 5 GET_DUMMY1 Reserved, unused.
No 6 GET_ACCESS Access Card. Identified by palette: Blue: 0, Red: 21, Yellow: 23
No 7 GET_HEATS Night Vision Goggles. 100% equals an inventory amount of 1200. Decreases by 1 every gametic while active.
No 8 GET_DUMMY2 Reserved, unused.
No 9 GET_FIRSTAID Portable Medkit. 100% equals an inventory amount of 100. Upper bound is directly tied to max_player_health.
No 10 GET_BOOTS Protective Boots. 100% equals an inventory amount of 200.
Decreased by 2 every time the player is supposed to take damage from HURTRAIL, FLOORSLIME, or FLOORPLASMA.
Decreased by 1 every time the player is supposed to take damage from BLOODPOOL with pal 0.
Decreased by 1 every gametic as long as the player is in a sector with PURPLELAVA as floor or ceiling tile.
Defines
define ICON_NONE                        0
define ICON_FIRSTAID                    1
define ICON_STEROIDS                    2
define ICON_HOLODUKE                    3
define ICON_JETPACK                     4
define ICON_HEATS                       5
define ICON_SCUBA                       6
define ICON_BOOTS                       7