Wooden Window: Difference between revisions

From PZwiki
(Some basic content edits, needs some good work still)
(→‎Code: Codebox Update)
Line 37: Line 37:


==Code==
==Code==
<pre>
{{CodeBox
item WindowFrame
| {{CodeSnip
Weight = 10,
  | lang = java
Type = Normal,
  | line = true
DisplayName = Wooden Window Frame,
  | start = 146
Icon = WallWindow,
  | source = multistagebuild.txt
</pre>
  | retrieved = true
  | version = 41
  | incver = 78.16
  | code =
    multistagebuild CreateWoodenWindow_1
    {
        PreviousStage:WoodenWallFrame;MetalWallFrame,
        Name:WoodenWindowLvl1,
        TimeNeeded:250,
        BonusHealth:400,
        SkillRequired:Woodwork=2,
        ItemsRequired:Base.Plank=2;Base.Nails=4,
        ItemsToKeep:Base.Hammer,
        Sprite:walls_exterior_wooden_01_52,
        NorthSprite:walls_exterior_wooden_01_53,
        CraftingSound:Hammering,
        ID:Create Wooden Window Lvl 1,
        XP:Woodwork=10,
        CanBarricade:true,
    }
 
    multistagebuild UpgradeWoodenWindow_1To2
    {
        PreviousStage:WoodenWindowLvl1,
        Name:WoodenWindowLvl2,
        TimeNeeded:200,
        BonusHealth:100,
        BonusSkill:FALSE,
        SkillRequired:Woodwork=4,
        ItemsRequired:Base.Plank=1;Base.Nails=4,
        ItemsToKeep:Base.Hammer,
        Sprite:walls_exterior_wooden_01_48,
        NorthSprite:walls_exterior_wooden_01_49,
        CraftingSound:Hammering,
        ID:Upgrade to Wooden Window Lvl 2,
        XP:Woodwork=10,
        CanBarricade:true,
    }
 
    multistagebuild CreateWoodenWindow_2
    {
        PreviousStage:WoodenWallFrame;MetalWallFrame,
        Name:WoodenWindowLvl2,
        TimeNeeded:250,
        BonusHealth:500,
        SkillRequired:Woodwork=4,
        ItemsRequired:Base.Plank=2;Base.Nails=4,
        ItemsToKeep:Base.Hammer,
        Sprite:walls_exterior_wooden_01_48,
        NorthSprite:walls_exterior_wooden_01_49,
        CraftingSound:Hammering,
        ID:Create Wooden Window Lvl 2,
        XP:Woodwork=20,
        CanBarricade:true,
    }
 
    multistagebuild UpgradeWoodenWindow_1To3
    {
        PreviousStage:WoodenWindowLvl1,
        Name:WoodenWindowLvl3,
        TimeNeeded:220,
        BonusHealth:200,
        BonusSkill:FALSE,
        SkillRequired:Woodwork=7,
        ItemsRequired:Base.Plank=2;Base.Nails=8,
        ItemsToKeep:Base.Hammer,
        Sprite:walls_exterior_wooden_01_32,
        NorthSprite:walls_exterior_wooden_01_33,
        CanBePlastered:true,
        WallType:windowsframe,
        CraftingSound:Hammering,
        ID:Upgrade to Wooden Window Lvl 3,
        XP:Woodwork=20,
        CanBarricade:true,
    }
 
    multistagebuild UpgradeWoodenWindow_2To3
    {
        PreviousStage:WoodenWindowLvl2,
        Name:WoodenWindowLvl3,
        TimeNeeded:200,
        BonusHealth:100,
        BonusSkill:FALSE,
        SkillRequired:Woodwork=7,
        ItemsRequired:Base.Plank=1;Base.Nails=4,
        ItemsToKeep:Base.Hammer,
        Sprite:walls_exterior_wooden_01_32,
        NorthSprite:walls_exterior_wooden_01_33,
        CanBePlastered:true,
        WallType:windowsframe,
        CraftingSound:Hammering,
        ID:Upgrade to Wooden Window Lvl 32,
        XP:Woodwork=10,
        CanBarricade:true,
    }
 
    multistagebuild CreateWoodenWindow_3
    {
        PreviousStage:WoodenWallFrame;MetalWallFrame,
        Name:WoodenWindowLvl3,
        TimeNeeded:250,
        BonusHealth:600,
        SkillRequired:Woodwork=7,
        ItemsRequired:Base.Plank=2;Base.Nails=4,
        ItemsToKeep:Base.Hammer,
        Sprite:walls_exterior_wooden_01_32,
        NorthSprite:walls_exterior_wooden_01_33,
        CanBePlastered:true,
        WallType:windowsframe,
        CraftingSound:Hammering,
        ID:Create Wooden Window Lvl 3,
        XP:Woodwork=30,
        CanBarricade:true,
    }
  }}
}}


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

