Matches: Difference between revisions

From PZwiki
m (→‎top: category project: "The Game World")
(→‎Code: CodeBox update)
Line 87: Line 87:


==Code==
==Code==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=39|incver=67.5}}
| {{CodeSnip
<pre>
  | lang = java
item Matches
  | line = false
Weight = 0.1,
  | start =
Type = Drainable,
  | source = items.txt
UseWhileEquipped = FALSE,
  | retrieved = true
UseDelta = 0.1,
  | version = 39
DisplayName = Matches,
  | incver = 67.5
Icon = Matches,
  | code =
cantBeConsolided = TRUE,
item Matches
</pre>
{
  Weight           = 0.1,
  Type             = Drainable,
  UseWhileEquipped = FALSE,
  UseDelta         = 0.1,
  DisplayName       = Matches,
  Icon             = Matches,
  cantBeConsolided = TRUE,
}
  }}
}}


==See also==
==See also==

Revision as of 02:46, 1 February 2024

Matches
Matches
Matches
General
Category Item
Encumbrance
Heavy Load
0.1
Function Fire starting
Light source
Capacity 10 units
Contents Matches
Light distance 2 tiles
Light strength 0.4
Technical details
item ID Base.Matches

Matches are a drainable item that can be used up to 10 times.

Usage

Matches can be used to light candles, cigarettes, campfires, or antique ovens, burn corpses, or as a light source. Corpses can be burnt if matches are in the primary slot and a gas can is in the secondary slot.

Light source

The light provided by matches is the worst of any light source and will function similarly to that of the lighter, forming a ring of light around the player, but at a reduced radius. If another light souce isn't in the player's inventory, pressing the 'F' key (default) will equip matches and light one. Once equipped, pressing 'F' will light and extinguish them.

Crafting

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2
Lit Candle
Lit Candle
0 XP none Candle.png
Candle
(consumed)

Distribution

Matches can be found in many counters and on vehicle glove boxes and seats. They are also carried by zombies sometimes.

Buildings

Building/Room Container Rolls Chance
All Counter 1 4
Side Table 1 3
Office Drawers 1 2
Other 1 1
Kitchen Counter 2 5

Vehicles

Profession Container Rolls Chance
All Glove Box 1 5
Car Seat 1 1

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\items.txt

Retrieved: Build 39.67.5
item Matches
{
  Weight            = 0.1,
  Type              = Drainable,
  UseWhileEquipped  = FALSE,
  UseDelta          = 0.1,
  DisplayName       = Matches,
  Icon              = Matches,
  cantBeConsolided  = TRUE,
}

See also