Pen: Difference between revisions

From PZwiki
m (Undo revision 141615 by Faalagorn (talk))
Tag: Undo
(updated to 41.78.16, added CodeBox, Condition and more)
Line 1: Line 1:
{{Languages}}{{Header|The Game World|Items|Tools|Stationery|version=Version 41|incver=50}}{{Infobox weapon
{{Languages}}
{{Header|The Game World|Items|Tools|Stationery|version=Version 41|incver=78.16}}
{{Infobox weapon
|display_name=Pen
|display_name=Pen
|name_colour=Weapon
|name_colour=Weapon
Line 10: Line 12:
|alternate_image3=BluePen.png
|alternate_image3=BluePen.png
|alternete_name3=Blue Pen
|alternete_name3=Blue Pen
|category=Weapon
<!--GENERAL-->
|category=Household
|weight=0.1
|weight=0.1
|equipped=One-handed
|equipped=One-handed
|skill_type={{tooltip|N/A|This weapon has no skill associated with it.}}
|attachment_type={{tooltip|N/A|This weapon cannot be attached to any slot.}}
<!--DAMAGE-->
|type=Stab
|type=Stab
|min_range=0.61
|min_range=0.61
|max_range=0.8
|max_range=0.8
|swing_time=2
|base_speed={{tooltip|Stab|Attacks are near instant, and not influenced by a speed stat.}}
|condition_max=2
|condition_max=2
|min_damage=0.1
|min_damage=0.1
Line 22: Line 28:
|push_back=0.3
|push_back=0.3
|knockdown=0
|knockdown=0
<!--TECHNICAL-->
|class_name=Base.Pen<br>Base.RedPen<br>Base.BluePen
|class_name=Base.Pen<br>Base.RedPen<br>Base.BluePen
}}The '''pen''' is a writing implement and early game [[Weapons|weapon]].
}}The '''pen''' is a writing implement and improvised [[Weapons|weapon]].


==Usage==
==Usage==


===Writing===
===Writing===
A pen 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. [[Map]]s can be annotated with a pen, adding symbols and text in the color of the pen used.  
A pen 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. The [[map]] can be annotated with a pen, adding symbols and text in the color of the pen used (blue, black or red).  