Revision as of 05:16, 13 January 2024

WhiskeyHalf.png
This article may be in need of improvement.
Editors are encouraged to add any missing information to the article, while verifying that the article's current content is correct.

A wooden window is a structure that the player can build to fortify a structure or create obstacles against zombies.

Ingame screenshot wooden windows at different levels in order from left to right.

Wooden Window

Wooden windows are a defensive structure that can be built to seal entranceways, reinforce entry/exit points, and can be used in the creation of completely new structures. The window allows for the installation of windows picked up from other structures, as well as barricades to be erected over the window. A sheet rope can also be used with the window to allow for an escape route in a structure.

All wooden walls and wooden windows require a player to have a hammer, planks, and nails to construct. The strength of the window itself is dependant on the level of the actual window.

Window frames with a broken or no window or barricades can be climbed through by zombies.

Crafting

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3 Ingredient 4
Wooden Window Lvl 1
Wooden Window Lvl 1
2.5 Carpentry Carpentry 2 Hammer.png
Hammer (tag)
(keep)
Plank.png
Plank x2
(consumed)
Nails.png
Nails x4
(consumed)
Wooden Window Lvl 2
Wooden Window Lvl 2
5 Carpentry Carpentry 4 Hammer.png
Hammer (tag)
(keep)
Plank.png
Plank x2
(consumed)
Nails.png
Nails x4
(consumed)
Wooden Window Lvl 3
Wooden Window Lvl 3
7.5 Carpentry Carpentry 7 Hammer.png
Hammer (tag)
(keep)
Plank.png
Plank x2
(consumed)
Nails.png
Nails x4
(consumed)
Wooden Window Lvl 2
Upgrade Wooden Window From Lvl 1 to Lvl 2
2.5 Carpentry Carpentry 4 Hammer.png
Hammer (tag)
(keep)
Wooden Window Lvl 1
Wooden Window Lvl 1
Plank.png
Plank x1
(consumed)
Nails.png
Nails x4
(consumed)
Wooden Window Lvl 3
Upgrade Wooden Window From Lvl 1 to Lvl 3
5 Carpentry Carpentry 7 Hammer.png
Hammer (tag)
(keep)
Wooden Window Lvl 1
Wooden Window Lvl 1
Plank.png
Plank x2
(consumed)
Nails.png
Nails x8
(consumed)
Wooden Window Lvl 3
Upgrade Wooden Window From Lvl 2 to Lvl 3
2.5 Carpentry Carpentry 7 Hammer.png
Hammer (tag)
(keep)
Wooden Window Lvl 2
Wooden Window Lvl 2
Plank.png
Plank x1
(consumed)
Nails.png
Nails x4
(consumed)
Right clicking on the wooden frame shows the upgrade menu.

To build a wooden window frame, a player must have a hammer in their inventory. The ingredients must be either in the players inventory, or within reach on the floor. First the player must build a wooden frame via the carpentry context menu, accessed by right clicking. Once the frame is built the player can then upgrade the wall as required by right clicking on the frame. The level of window available is based on the players carpentry level. Level 1 and 2 windows can be upgraded at a later time.

Skill requirements

  • Level 1 window: Carpentry 2
  • Level 2 window: Carpentry 4
  • Level 3 window: Carpentry 7

Wooden window frames can be destroyed with a sledgehammer, and window frames can be plastered, and painted using paint and a paintbrush.

Health and materials

Code

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

Source: ProjectZomboid\media\scripts\multistagebuild.txt

