Pen: Difference between revisions
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= | {{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= | <!--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 | ||
| | |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 | }}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. [[ | 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 | 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 × 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 | 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]]. | ||
== | ==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== | ||
{{CodeBox| | |||
[[File:Pen.png]] ''Pen''<br> | |||
[[File:Pen.png]] ''Pen'' | {{CodeSnip | ||
{{ | | lang = java | ||
| line = true | |||
| start = 4042 | |||
| source = items_weapons.txt | |||
| retrieved = true | |||
| version = 41 | |||
| incver = 78.16 | |||
| code = | |||
item Pen | item Pen | ||
MaxRange | { | ||
WeaponSprite | DisplayCategory = Household, | ||
MinAngle | MaxRange = 0.8, | ||
Type | WeaponSprite = Pen, | ||
MinimumSwingTime = 2, | MinAngle = 0.65, | ||
KnockBackOnNoDeath = FALSE, | Type = Weapon, | ||
SwingAmountBeforeImpact = 0.02, | MinimumSwingTime = 2, | ||
Categories | KnockBackOnNoDeath = FALSE, | ||
ConditionLowerChanceOneIn = 1, | SwingAmountBeforeImpact = 0.02, | ||
Weight | Categories = Improvised, | ||
SplatNumber | ConditionLowerChanceOneIn = 1, | ||
PushBackMod | Weight = 0.1, | ||
SubCategory | SplatNumber = 1, | ||
AimingMod | PushBackMod = 0.3, | ||
ConditionMax | SubCategory = Stab, | ||
MaxHitCount | AimingMod = 0.8, | ||
IsAimedHandWeapon = TRUE, | ConditionMax = 2, | ||
DoorDamage | MaxHitCount = 1, | ||
SwingAnim | IsAimedHandWeapon = TRUE, | ||
DisplayName | DoorDamage = 0, | ||
MinRange | SwingAnim = Stab, | ||
SwingTime | DisplayName = Pen, | ||
KnockdownMod | MinRange = 0.61, | ||
SplatBloodOnNoDeath = FALSE, | SwingTime = 2, | ||
Icon | KnockdownMod = 0, | ||
RunAnim | SplatBloodOnNoDeath = FALSE, | ||
IdleAnim | Icon = Pen, | ||
RunAnim = Run_Weapon2, | |||
TreeDamage | IdleAnim = Idle_Weapon2, | ||
EnduranceMod | TreeDamage = 0, | ||
CriticalChance | EnduranceMod = 0.5, | ||
MinDamage | CriticalChance = 0, | ||
MinDamage = 0.1, | |||
WeaponLength | MaxDamage = 0.1, | ||
Tags | WeaponLength = 0.15, | ||
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> | ||
{{ | {{CodeSnip | ||
| lang = java | |||
| line = true | |||
| start = 3946 | |||
| source = items_weapons.txt | |||
| retrieved = true | |||
| version = 41 | |||
| incver = 78.16 | |||
| code = | |||
item RedPen | item RedPen | ||
MaxRange | { | ||
WeaponSprite | DisplayCategory = Household, | ||
MinAngle | MaxRange = 0.8, | ||
Type | WeaponSprite = Pen, | ||
MinimumSwingTime = 2, | MinAngle = 0.65, | ||
KnockBackOnNoDeath = FALSE, | Type = Weapon, | ||
SwingAmountBeforeImpact = 0.02, | MinimumSwingTime = 2, | ||
Categories | KnockBackOnNoDeath = FALSE, | ||
ConditionLowerChanceOneIn = 1, | SwingAmountBeforeImpact = 0.02, | ||
Weight | Categories = Improvised, | ||
SplatNumber | ConditionLowerChanceOneIn = 1, | ||
PushBackMod | Weight = 0.1, | ||
SubCategory | SplatNumber = 1, | ||
AimingMod | PushBackMod = 0.3, | ||
ConditionMax | SubCategory = Stab, | ||
MaxHitCount | AimingMod = 0.8, | ||
IsAimedHandWeapon = TRUE, | ConditionMax = 2, | ||
DoorDamage | MaxHitCount = 1, | ||
SwingAnim | IsAimedHandWeapon = TRUE, | ||
DisplayName | DoorDamage = 0, | ||
MinRange | SwingAnim = Stab, | ||
SwingTime | DisplayName = Red Pen, | ||
KnockdownMod | MinRange = 0.61, | ||
SplatBloodOnNoDeath = FALSE, | SwingTime = 2, | ||
Icon | KnockdownMod = 0, | ||
RunAnim | SplatBloodOnNoDeath = FALSE, | ||
IdleAnim | Icon = Pen, | ||
RunAnim = Run_Weapon2, | |||
TreeDamage | IdleAnim = Idle_Weapon2, | ||
EnduranceMod | TreeDamage = 0, | ||
ColorRed | EnduranceMod = 0.5, | ||
ColorRed = 220, | |||
ColorGreen = 10, | |||
ColorBlue = 10, | |||
CriticalChance = 0, | |||
MinDamage = 0.1, | |||
WeaponLength | MaxDamage = 0.1, | ||
Tags = | WeaponLength = 0.15, | ||
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> | ||
{{ | {{CodeSnip | ||
| lang = java | |||
| line = true | |||
| start = 3994 | |||
| source = items_weapons.txt | |||
| retrieved = true | |||
| version = 41 | |||
| incver = 78.16 | |||
| code = | |||
item BluePen | item BluePen | ||
MaxRange | { | ||
WeaponSprite | DisplayCategory = Household, | ||
MinAngle | MaxRange = 0.8, | ||
Type | WeaponSprite = Pen, | ||
MinimumSwingTime = 2, | MinAngle = 0.65, | ||
KnockBackOnNoDeath = FALSE, | Type = Weapon, | ||
SwingAmountBeforeImpact = 0.02, | MinimumSwingTime = 2, | ||
Categories | KnockBackOnNoDeath = FALSE, | ||
ConditionLowerChanceOneIn = 1, | SwingAmountBeforeImpact = 0.02, | ||
Weight | Categories = Improvised, | ||
SplatNumber | ConditionLowerChanceOneIn = 1, | ||
PushBackMod | Weight = 0.1, | ||
SubCategory | SplatNumber = 1, | ||
AimingMod | PushBackMod = 0.3, | ||
ConditionMax | SubCategory = Stab, | ||
MaxHitCount | AimingMod = 0.8, | ||
IsAimedHandWeapon = TRUE, | ConditionMax = 2, | ||
DoorDamage | MaxHitCount = 1, | ||
SwingAnim | IsAimedHandWeapon = TRUE, | ||
DisplayName | DoorDamage = 0, | ||
MinRange | SwingAnim = Stab, | ||
SwingTime | DisplayName = Blue Pen, | ||
KnockdownMod | MinRange = 0.61, | ||
SplatBloodOnNoDeath = FALSE, | SwingTime = 2, | ||
Icon | KnockdownMod = 0, | ||
RunAnim | SplatBloodOnNoDeath = FALSE, | ||
IdleAnim | Icon = Pen, | ||
RunAnim = Run_Weapon2, | |||
TreeDamage | IdleAnim = Idle_Weapon2, | ||
EnduranceMod | TreeDamage = 0, | ||
ColorRed | EnduranceMod = 0.5, | ||
ColorRed = 50, | |||
ColorGreen = 50, | |||
ColorBlue = 210, | |||
CriticalChance = 0, | |||
MinDamage = 0.1, | |||
WeaponLength | MaxDamage = 0.1, | ||
Tags = | WeaponLength = 0.15, | ||
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: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.
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
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 |
---|---|---|---|---|---|
Journal x20 |
none | (consumed) |
Empty Notebook (consumed) | ||
DoodleTemplate:RemovedSup |
none | (consumed) |
Sheet of Paper (consumed) |
Code
Pen
Source: ProjectZomboid\media\scripts\items_weapons.txt
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,
}
Red Pen
Source: ProjectZomboid\media\scripts\items_weapons.txt
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,
}
Blue Pen
Source: ProjectZomboid\media\scripts\items_weapons.txt
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,
}