Pencil: Difference between revisions

From PZwiki
m (clean up, replaced: wikitable → pztable)
m (Automated Formatting)
 
(39 intermediate revisions by 9 users not shown)
Line 1: Line 1:
__NOTOC__
{{Header|Project Zomboid|Items|Miscellaneous items|Household|Stationery}}
{{languages|Pencil}}
{{Page version|41.78.16}}
{{header|The Game World|Items|Tools|Stationery|version=Version 37|incver=8}}{{Weapons|image = Pencil.png |weapontype = Melee |ammo = None|hands = One handed|weight = 0.1|mindamage = 0.1|maxdamage = 0.1|condition = 2|degrade = 1|id = Pencil}}A writing implement that can be used to create notes and, in tight spots, as a weapon. The pencil can kill zombies, but doing so will usually exhaust all of its durability; rendering it useless. You cannot write to a Journal or a Notebook without a writing instrument.
{{Infobox item
|name=Pencil
|model=Pencil_Model.png
|icon=Pencil.png
|icon_name=Pencil
<!--GENERAL-->
|category=Household
|weight=0.1
|equipped=One-handed
|skill_type=N/A
|attachment_type=N/A
<!--DAMAGE-->
|type=Stab
|min_range=0.61
|max_range=0.8
|base_speed=N/A
|condition_max=1
|min_damage=0.1
|max_damage=0.1
|push_back=0.3
|knockdown=0
<!--TECHNICAL-->
|item_id=Base.Pencil
}}
A '''pencil''' is a writing implement and improvised weapon.


It can be used with [[journal]]s and [[Empty Notebook|empty notebooks]] to leave information or messages in Multiplayer servers.
==Usage==


