Trap Box: Difference between revisions

From PZwiki
mNo edit summary
m (Automated Formatting)
 
(26 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{languages}}
{{Header|Project Zomboid|Items|Trapping}}
{{header|The Game World|Items|type=Trap|version=Version 40|incver=43}}{{Infotrap box
{{Page version|41.78.16}}
| display_name = Trap Box
{{Infobox tile
| name_colour = Trap
|name=Trap Box
| name_text_colour = Trap
|image=BoxTrapAnim.gif
| image = BoxTrapAnim.gif
|icon=TrapBox.png
| image_width =
|icon_name=Trap Box
| alternate_image = TrapBox.png
<!--General-->
| alternate_name = Trap Box
|category=Trapping
| alternate_link =
|weight=1.0
| category = Item
|size=1
| weight = 1.0
|function=Catch [[animals]]
| strength = 15
<!--Properties-->
| animals = [[File:Rabbit.png|link=Rabbit]] [[File:Squirrel.png|link=Squirrel]]
|health=50
| placement =  
|strength=15
| ingredients = 4 × {{T|Plank}}<br>7 × {{T|Nails}}
|animals=[[File:Rabbit.png|link=Rabbit]] [[File:Squirrel.png|link=Squirrel]]
| class_name = Base.TrapBox
<!--Build-->
}}A '''trap box''' is a medium sized trap used by apprentice trappers.
|crafting=true
|build_skill=[[The Hunter Magazine|The Hunter Magazine Vol. 3]]
|build_skill2=[[Carpentry]]
|build_skill3=[[Trapping]]
|build_level2=1
|build_level3=2
|build_tool_tag=Saw
|ingredients=[[Plank]] × 4<br>[[Nails]] × 7
<!--Disassemble-->
|destroy=true
|products=[[Scrap Wood]]<br>[[Nails]] × 2
<!--Technical-->
|item_id=Base.TrapBox
|tile_id=constructedobjects_01_4
}}
A '''trap box''' is a medium sized trap used by apprentice trappers.


==Usage==
==Usage==
A trap box is one of several traps used in {{T|trapping}} to catch a variety of {{T|animals|wildlife}}.
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 boxs can be used to catch {{T|rabbit}}s and {{T|squirrel}}s.
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:'''''
| [[File:Rabbit.png|32px|link=Dead Rabbit|Rabbit]] || 15%
| [[File:Rabbit.png|32px|link=Dead Rabbit|Rabbit]] || 30%
|-
|-
| [[File:Squirrel.png|32px|link=Dead Squirrel|Squirrel]] || 20%
| [[File:Squirrel.png|32px|link=Dead Squirrel|Squirrel]] || 25%
|}
|}


== Crafting ==
==Crafting==
To craft a trap box, the player must have picked either the "{{T|Park Ranger}}" {{T|Occupation}} or {{T|Traits|"Hunter" trait}} during character creation. Otherwise it will be learnt after reaching trapping level 2 and {{T|carpentry}} level 1, or reading ''{{T|Recipe Magazines|The Hunter Magazine Vol.3}}''
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]]''
{{Crafting table header}}
 
{{RecipeLookup|6003}}
===Trapping===
{{Crafting table footer}}
{{Main|Trapping}}
{{Crafting/sandbox2
|trap_box
}}


==Code==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|
{{Retrieved|version=40|incver=43}}
 
<pre> item TrapBox
===Item===
Weight = 1,
{{CodeSnip
Type = Normal,
  | lang = java
DisplayName = Trap Box,
  | line = true
Icon = TrapBox,
  | start = 2323
Trap   = true,</pre>
  | source = newitems.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item TrapBox
    {
        DisplayCategory = Trapping,
        Weight = 1,
        Type = Normal,
        DisplayName = Trap Box,
        Icon = TrapBox,
        Trap   =  true,
    }
}}
 
===Tile===
{{CodeSnip
  | lang = lua
  | line = false
  | path = ProjectZomboid\media\lua\server\Traps
  | source = TrapDefinition.lua
  | retrieved = true
  | version = 41.78.16
  | code =
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);
  }}
}}


==See also==
==See also==
*{{T|Cage Trap}}
*[[Cage Trap]]
*{{T|Trap Crate}}
*[[Trap Crate]]
*{{T|Snare Trap}}
*[[Snare Trap]]
*[[Stick Trap]]


{{Navbox/Tools}}
{{Navbox items|survival}}

Latest revision as of 12:58, 14 April 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Trap Box
BoxTrapAnim.gif
[[File:{{{icon2}}}|Trap Box|]]
[[File:{{{icon3}}}|Trap Box|]]
[[File:{{{icon4}}}|Trap Box|]]
[[File:{{{icon5}}}|Trap Box|]]
General
Category
Trapping
EncumbranceMoodle Icon HeavyLoad.png
1.0
Size
1 tile
Function
Catch animals
Properties
Health
50
Strength
15
Animals
Rabbit.png Squirrel.png
Crafting
Tool(s)
Ingredients
Plank × 4
Nails × 7
Destroy
Products
Technical
Item ID(s)
Base.TrapBox
Tile ID(s)
constructedobjects_01_4

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.

Catch chance:
Rabbit 30%
Squirrel 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
TrapBox.png
Trap Box
Plank.png Plank ×4
Nails.png Nails ×7

Handsaw.png
Saw (tag)
Carpentry 1
(and)
Trapping 2
none 1 Carpentry

Code

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

Item

Source: ProjectZomboid\media\scripts\newitems.txt

Retrieved: Build 41.78.16
item TrapBox
    {
        DisplayCategory = Trapping,
        Weight	=	1,
        Type	=	Normal,
        DisplayName	=	Trap Box,
        Icon	=	TrapBox,
        Trap    =   true,
    }

Tile

Source: ProjectZomboid\media\lua\server\Traps\TrapDefinition.lua

Retrieved: Build 41.78.16
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);

See also