Retrieved: Build 41.78.16
multistagebuild CreateWoodenWindow_1
    {
        PreviousStage:WoodenWallFrame;MetalWallFrame,
        Name:WoodenWindowLvl1,
        TimeNeeded:250,
        BonusHealth:400,
        SkillRequired:Woodwork=2,
        ItemsRequired:Base.Plank=2;Base.Nails=4,
        ItemsToKeep:Base.Hammer,
        Sprite:walls_exterior_wooden_01_52,
        NorthSprite:walls_exterior_wooden_01_53,
        CraftingSound:Hammering,
        ID:Create Wooden Window Lvl 1,
        XP:Woodwork=10,
        CanBarricade:true,
    }

    multistagebuild UpgradeWoodenWindow_1To2
    {
        PreviousStage:WoodenWindowLvl1,
        Name:WoodenWindowLvl2,
        TimeNeeded:200,
        BonusHealth:100,
        BonusSkill:FALSE,
        SkillRequired:Woodwork=4,
        ItemsRequired:Base.Plank=1;Base.Nails=4,
        ItemsToKeep:Base.Hammer,
        Sprite:walls_exterior_wooden_01_48,
        NorthSprite:walls_exterior_wooden_01_49,
        CraftingSound:Hammering,
        ID:Upgrade to Wooden Window Lvl 2,
        XP:Woodwork=10,
        CanBarricade:true,
    }

    multistagebuild CreateWoodenWindow_2
    {
        PreviousStage:WoodenWallFrame;MetalWallFrame,
        Name:WoodenWindowLvl2,
        TimeNeeded:250,
        BonusHealth:500,
        SkillRequired:Woodwork=4,
        ItemsRequired:Base.Plank=2;Base.Nails=4,
        ItemsToKeep:Base.Hammer,
        Sprite:walls_exterior_wooden_01_48,
        NorthSprite:walls_exterior_wooden_01_49,
        CraftingSound:Hammering,
        ID:Create Wooden Window Lvl 2,
        XP:Woodwork=20,
        CanBarricade:true,
    }

    multistagebuild UpgradeWoodenWindow_1To3
    {
        PreviousStage:WoodenWindowLvl1,
        Name:WoodenWindowLvl3,
        TimeNeeded:220,
        BonusHealth:200,
        BonusSkill:FALSE,
        SkillRequired:Woodwork=7,
        ItemsRequired:Base.Plank=2;Base.Nails=8,
        ItemsToKeep:Base.Hammer,
        Sprite:walls_exterior_wooden_01_32,
        NorthSprite:walls_exterior_wooden_01_33,
        CanBePlastered:true,
        WallType:windowsframe,
        CraftingSound:Hammering,
        ID:Upgrade to Wooden Window Lvl 3,
        XP:Woodwork=20,
        CanBarricade:true,
    }

    multistagebuild UpgradeWoodenWindow_2To3
    {
        PreviousStage:WoodenWindowLvl2,
        Name:WoodenWindowLvl3,
        TimeNeeded:200,
        BonusHealth:100,
        BonusSkill:FALSE,
        SkillRequired:Woodwork=7,
        ItemsRequired:Base.Plank=1;Base.Nails=4,
        ItemsToKeep:Base.Hammer,
        Sprite:walls_exterior_wooden_01_32,
        NorthSprite:walls_exterior_wooden_01_33,
        CanBePlastered:true,
        WallType:windowsframe,
        CraftingSound:Hammering,
        ID:Upgrade to Wooden Window Lvl 32,
        XP:Woodwork=10,
        CanBarricade:true,
    }

    multistagebuild CreateWoodenWindow_3
    {
        PreviousStage:WoodenWallFrame;MetalWallFrame,
        Name:WoodenWindowLvl3,
        TimeNeeded:250,
        BonusHealth:600,
        SkillRequired:Woodwork=7,
        ItemsRequired:Base.Plank=2;Base.Nails=4,
        ItemsToKeep:Base.Hammer,
        Sprite:walls_exterior_wooden_01_32,
        NorthSprite:walls_exterior_wooden_01_33,
        CanBePlastered:true,
        WallType:windowsframe,
        CraftingSound:Hammering,
        ID:Create Wooden Window Lvl 3,
        XP:Woodwork=30,
        CanBarricade:true,
    }

See also