===Weapon===
===Weapon===
The pen is considered a [[Weapons#Improvised|blade weapon]] that can kill zombies, but doing so will usually exhaust all of its durability; making it broken and rendering it useless. However, it can work somewhat well as a discardable stealth-kill weapon. Due to pens being very common loot, it can be picked up, used to stealth kill a zombie in the building it was looted from, and discarded.
The pen is an [[Weapons#Improvised|improvised]] weapon and is not associated with a weapon skill, but attacks like a [[Weapons#Short Blade|short blade]], including the special execution move. Pens have a very low [[#Condition|durability]] so will usually 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==
Pens have a maximum condition of 2. 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>
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] skill.
{{Durability weapon|1|weapon_skill=false}}


==Distribution==
==Distribution==
Pens can be found in three colours, standard, red and blue, each with the same stats.
Pens can be found in three colors, standard (black), red and blue, each with the same stats.


Pens can be found in [[Containers#Bins|bins]], [[Containers#Lockers|lockers]], [[Containers#Corpses|zombie corpses]], [[Containers#Desks|desks]], [[Containers#Counters|shop counters]], [[Containers#Bedroom Storage|side tables]], [[Containers#Shelves|houseware store shelves]], [[Containers#Crates|gift store crates]], shelves and [[Containers#Displays|display cases]], [[Containers#Shelves|toy store shelves]], [[Containers#Shelves|sewing store shelves]], [[School Bag|school bag]]s and [[Garbage Bag|garbage bags]].
Pens can be found in [[Containers#Bins|bins]], [[Containers#Lockers|lockers]], [[Containers#Corpses|zombie corpses]], [[Containers#Desks|desks]], [[Containers#Counters|shop counters]], [[Containers#Bedroom Storage|side tables]], [[Containers#Shelves|houseware store shelves]], [[Containers#Crates|gift store crates]], shelves and [[Containers#Displays|display cases]], [[Containers#Shelves|toy store shelves]], [[Containers#Shelves|sewing store shelves]], [[School Bag|school bag]]s and [[Garbage Bag|garbage bags]].


==Former crafting==
==Crafting==
{{Obsolete|hidecat=true|text=Pens are no longer used in crafting, and can instead be used to [[#writing|write]].}}
Formerly, the pen could be used to make [[doodle]] and with [[notepad]] to make [[journal]], this has since been removed.
Formerly, the pen could be used to make [[doodle]] and with [[notepad]] to make [[journal]], this has since been removed.
{{Crafting header|ing=2}}
{{Crafting header|ing=2}}
Line 59: Line 72:
{{Crafting/core|ing=2
{{Crafting/core|ing=2
  | product_image = [[File:Paper.png|link=Doodle]]
  | product_image = [[File:Paper.png|link=Doodle]]
  | product_name = [[Doodle]]
  | product_name = [[Doodle]]{{removedSup}}
  | product_quantity =
  | product_quantity =
  | rec =  
  | rec =  
Line 76: Line 89:


==Code==
==Code==
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|
 
[[File:Pen.png]] ''Pen''<br>
[[File:Pen.png]] ''Pen''
{{CodeSnip
{{Retrieved|version=41|incver=50}}
  | lang = java
<pre>
  | line = true
  | start = 4042
  | source = items_weapons.txt
  | retrieved = true
  | version = 41
  | incver = 78.16
  | code =
item Pen
item Pen
MaxRange = 0.8,
{
WeaponSprite = Pen,
    DisplayCategory = Household,
MinAngle = 0.65,
MaxRange = 0.8,
Type = Weapon,
WeaponSprite = Pen,
MinimumSwingTime = 2,
MinAngle = 0.65,
KnockBackOnNoDeath = FALSE,
Type = Weapon,
SwingAmountBeforeImpact = 0.02,
MinimumSwingTime = 2,
Categories = Improvised,
KnockBackOnNoDeath = FALSE,
ConditionLowerChanceOneIn = 1,
SwingAmountBeforeImpact = 0.02,
Weight = 0.1,
Categories = Improvised,
SplatNumber = 1,
ConditionLowerChanceOneIn = 1,
PushBackMod = 0.3,
Weight = 0.1,
SubCategory = Stab,
SplatNumber = 1,
AimingMod = 0.8,
PushBackMod = 0.3,
ConditionMax = 2,
SubCategory = Stab,
MaxHitCount = 1,
AimingMod = 0.8,
IsAimedHandWeapon = TRUE,
ConditionMax = 2,
DoorDamage = 0,
MaxHitCount = 1,
SwingAnim = Stab,
IsAimedHandWeapon = TRUE,
DisplayName = Pen,
DoorDamage = 0,
MinRange = 0.61,
SwingAnim = Stab,
SwingTime = 2,
DisplayName = Pen,
KnockdownMod = 0,
MinRange = 0.61,
SplatBloodOnNoDeath = FALSE,
SwingTime = 2,
Icon = Pen,
KnockdownMod = 0,
RunAnim = Run_Weapon2,
SplatBloodOnNoDeath = FALSE,
IdleAnim = Idle_Weapon2,
Icon = Pen,
BreakSound  = BreakMetalItem,
RunAnim = Run_Weapon2,
TreeDamage = 0,
IdleAnim = Idle_Weapon2,
EnduranceMod = 0.5,
TreeDamage =   0,
CriticalChance = 0,
EnduranceMod = 0.5,
MinDamage = 0.1,
CriticalChance = 0,
MaxDamage = 0.1,
MinDamage = 0.1,
WeaponLength = 0.15,
        MaxDamage = 0.1,
Tags = Write,
WeaponLength = 0.15,
</pre>
Tags = Write;Pen,
        BreakSound  =  PenBreak,
        HitFloorSound = PenHit,
        ImpactSound = PenHit,
        DoorHitSound = PenHit,
HitSound = PenHit,
SwingSound = PenSwing,
}
}}


[[File:RedPen.png]] ''Red Pen''
[[File:RedPen.png]] ''Red Pen''<br>
{{Retrieved|version=41|incver=50}}
{{CodeSnip
<pre>
  | lang = java
  | line = true
  | start = 3946
  | source = items_weapons.txt
  | retrieved = true
  | version = 41
  | incver = 78.16
  | code =
item RedPen
item RedPen
MaxRange = 0.8,
{
WeaponSprite = Pen,
    DisplayCategory = Household,
MinAngle = 0.65,
MaxRange = 0.8,
Type = Weapon,
WeaponSprite = Pen,
MinimumSwingTime = 2,
MinAngle = 0.65,
KnockBackOnNoDeath = FALSE,
Type = Weapon,
SwingAmountBeforeImpact = 0.02,
MinimumSwingTime = 2,
Categories = Improvised,
KnockBackOnNoDeath = FALSE,
ConditionLowerChanceOneIn = 1,
SwingAmountBeforeImpact = 0.02,
Weight = 0.1,
Categories = Improvised,
SplatNumber = 1,
ConditionLowerChanceOneIn = 1,
PushBackMod = 0.3,
Weight = 0.1,
SubCategory = Stab,
SplatNumber = 1,
AimingMod = 0.8,
PushBackMod = 0.3,
ConditionMax = 2,
SubCategory = Stab,
MaxHitCount = 1,
AimingMod = 0.8,
IsAimedHandWeapon = TRUE,
ConditionMax = 2,
DoorDamage = 0,
MaxHitCount = 1,
SwingAnim = Stab,
IsAimedHandWeapon = TRUE,
DisplayName = Red Pen,
DoorDamage = 0,
MinRange = 0.61,
SwingAnim = Stab,
SwingTime = 2,
DisplayName = Red Pen,
KnockdownMod = 0,
MinRange = 0.61,
SplatBloodOnNoDeath = FALSE,
SwingTime = 2,
Icon = Pen,
KnockdownMod = 0,
RunAnim = Run_Weapon2,
SplatBloodOnNoDeath = FALSE,
IdleAnim = Idle_Weapon2,
Icon = Pen,
BreakSound  = BreakMetalItem,
RunAnim = Run_Weapon2,
TreeDamage = 0,
IdleAnim = Idle_Weapon2,
EnduranceMod = 0.5,
TreeDamage =   0,
ColorRed = 220,
EnduranceMod = 0.5,
ColorGreen = 10,
ColorRed = 220,
        ColorBlue = 10,
        ColorGreen = 10,
CriticalChance = 0,
        ColorBlue = 10,
MinDamage = 0.1,
        CriticalChance = 0,
MaxDamage = 0.1,
        MinDamage = 0.1,
WeaponLength = 0.15,
        MaxDamage = 0.1,
Tags = Write,
WeaponLength = 0.15,
</pre>
Tags = Write;RedPen,
BreakSound  =  PenBreak,
        HitFloorSound = PenHit,
        ImpactSound = PenHit,
        DoorHitSound = PenHit,
HitSound = PenHit,
SwingSound = PenSwing,
}
}}


[[File:BluePen.png]] ''Blue Pen''  
[[File:BluePen.png]] ''Blue Pen''<br>
{{Retrieved|version=41|incver=50}}
{{CodeSnip
<pre>
  | lang = java
  | line = true
  | start = 3994
  | source = items_weapons.txt
  | retrieved = true
  | version = 41
  | incver = 78.16
  | code =
item BluePen
item BluePen
MaxRange = 0.8,
{
WeaponSprite = Pen,
    DisplayCategory = Household,
MinAngle = 0.65,
MaxRange = 0.8,
Type = Weapon,
WeaponSprite = Pen,
MinimumSwingTime = 2,
MinAngle = 0.65,
KnockBackOnNoDeath = FALSE,
Type = Weapon,
SwingAmountBeforeImpact = 0.02,
MinimumSwingTime = 2,
Categories = Improvised,
KnockBackOnNoDeath = FALSE,
ConditionLowerChanceOneIn = 1,
SwingAmountBeforeImpact = 0.02,
Weight = 0.1,
Categories = Improvised,
SplatNumber = 1,
ConditionLowerChanceOneIn = 1,
PushBackMod = 0.3,
Weight = 0.1,
SubCategory = Stab,
SplatNumber = 1,
AimingMod = 0.8,
PushBackMod = 0.3,
ConditionMax = 2,
SubCategory = Stab,
MaxHitCount = 1,
AimingMod = 0.8,
IsAimedHandWeapon = TRUE,
ConditionMax = 2,
DoorDamage = 0,
MaxHitCount = 1,
SwingAnim = Stab,
IsAimedHandWeapon = TRUE,
DisplayName = Blue Pen,
DoorDamage = 0,
MinRange = 0.61,
SwingAnim = Stab,
SwingTime = 2,
DisplayName = Blue Pen,
KnockdownMod = 0,
MinRange = 0.61,
SplatBloodOnNoDeath = FALSE,
SwingTime = 2,
Icon = Pen,
KnockdownMod = 0,
RunAnim = Run_Weapon2,
SplatBloodOnNoDeath = FALSE,
IdleAnim = Idle_Weapon2,
Icon = Pen,
BreakSound = BreakMetalItem,
RunAnim = Run_Weapon2,
TreeDamage = 0,
IdleAnim = Idle_Weapon2,
EnduranceMod = 0.5,
TreeDamage =   0,
ColorRed = 50,
EnduranceMod = 0.5,
ColorGreen = 50,
ColorRed = 50,
ColorBlue = 210,
        ColorGreen = 50,
CriticalChance = 0,
        ColorBlue = 210,
MinDamage = 0.1,
        CriticalChance = 0,
MaxDamage = 0.1,
        MinDamage = 0.1,
WeaponLength = 0.15,
        MaxDamage = 0.1,
Tags = Write,
WeaponLength = 0.15,
</pre>
Tags = Write;BluePen,
        BreakSound  =  PenBreak,
        HitFloorSound = PenHit,
        ImpactSound = PenHit,
        DoorHitSound = PenHit,
HitSound = PenHit,
SwingSound = PenSwing,
}
}}
}}


==See also==
==See also==
Line 214: Line 272:
{{Navbox weapons}}
{{Navbox weapons}}


[[Category:Weapons]]
[[Category:Melee weapons]]
[[Category:Melee weapons]]

Revision as of 10:15, 2 January 2024

Template:Infobox weaponThe pen is a writing implement and improvised weapon.

Usage

Writing

A pen 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. The map can be annotated with a pen, adding symbols and text in the color of the pen used (blue, black or red).

Weapon

The pen is an improvised weapon and is not associated with a weapon skill, but attacks like a short blade, including the special execution move. Pens have a very low durability so will usually 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

Pens have a maximum condition of 2. 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: Condition
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%)

Distribution

Pens can be found in three colors, standard (black), red and blue, each with the same stats.

Pens can be found in bins, lockers, zombie corpses, desks, shop counters, side tables, houseware store shelves, gift store crates, shelves and display cases, toy store shelves, sewing store shelves, school bags and garbage bags.

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 pen 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
DoodleTemplate:RemovedSup
none
One of:
Pen.png Pen
Pencil.png Pencil

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

Code

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

Pen.png Pen
Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item Pen
	{
	    DisplayCategory = Household,
		MaxRange	=	0.8,
		WeaponSprite	=	Pen,
		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	=	2,
		MaxHitCount	=	1,
		IsAimedHandWeapon	=	TRUE,
		DoorDamage	=	0,
		SwingAnim	=	Stab,
		DisplayName	=	Pen,
		MinRange	=	0.61,
		SwingTime	=	2,
		KnockdownMod	=	0,
		SplatBloodOnNoDeath	=	FALSE,
		Icon	=	Pen,
		RunAnim	=	Run_Weapon2,
		IdleAnim	=	Idle_Weapon2,
		TreeDamage  =   0,
		EnduranceMod = 0.5,
		CriticalChance	=	0,
		MinDamage	=	0.1,
        MaxDamage	=	0.1,
		WeaponLength = 0.15,
		Tags = Write;Pen,
        BreakSound  =   PenBreak,
        HitFloorSound	= PenHit,
        ImpactSound	=	PenHit,
        DoorHitSound = PenHit,
		HitSound	=	PenHit,
		SwingSound = PenSwing,
	}

RedPen.png Red Pen
Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item RedPen
	{
	    DisplayCategory = Household,
		MaxRange	=	0.8,
		WeaponSprite	=	Pen,
		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	=	2,
		MaxHitCount	=	1,
		IsAimedHandWeapon	=	TRUE,
		DoorDamage	=	0,
		SwingAnim	=	Stab,
		DisplayName	=	Red Pen,
		MinRange	=	0.61,
		SwingTime	=	2,
		KnockdownMod	=	0,
		SplatBloodOnNoDeath	=	FALSE,
		Icon	=	Pen,
		RunAnim	=	Run_Weapon2,
		IdleAnim	=	Idle_Weapon2,
		TreeDamage  =   0,
		EnduranceMod = 0.5,
		ColorRed = 220,
        ColorGreen = 10,
        ColorBlue = 10,
        CriticalChance	=	0,
        MinDamage	=	0.1,
        MaxDamage	=	0.1,
		WeaponLength = 0.15,
		Tags = Write;RedPen,
		BreakSound  =   PenBreak,
        HitFloorSound = PenHit,
        ImpactSound	=	PenHit,
        DoorHitSound = PenHit,
		HitSound	=	PenHit,
		SwingSound = PenSwing,
	}

BluePen.png Blue Pen
Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item BluePen
	{
	    DisplayCategory = Household,
		MaxRange	=	0.8,
		WeaponSprite	=	Pen,
		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	=	2,
		MaxHitCount	=	1,
		IsAimedHandWeapon	=	TRUE,
		DoorDamage	=	0,
		SwingAnim	=	Stab,
		DisplayName	=	Blue Pen,
		MinRange	=	0.61,
		SwingTime	=	2,
		KnockdownMod	=	0,
		SplatBloodOnNoDeath	=	FALSE,
		Icon	=	Pen,
		RunAnim	=	Run_Weapon2,
		IdleAnim	=	Idle_Weapon2,
		TreeDamage  =   0,
		EnduranceMod = 0.5,
		ColorRed = 50,
        ColorGreen = 50,
        ColorBlue = 210,
        CriticalChance	=	0,
        MinDamage	=	0.1,
        MaxDamage	=	0.1,
		WeaponLength = 0.15,
		Tags = Write;BluePen,
        BreakSound  =   PenBreak,
        HitFloorSound	= PenHit,
        ImpactSound	=	PenHit,
        DoorHitSound = PenHit,
		HitSound	=	PenHit,
		SwingSound = PenSwing,
	}

See also