Snare Trap: Difference between revisions

From PZwiki
m (→‎top: category project: "The Game World")
m (Automated Formatting)
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Languages}}{{Header|Project Zomboid|Items|type=Trap|version=Version 40|incver=43}}{{Infobox trap
{{Header|Project Zomboid|Items|Trapping}}
|display_name=Snare Trap
{{Page version|41.78.16}}
|name_colour=Trap
{{Infobox tile
|name_text_colour=Trap
|name=Snare Trap
|image=SnareTrapAnim.gif
|image=SnareTrapAnim.gif
|image_width=
|icon=TrapSnare.png
|alternate_image=TrapSnare.png
|icon_name=Snare Trap
|alternate_name=Snare Trap
<!--General-->
|alternate_link=
|category=Trapping
|category=Item
|weight=0.5
|weight=0.5
|size=1
|function=Catch [[animals]]
<!--Properties-->
|health=50
|strength=10
|strength=10
|animals=[[File:Rabbit.png|link=Rabbit]] [[File:Squirrel.png|link=Squirrel]]
|animals=[[File:Rabbit.png|link=Rabbit]] [[File:Squirrel.png|link=Squirrel]]
|placement=
<!--Build-->
|ingredients=1 × {{T|Plank}}<br>2 × {{T|Twine}}
|crafting=true
|class_name=Base.TrapSnare
|build_skill=[[The Hunter Magazine|The Hunter Magazine Vol. 1]]
}}A '''snare trap''' is a medium sized trap used by novice trappers.
|build_skill2=[[Trapping]]
|build_level2=1
|build_tool_tag=Saw
|ingredients=[[Plank]]<br>[[Twine]] (2 units)
<!--Disassemble-->
|destroy=true
|products=[[Scrap Wood]]<br>[[Twine]] (2 units)
<!--Technical-->
|item_id=Base.TrapSnare
|tile_id=constructedobjects_01_16
}}
A '''snare trap''' is a medium-sized trap used by novice trappers.


==Usage==
==Usage==
A snare trap is one of several traps used in {{T|trapping}} to catch a variety of {{T|animals|wildlife}}.
A snare trap is one of several traps used in [[trapping]] to catch a variety of [[animals|wildlife]].


===Trapping===
===Trapping===
{{Main|Trapping}}
{{Main|Trapping}}
Snare traps can be used to catch {{T|rabbit}}s and {{T|squirrel}}s.
Snare traps 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 31: Line 45:


==Crafting==
==Crafting==
To craft a snare trap, the player must have picked either the {{T|Occupation#Park Ranger|"Park Ranger" occupation}} or {{T|Traits|"Hunter" trait}} during character creation. Otherwise it will be learnt after reaching trapping level 1, or reading ''[[The Hunter Magazine|The Hunter Magazine Vol.1]]''
To craft a snare trap, the player must have picked either the [[Occupation#Park Ranger|"Park Ranger" occupation]] or [[Traits|"Hunter" trait]] during character creation. Otherwise, it will be learned after reaching trapping level 1, or reading ''[[The Hunter Magazine|The Hunter Magazine Vol.1]]''


===Trapping===
===Trapping===
{{Main|Trapping}}
{{Main|Trapping}}
{{Crafting header|ing=3}}
{{Crafting/sandbox2
{{Crafting hunting|002|ing=3}}
|snare_trap
|}
}}


==Code==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|
{{Retrieved|version=41|incver=50}}
 
<pre>
===Item===
item TrapSnare
{{CodeSnip
Weight = 0.5,
  | lang = java
Type = Normal,
  | line = true
DisplayName = Snare Trap,
  | start = 2291
Icon = TrapSnare,
  | source = newitems.txt
Trap   = true,
  | retrieved = true
</pre>
  | version = 41.78.16
  | code =
item TrapSnare
    {
        DisplayCategory = Trapping,
        Weight = 0.5,
        Type = Normal,
        DisplayName = Snare Trap,
        Icon = TrapSnare,
        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 snareTrap = {};
snareTrap.type = "Base.TrapSnare";
snareTrap.sprite = "constructedobjects_01_16";
snareTrap.closedSprite = "constructedobjects_01_17";
snareTrap.trapStrength = 10;
snareTrap.destroyItem = { "Base.UnusableWood", "Base.Twine", "Base.Twine" };
table.insert(Traps, snareTrap);
  }}
}}


==See also==
==See also==
*{{T|Cage Trap}}
*[[Cage Trap]]
*{{T|Trap Crate}}
*[[Trap Crate]]
*{{T|Trap Box}}
*[[Trap Box]]
*{{T|Stick Trap}}
*[[Stick Trap]]
 
{{Navbox equipment}}


[[Category:Trapping]]
{{Navbox items|survival}}

Latest revision as of 12:12, 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]
Snare Trap
SnareTrapAnim.gif
[[File:{{{icon2}}}|Snare Trap|]]
[[File:{{{icon3}}}|Snare Trap|]]
[[File:{{{icon4}}}|Snare Trap|]]
[[File:{{{icon5}}}|Snare Trap|]]
General
Category
Trapping
EncumbranceMoodle Icon HeavyLoad.png
0.5
Size
1 tile
Function
Catch animals
Properties
Health
50
Strength
10
Animals
Rabbit.png Squirrel.png
Crafting
Tool(s)
Ingredients
Plank
Twine (2 units)
Destroy
Products
Scrap Wood
Twine (2 units)
Technical
Item ID(s)
Base.TrapSnare
Tile ID(s)
constructedobjects_01_16

A snare trap is a medium-sized trap used by novice trappers.

Usage

A snare trap is one of several traps used in trapping to catch a variety of wildlife.

Trapping

Main article: Trapping

Snare traps can be used to catch rabbits and squirrels.

Catch chance:
Rabbit 30%
Squirrel 30%

Crafting

To craft a snare trap, the player must have picked either the "Park Ranger" occupation or "Hunter" trait during character creation. Otherwise, it will be learned after reaching trapping level 1, or reading The Hunter Magazine Vol.1

Trapping

Main article: Trapping
Product Ingredients Tools Requirements Workstation XP
TrapSnare.png
Snare Trap
Plank.png Plank ×1
Twine.png Twine ×2 unit(s)

Handsaw.png
Saw (tag)
Trapping 1
(and)
MagazineHunting.png
The Hunter Magazine Vol.1
none 0.25 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 TrapSnare
    {
        DisplayCategory = Trapping,
        Weight	=	0.5,
        Type	=	Normal,
        DisplayName	=	Snare Trap,
        Icon	=	TrapSnare,
        Trap    =   true,
    }

Tile

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

Retrieved: Build 41.78.16
local snareTrap = {};
snareTrap.type = "Base.TrapSnare";
snareTrap.sprite = "constructedobjects_01_16";
snareTrap.closedSprite = "constructedobjects_01_17";
snareTrap.trapStrength = 10;
snareTrap.destroyItem = { "Base.UnusableWood", "Base.Twine", "Base.Twine" };
table.insert(Traps, snareTrap);

See also