Wooden Doorframe: Difference between revisions

From PZwiki
(Update of Wooden Door Frame article. +NavBar, +Description, + Stats, +Category +Ver 36 note,)
m (Automatic formatting)
 
(40 intermediate revisions by 8 users not shown)
Line 1: Line 1:
__NOTOC__
{{Header|Project Zomboid|Tiles|Barriers|Wall tiles}}
{{languages|Door Frame}}
{{Page version|41.78.16}}
<div class="header" style="margin: 5px; align: right; background: #C3E4ED; padding: 13px; text-align: left; font-size: 100%; color:#000000; border: 1px solid #9AC0CD"> <!-- Code for Background Colour -->
{{Infobox tile
<div style="float: right;background: #C3E4ED;border: 1px solid #9AC0CD; margin: -30pt -10.5pt">    '''Page Updated @ Version: 36.4'''    </div><!-- Code for Version Tag at top -->
|name=Wooden Door Frame
<div style="float: left;background: #C3E4ED;border: 1px solid #9AC0CD; margin: -30pt -10.5pt">   '''Navigation''' - [[:Category:Main|Main Index]] -> [[:Category:The_Game_World|The Game World]] -> [[:Category:Items|Items]] -> [[:Category:Construction|Construction]] -> [[:Category:Carpentry|Carpentry]] -> [[{{PAGENAME}}|Wooden Door Frame]]   </div><!-- Code for Navigation Bar at top, special blank char's before '''Navigation''' to give space -->
|model=WoodenDoorframe1_Carpentry.png
'''Wooden Walls''' are structures that a [[Player|character]] can build to fortify a structure or create obstacles against zombies.<br>
|icon=WoodenDoorframe1 Carpentry.png
<br>
|model2=WoodenDoorframe2_Carpentry.png
== Wooden Door Frame ==
|icon2=WoodenDoorframe2 Carpentry.png
|model3=WoodenDoorframe3_Carpentry.png
|icon3=WoodenDoorframe3 Carpentry.png
|function=Protect the player from [[zombies]] and [[weather]]
<!--Build-->
|build_skill=[[Carpentry]]
|build_level=2, 4, 7
|build_tool_tag=Hammer
|ingredients=<small>4 × [[File:Plank.png|20px|link=Plank]] [[Plank]]<br>4 × [[File:Nails.png|20px|link=Nails]] [[Nails]]</small>
<!--Disassemble-->
|disassemble_skill=[[Carpentry]]
|disassemble_level=0
|disassemble_tool_tag=Hammer
|disassemble_tool_tag2=Saw
|tile_id=walls_exterior_wooden_01_54
|tile_id2=walls_exterior_wooden_01_50
|tile_id3=walls_exterior_wooden_01_34
}}


{| style="float:right; border:1px solid FFFFFF;margin:.46em 0 0 .2em"
A '''wooden doorframe''' is a constructable wall used for shelter and defense.
|- style="font-size:100%"
 
| valign="top" |[[Image:Wooden_Door_Frame_Article.png]]<!--
==Usage==
  --><br> <small>''Ingame image of a wooden door frame at Build 36.40''</small>
Wooden doorframes are a defensive structure from the [[carpentry]] skill that are used to hold constructable doors for the player to enter/exit. This allows the player easy access to their structure without risking climbing over a wall, or having an exposed gap for zombies to enter through. Doorframes are not attacked by zombies, but the [[Door|wooden doors]] built into them can be destroyed by zombies. If a door is missing or destroyed, zombies will walk through the door.
 
Wooden doorframes can be destroyed with a [[sledgehammer]]. They can also be plastered and painted using [[paint]] and a [[paintbrush]].
 
===Crafting===
To build a wooden doorframe, a player must have a [[hammer]], [[plank]]s, and [[nails]] in their inventory, or on the ground within reach. They must also have at least level 2 [[Carpentry|carpentry]]. Unlike the [[Wooden Wall|wooden wall]] and [[Wooden Window|wooden window]], the wooden doorframe does not require a [[Wooden Wall|wooden frame]] to be built first. The level of doorframe built is based on the player's [[carpentry]] level. It cannot be selected by the player. However, lower level doorframes can be upgraded later by the player.
 
{{Crafting header|ing=4}}
{{Crafting carpentry|514|ing=3}}
{{Crafting carpentry|521|ing=4}}
{{Crafting carpentry|522|ing=4}}
|}
|}
__NOTOC__


Wooden door frames are a defensive structure that can be built to seal and reinforce entry/exit points, and can be used in the creation of completely new structures.
===Health===
Doorframes have the same health calculation as log walls, and can take advantage of the handy trait
{{Construction hp|doorframe}}


All wooden door frames require a player to have a [[hammer]], [[plank|planks]], and [[nails]] to construct. The strength of the door frame itself is dependant on the level of the door frame.
==Gallery==
<gallery>
Wooden Door Frame Article.png|In-game screenshot of a wooden door frame both with a wooden door and without one.
</gallery>


Door frames are not attacked by zombies, but the [[Door|wooden doors]] built into them however can be destroyed by zombies.  
==Trivia==
*Unlike [[Wooden Window|wooden windows]] and [[Wooden Wall|wooden walls]], wooden doorframes cannot be upgraded from level 1 to level 3 directly.


<br><br><br><br><br><br><br>
==Code==
{{CodeBox|
{{CodeSnip
  | lang = java
  | line = false
  | retrieved = true
  | version = 41.78.16
  | code =
function ISWoodenDoorFrame:getHealth()
return 300 + buildUtil.getWoodHealth(self);
end
}}


== Construction ==
{{CodeSnip
  | lang = java
  | line = false
  | retrieved = true
  | version = 41.78.16
  | code =
buildUtil.getWoodHealth = function(ISItem)
if not ISItem or not ISItem.player then
return 100;
end
local playerObj = getSpecificPlayer(ISItem.player)
local health = (playerObj:getPerkLevel(Perks.Woodwork) * 50);
if playerObj:HasTrait("Handy") then
health = health + 100;
end
return health;
end
}}


To build a wooden door frame, a player must first equip the hammer, and then select a door frame through the construction menu.
{{CodeSnip
  | lang = java
  | line = true
  | start = 110
  | source = multistagebuild.txt
  | retrieved = true
  | version = 41.78.16
  | code =
    multistagebuild UpgradeWoodenDoorFrame_1To2
    {
        PreviousStage:WoodenDoorFrameLvl1,
        Name:WoodenDoorFrameLvl2,
        TimeNeeded:200,
        BonusHealth:200,
        SkillRequired:Woodwork=4,
        ItemsRequired:Base.Plank=1;Base.Nails=4,
        ItemsToKeep:Base.Hammer,
        WallType:doorframe,
        Sprite:walls_exterior_wooden_01_50,
        NorthSprite:walls_exterior_wooden_01_51,
        CraftingSound:Hammering,
        ID:Upgrade to Wooden Door Frame Lvl 2,
        XP:Woodwork=5,
    }


To construct a wooden frame, a player would require carpentry level 2.
    multistagebuild UpgradeWoodenDoorFrame_2To3
 
    {
Wooden door frames can be destroyed quickly by a [[sledgehammer]] and can be plastered and then painted using paint and a [[paintbrush]].
        PreviousStage:WoodenDoorFrameLvl2,
=== Wooden Door Frame Stats ===
        Name:WoodenDoorFrameLvl3,
{| class="wikitable" style="text-align:center;"
        TimeNeeded:200,
|-
        BonusHealth:100,
! Item
        SkillRequired:Woodwork=7,
! Wood Required to Build
        ItemsRequired:Base.Plank=1;Base.Nails=4,
! Total Nails to Build
        ItemsToKeep:Base.Hammer,
! Health of Structure Provided
        CanBePlastered:true,
! Level of Construction
        WallType:doorframe,
|-
        Sprite:walls_exterior_wooden_01_34,
|[[File:DoorFrame.png]] <br>
        NorthSprite:walls_exterior_wooden_01_35,
Wooden Door Frame
        CraftingSound:Hammering,
| 4
        ID:Upgrade to Wooden Door Frame Lvl 3,
| 4
        XP:Woodwork=5,
| -
    }
| 2
}}
|-
}}
|}


== Code ==
==See also==
<nowiki>
*[[Carpentry]]
item DoorFrame
*[[Wooden Wall]]
Weight = 8.5,
*[[Wooden Window]]
Type = Normal,
DisplayName = Wooden Door Frame,
Icon = WallDoor,
</nowiki>


==See Also==
{{Navbox construction|carpentry}}
*[[Carpentry_Guide|Carpentry Guide]]


[[Category:Construction]]
[[Category:Carpentry]]
[[Category:Carpentry]]
[[Category:Items]]
[[Category:Spiffo's Construction Crew (Project)]]
[[Category:Version 36]]

Latest revision as of 18:09, 25 March 2024

Project ZomboidTilesBarriersWall tilesWooden Doorframe
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Wooden Door Frame
WoodenDoorframe1 Carpentry.png
WoodenDoorframe2 Carpentry.png
WoodenDoorframe3 Carpentry.png
[[File:{{{icon4}}}|Wooden Door Frame|]]
[[File:{{{icon5}}}|Wooden Door Frame|]]
General
Category
Furniture
Function
Protect the player from zombies and weather
Build
Skill (level)
Carpentry (2, 4, 7)
Tool(s)
Ingredients
4 × Plank.png Plank
4 × Nails.png Nails
Disassemble
Skill (level)
Tool(s)
Technical
Tile ID(s)
walls_exterior_wooden_01_54 walls_exterior_wooden_01_50 walls_exterior_wooden_01_34

A wooden doorframe is a constructable wall used for shelter and defense.

Usage

Wooden doorframes are a defensive structure from the carpentry skill that are used to hold constructable doors for the player to enter/exit. This allows the player easy access to their structure without risking climbing over a wall, or having an exposed gap for zombies to enter through. Doorframes are not attacked by zombies, but the wooden doors built into them can be destroyed by zombies. If a door is missing or destroyed, zombies will walk through the door.

Wooden doorframes can be destroyed with a sledgehammer. They can also be plastered and painted using paint and a paintbrush.

Crafting

To build a wooden doorframe, a player must have a hammer, planks, and nails in their inventory, or on the ground within reach. They must also have at least level 2 carpentry. Unlike the wooden wall and wooden window, the wooden doorframe does not require a wooden frame to be built first. The level of doorframe built is based on the player's carpentry level. It cannot be selected by the player. However, lower level doorframes can be upgraded later by the player.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3 Ingredient 4
Doorframe Carpentry.gif
Wooden Doorframe
5 Carpentry Carpentry 2 Hammer.png
Hammer (tag)
(keep)
Plank.png
Plank x4
(consumed)
Nails.png
Nails x4
(consumed)
Wooden Doorframe Lvl 2
Upgrade Wooden Doorframe From Lvl 1 to Lvl 2
5 Carpentry Carpentry 4 Hammer.png
Hammer (tag)
(keep)
Wooden Doorframe Lvl 1
Wooden Doorframe Lvl 1
Plank.png
Plank x1
(consumed)
Nails.png
Nails x4
(consumed)
Wooden Doorframe Lvl 3
Upgrade Wooden Doorframe From Lvl 2 to Lvl 3
5 Carpentry Carpentry 7 Hammer.png
Hammer (tag)
(keep)
Wooden Doorframe Lvl 2
Wooden Doorframe Lvl 2
Plank.png
Plank x1
(consumed)
Nails.png
Nails x4
(consumed)

Health

Doorframes have the same health calculation as log walls, and can take advantage of the handy trait

Calculations are based on door frames
Skill level HP without handy HP with handy
0 300 HP 400 HP
1 350 HP 450 HP
2 400 HP 500 HP
3 450 HP 550 HP
4 500 HP 600 HP
5 550 HP 650 HP
6 600 HP 700 HP
7 650 HP 750 HP
8 700 HP 800 HP
9 750 HP 850 HP
10 800 HP 900 HP

Gallery

Trivia

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide
Retrieved: Build 41.78.16
function ISWoodenDoorFrame:getHealth()
	return 300 + buildUtil.getWoodHealth(self);
end


Retrieved: Build 41.78.16
buildUtil.getWoodHealth = function(ISItem)
	if not ISItem or not ISItem.player then
		return 100;
	end
	local playerObj = getSpecificPlayer(ISItem.player)
	local health = (playerObj:getPerkLevel(Perks.Woodwork) * 50);
	if playerObj:HasTrait("Handy") then
		health = health + 100;
	end
	return health;
end

Source: ProjectZomboid\media\scripts\multistagebuild.txt

Retrieved: Build 41.78.16
multistagebuild UpgradeWoodenDoorFrame_1To2
    {
        PreviousStage:WoodenDoorFrameLvl1,
        Name:WoodenDoorFrameLvl2,
        TimeNeeded:200,
        BonusHealth:200,
        SkillRequired:Woodwork=4,
        ItemsRequired:Base.Plank=1;Base.Nails=4,
        ItemsToKeep:Base.Hammer,
        WallType:doorframe,
        Sprite:walls_exterior_wooden_01_50,
        NorthSprite:walls_exterior_wooden_01_51,
        CraftingSound:Hammering,
        ID:Upgrade to Wooden Door Frame Lvl 2,
        XP:Woodwork=5,
    }

    multistagebuild UpgradeWoodenDoorFrame_2To3
    {
        PreviousStage:WoodenDoorFrameLvl2,
        Name:WoodenDoorFrameLvl3,
        TimeNeeded:200,
        BonusHealth:100,
        SkillRequired:Woodwork=7,
        ItemsRequired:Base.Plank=1;Base.Nails=4,
        ItemsToKeep:Base.Hammer,
        CanBePlastered:true,
        WallType:doorframe,
        Sprite:walls_exterior_wooden_01_34,
        NorthSprite:walls_exterior_wooden_01_35,
        CraftingSound:Hammering,
        ID:Upgrade to Wooden Door Frame Lvl 3,
        XP:Woodwork=5,
    }

See also