Trap Box: Difference between revisions
(update to 41.78.16: new header, infobox, code) |
m (Automated Formatting) |
||
(11 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Header|Project Zomboid|Items|Trapping}} | |||
{{Header | |||
{{Page version|41.78.16}} | {{Page version|41.78.16}} | ||
{{Infobox tile | {{Infobox tile | ||
|name=Trap Box | |name=Trap Box | ||
|image=BoxTrapAnim.gif | |image=BoxTrapAnim.gif | ||
|icon=TrapBox.png | |icon=TrapBox.png | ||
|icon_name=Trap Box | |icon_name=Trap Box | ||
Line 25: | Line 23: | ||
|build_level3=2 | |build_level3=2 | ||
|build_tool_tag=Saw | |build_tool_tag=Saw | ||
|ingredients= | |ingredients=[[Plank]] × 4<br>[[Nails]] × 7 | ||
<!--Disassemble--> | <!--Disassemble--> | ||
|destroy=true | |destroy=true | ||
|products=[[ | |products=[[Scrap Wood]]<br>[[Nails]] × 2 | ||
<!--Technical--> | <!--Technical--> | ||
|item_id=Base.TrapBox | |item_id=Base.TrapBox | ||
|tile_id=constructedobjects_01_4 | |tile_id=constructedobjects_01_4 | ||
}}A '''trap box''' is a medium sized trap used by apprentice trappers. | }} | ||
A '''trap box''' is a medium sized trap used by apprentice trappers. | |||
==Usage== | ==Usage== | ||
A trap box is one of several traps used in | A trap box is one of several traps used in [[trapping]] to catch a variety of [[animals|wildlife]]. | ||
===Trapping=== | ===Trapping=== | ||
{{Main|Trapping}} | {{Main|Trapping}} | ||
Trap boxes can be used to catch | Trap boxes can be used to catch [[rabbit]]s and [[squirrel]]s. | ||
{| width="100px" style="text-align:left;" | {| width="100px" style="text-align:left;" | ||
|+ '''''Catch chance:''''' | |+ '''''Catch chance:''''' | ||
Line 48: | Line 47: | ||
==Crafting== | ==Crafting== | ||
To craft a trap box, the player must have picked either the "[[Occupation|Park Ranger" occupation]] or | To craft a trap box, the player must have picked either the "[[Occupation|Park Ranger" occupation]] or [[Traits|"Hunter" trait]] during character creation. Otherwise it will be learnt after reaching trapping level 2 and [[carpentry]] level 1, or reading ''[[The Hunter Magazine|The Hunter Magazine Vol.3]]'' | ||
===Trapping=== | ===Trapping=== | ||
{{Main|Trapping}} | {{Main|Trapping}} | ||
{{Crafting | {{Crafting/sandbox2 | ||
|trap_box | |||
}} | |||
==Code== | ==Code== | ||
{{CodeBox| | {{CodeBox| | ||
===Item=== | ===Item=== | ||
{{CodeSnip | {{CodeSnip | ||
| lang = java | | lang = java | ||
| line = | | line = true | ||
| start = 2323 | |||
| source = newitems.txt | | source = newitems.txt | ||
| retrieved = true | | retrieved = true | ||
| version = 41 | | version = 41.78.16 | ||
| code = | | code = | ||
item TrapBox | |||
{ | { | ||
DisplayCategory = Trapping, | DisplayCategory = Trapping, | ||
Line 76: | Line 76: | ||
Trap = true, | Trap = true, | ||
} | } | ||
}} | |||
===Tile=== | ===Tile=== | ||
{{CodeSnip | {{CodeSnip | ||
Line 84: | Line 85: | ||
| source = TrapDefinition.lua | | source = TrapDefinition.lua | ||
| retrieved = true | | retrieved = true | ||
| version = 41 | | version = 41.78.16 | ||
| code = | | code = | ||
local trapBox = {}; | local trapBox = {}; | ||
Line 100: | Line 100: | ||
==See also== | ==See also== | ||
* | *[[Cage Trap]] | ||
* | *[[Trap Crate]] | ||
* | *[[Snare Trap]] | ||
* | *[[Stick Trap]] | ||
{{Navbox | {{Navbox items|survival}} |
Latest revision as of 12:58, 14 April 2024
A trap box is a medium sized trap used by apprentice trappers.
Usage
A trap box is one of several traps used in trapping to catch a variety of wildlife.
Trapping
- Main article: Trapping
Trap boxes can be used to catch rabbits and squirrels.
30% | |
25% |
Crafting
To craft a trap box, the player must have picked either the "Park Ranger" occupation or "Hunter" trait during character creation. Otherwise it will be learnt after reaching trapping level 2 and carpentry level 1, or reading The Hunter Magazine Vol.3
Trapping
- Main article: Trapping
Product | Ingredients | Tools | Requirements | Workstation | XP |
---|---|---|---|---|---|
Trap Box |
Plank ×4 Nails ×7 |
Saw (tag) |
Carpentry 1 (and) Trapping 2 |
none | 1 Carpentry |
Code
Item
Source: ProjectZomboid\media\scripts\newitems.txt
item TrapBox
{
DisplayCategory = Trapping,
Weight = 1,
Type = Normal,
DisplayName = Trap Box,
Icon = TrapBox,
Trap = true,
}
Tile
Source: ProjectZomboid\media\lua\server\Traps\TrapDefinition.lua
local trapBox = {};
trapBox.type = "Base.TrapBox";
trapBox.sprite = "constructedobjects_01_4";
trapBox.northSprite = "constructedobjects_01_7";
trapBox.closedSprite = "constructedobjects_01_5";
trapBox.northClosedSprite = "constructedobjects_01_6";
trapBox.trapStrength = 15;
trapBox.destroyItem = { "Base.UnusableWood", "Base.Nails", "Base.Nails" };
table.insert(Traps, trapBox);