== Former Crafting ==
===Writing===
Formerly, the Pencil could be used to make Doodles and work with Notepads to make Journals, this has since been removed.
A pencil can be used with [[journal]]s, [[Empty Notebook|empty notebooks]] and a [[Sheet of Paper|sheet of paper]] to write notes that can be left for other players on Multiplayer servers. It can also be used to place markers or add text that can be removed with an [[eraser]] on the player's [[Map#feature|map]] or already [[Map#in-game item maps|annotated maps]].
{| class="pztable sortable" style="text-align:center;"
 
|-
===Weapon===
! Name
The pencil is an [[Weapons#Improvised|improvised]] weapon and is not associated with a weapon skill, but performs attacks like a [[Weapons#Short Blade|short blade]], including the special execution move. Pencils have a very low [[#Condition|durability]] so will quickly exhaust all of its durability; making it useless as a weapon. It can be used as a discardable stealth-kill weapon, as they are very common, it can be picked up, used to stealth kill a zombie then discarded. However, as the pen has a very low range, this can be dangerous.
! class="unsortable" | Recipe
 
! class="unsortable" | Description
==Condition==
{{RecipeLookup|4002}}
Pencils have a maximum condition of 1. Its rate of degradation is influenced by the [[Skills|maintenance]] skill. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (1 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the maintenance skill.<br>
{{RecipeLookup|4003}}
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] skill.
{{Durability weapon|1|weapon_skill=false}}
 
==Crafting==
{{Obsolete|hidecat=true|text=Pens are no longer used in crafting, and can instead be used to [[#writing|write]].}}
Formerly, the pencil could be used to make [[doodle]] and with [[notepad]] to make [[journal]], this has since been removed.
{{Crafting header|ing=2}}
{{Crafting|ing=2
| product_image = [[File:Notebook.png|link=Journal]]
| product_name = [[Journal]]
| product_quantity = x20
| rec =
| xp = <!-- Not present in the old template. Please fill in manually. -->
| m1_1 = [[File:Pen.png|20px|link=Pen]] [[Pen]]
| m1_2 = [[File:Pencil.png|20px|link=Pencil]] [[Pencil]]
| q1 =
| tag1 = (consumed)
| f2 = [[File:Notebook.png|link=Empty Notebook]]
| i2 = [[Empty Notebook]]
| q2 =
| tag2 = (consumed)
| sl = ''none''
}}
{{Crafting|ing=2
| product_image = [[File:Paper.png|link=Doodle]]
| product_name = [[Doodle]]
| product_quantity =
| rec =
| xp = <!-- Not present in the old template. Please fill in manually. -->
| m1_1 = [[File:Pen.png|20px|link=Pen]] [[Pen]]
| m1_2 = [[File:Pencil.png|20px|link=Pencil]] [[Pencil]]
| q1 =
| tag1 = (consumed)
| f2 = [[File:Paper.png|link=Sheet of Paper]]
| i2 = [[Sheet of Paper]]
| q2 =
| tag2 = (consumed)
| sl = ''none''
}}
|}
|}


== Code ==
 
<nowiki>
 
item Pencil
==Distribution==
MaxRange = 0.9,
The loot distributions can be found in the table(s) below.
WeaponSprite = Knife,
 
MinAngle = 0,
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
Type = Weapon,
! colspan="4" | Containers
MinimumSwingTime = 2,
|-
KnockBackOnNoDeath = FALSE,
! Building/Room
SwingAmountBeforeImpact = 0.02,
! Container
Categories = Improvised,
! style="width: 3.2em;" | Rolls
ConditionLowerChanceOneIn = 1,
! style="width: 3.2em;" | Chance
Weight = 0.1,
|-
SplatN.umber = 0,
|rowspan="6"|all
PushBackMod = 0.3,
|[[desk]]
MaxDamage = 0.1,
|4
SubCategory = Stab,
|1
AimingMod = 0.8,
|-
ConditionMax = 2,
|[[filingcabinet]]
MaxHitCount = 1,
|4
IsAimedHandWeapon = TRUE,
|1
DoorDamage = 1,
|-
SwingAnim = Stab,
|[[locker]]
WeaponWeight = 0.1,
|4
DisplayName = Pencil,
|1
MinRange = 0.61,
|-
SwingTime = 2,
|[[officedrawers]]
MinDamage = 0.1,
|4
KnockdownMod = 0,
|1
SplatBloodOnNoDeath = FALSE,
|-
Icon = Pencil,
|[[other]]
RunAnim = Run_Weapon2,
|1
        IdleAnim = Idle_Weapon2,
|1
        BreakSound  = PZ_MetalSnap,
|-
        TreeDamage  = 0,
|[[shelves]]
        EnduranceMod = 0.5,
|4
</nowiki>
|1
{{Navbox/Tools}}{{Navbox/Weapons}}
|-
[[Category:Weapons]]
|rowspan="3"|artstore
[[Category:Melee Weapons]]
|[[counter]]
|4
|1
|-
|[[shelves]]
|4
|1
|-
|[[shelves]]
|4
|2
|-
|rowspan="3"|bedroom
|[[desk]]
|4
|1
|-
|[[desk]]
|4
|1
|-
|[[sidetable]]
|4
|1
|-
|rowspan="2"|bookstore
|[[counter]]
|4
|1
|-
|[[counter]]
|4
|2
|-
|rowspan="3"|classroom
|[[counter]]
|4
|1
|-
|[[desk]]
|4
|1
|-
|[[metal_shelves]]
|4
|1
|-
|closet
|[[crate]]
|4
|1
|-
|rowspan="3"|daycare
|[[counter]]
|4
|1
|-
|[[desk]]
|4
|1
|-
|[[metal_shelves]]
|4
|1
|-
|empty
|[[crate]]
|4
|1
|-
|rowspan="2"|garagestorage
|[[crate]]
|4
|1
|-
|[[crate]]
|4
|2
|-
|rowspan="2"|generalstore
|[[shelves]]
|4
|1
|-
|[[shelves]]
|4
|2
|-
|hall
|[[locker]]
|4
|1
|-
|rowspan="2"|kitchen
|[[counter]]
|4
|1
|-
|[[shelves]]
|4
|1
|-
|rowspan="4"|livingroom
|[[shelves]]
|4
|1
|-
|[[shelves]]
|4
|1
|-
|[[sidetable]]
|4
|1
|-
|[[sidetable]]
|4
|1
|-
|rowspan="4"|office
|[[counter]]
|4
|1
|-
|[[desk]]
|4
|1
|-
|[[metal_shelves]]
|4
|1
|-
|[[metal_shelves]]
|4
|2
|-
|rowspan="2"|post
|[[counter]]
|4
|1
|-
|[[counter]]
|4
|2
|-
|prisoncells
|[[wardrobe]]
|4
|1
|}
 
==Code==
{{CodeBox|
{{CodeSnip
  | lang = java
  | line = true
  | start = 4087
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Pencil
{
    DisplayCategory = Household,
MaxRange = 0.8,
WeaponSprite = Pencil,
MinAngle = 0.65,
Type = Weapon,
MinimumSwingTime = 2,
KnockBackOnNoDeath = FALSE,
SwingAmountBeforeImpact = 0.02,
Categories = Improvised,
ConditionLowerChanceOneIn = 1,
Weight = 0.1,
SplatNumber = 1,
PushBackMod = 0.3,
SubCategory = Stab,
AimingMod = 0.8,
ConditionMax = 1,
MaxHitCount = 1,
IsAimedHandWeapon = TRUE,
DoorDamage = 0,
SwingAnim = Stab,
DisplayName = Pencil,
MinRange = 0.61,
SwingTime = 2,
KnockdownMod = 0,
SplatBloodOnNoDeath = FALSE,
Icon = Pencil,
RunAnim = Run_Weapon2,
        IdleAnim = Idle_Weapon2,
        TreeDamage  =  0,
        EnduranceMod = 0.5,
        CriticalChance = 0,
        MinDamage = 0.1,
        MaxDamage = 0.1,
WeaponLength = 0.15,
Tags = Write;Pencil,
        BreakSound  =  PenBreak,
        HitFloorSound = PenHit,
        ImpactSound = PenHit,
        DoorHitSound = PenHit,
HitSound = PenHit,
SwingSound = PenSwing,
}
}}
}}
 
==See also==
*[[Crayons]]
*[[Eraser]]
*[[Pen]]
 
{{Navbox items|other_weapons}}
 
 
 
[[Category:Melee weapons]]

Latest revision as of 10:55, 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]
Pencil
Pencil Model.png
General
Category
Household
Encumbrance
Moodle Icon HeavyLoad.png
0.1
Equipped
One-handed
Slot attached
N/A
Skill
N/A
Properties
Max condition
1
Performance
Damage
0.1–0.1
Range
0.61–0.8
Attack speed
N/A
Knockback
0.3
Knockdown
0
Technical
Item ID
Base.Pencil

A pencil is a writing implement and improvised weapon.

Usage

Writing

A pencil can be used with journals, empty notebooks and a sheet of paper to write notes that can be left for other players on Multiplayer servers. It can also be used to place markers or add text that can be removed with an eraser on the player's map or already annotated maps.

Weapon

The pencil is an improvised weapon and is not associated with a weapon skill, but performs attacks like a short blade, including the special execution move. Pencils have a very low durability so will quickly exhaust all of its durability; making it useless as a weapon. It can be used as a discardable stealth-kill weapon, as they are very common, it can be picked up, used to stealth kill a zombie then discarded. However, as the pen has a very low range, this can be dangerous.

Condition

Pencils have a maximum condition of 1. Its rate of degradation is influenced by the maintenance skill. The chance of losing durability can be simplified to the following formula: 1 in (1 + maintenanceMod × 2). Where "maintenanceMod" is calculated using the maintenance skill.
Below is an example of the chance of losing durability at varying levels of the maintenance skill.

For how this is calculated, see: Durability
Maintenance skill Durability lower chance
0 1/1 (100%)
2 1/3 (33%)
4 1/5 (20%)
6 1/7 (14%)
8 1/9 (11%)
10 1/11 (9%)

Crafting

BoxSmall.png
This feature has been removed from the game.
Pens are no longer used in crafting, and can instead be used to write.

Formerly, the pencil could be used to make doodle and with notepad to make journal, this has since been removed.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2
Notebook.png
Journal x20
none
One of:
Pen.png Pen
Pencil.png Pencil

(consumed)
Notebook.png
Empty Notebook
(consumed)
Paper.png
Doodle
none
One of:
Pen.png Pen
Pencil.png Pencil

(consumed)
Paper.png
Sheet of Paper
(consumed)


Distribution

The loot distributions can be found in the table(s) below.

Containers
Building/Room Container Rolls Chance
all desk 4 1
filingcabinet 4 1
locker 4 1
officedrawers 4 1
other 1 1
shelves 4 1
artstore counter 4 1
shelves 4 1
shelves 4 2
bedroom desk 4 1
desk 4 1
sidetable 4 1
bookstore counter 4 1
counter 4 2
classroom counter 4 1
desk 4 1
metal_shelves 4 1
closet crate 4 1
daycare counter 4 1
desk 4 1
metal_shelves 4 1
empty crate 4 1
garagestorage crate 4 1
crate 4 2
generalstore shelves 4 1
shelves 4 2
hall locker 4 1
kitchen counter 4 1
shelves 4 1
livingroom shelves 4 1
shelves 4 1
sidetable 4 1
sidetable 4 1
office counter 4 1
desk 4 1
metal_shelves 4 1
metal_shelves 4 2
post counter 4 1
counter 4 2
prisoncells wardrobe 4 1

Code

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

Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item Pencil
	{
	    DisplayCategory = Household,
		MaxRange	=	0.8,
		WeaponSprite	=	Pencil,
		MinAngle	=	0.65,
		Type	=	Weapon,
		MinimumSwingTime	=	2,
		KnockBackOnNoDeath	=	FALSE,
		SwingAmountBeforeImpact	=	0.02,
		Categories	=	Improvised,
		ConditionLowerChanceOneIn	=	1,
		Weight	=	0.1,
		SplatNumber	=	1,
		PushBackMod	=	0.3,
		SubCategory	=	Stab,
		AimingMod	=	0.8,
		ConditionMax	=	1,
		MaxHitCount	=	1,
		IsAimedHandWeapon	=	TRUE,
		DoorDamage	=	0,
		SwingAnim	=	Stab,
		DisplayName	=	Pencil,
		MinRange	=	0.61,
		SwingTime	=	2,
		KnockdownMod	=	0,
		SplatBloodOnNoDeath	=	FALSE,
		Icon	=	Pencil,
		RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        TreeDamage  =   0,
        EnduranceMod = 0.5,
        CriticalChance	=	0,
        MinDamage	=	0.1,
        MaxDamage	=	0.1,
		WeaponLength = 0.15,
		Tags = Write;Pencil,
        BreakSound  =   PenBreak,
        HitFloorSound	= PenHit,
        ImpactSound	=	PenHit,
        DoorHitSound = PenHit,
		HitSound	=	PenHit,
		SwingSound = PenSwing,
	}

See also