Pencil: Difference between revisions
mNo edit summary |
m (Distribution table update) |
||
(39 intermediate revisions by 9 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Header|Project Zomboid|Items|Miscellaneous items|Household|Stationery}} | ||
{{Page version|41.78.16}} | |||
{{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. | |||
==Usage== | |||
== | ===Writing=== | ||
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]]. | |||
== | ===Weapon=== | ||
< | 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. | ||
MaxRange | ==Condition== | ||
WeaponSprite | 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 × 2)</code>. Where "maintenanceMod" is calculated using the maintenance skill.<br> | ||
MinAngle | Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] skill. | ||
Type | {{Durability weapon|1|weapon_skill=false}} | ||
MinimumSwingTime | |||
KnockBackOnNoDeath | ==Crafting== | ||
SwingAmountBeforeImpact | {{Obsolete|hidecat=true|text=Pens are no longer used in crafting, and can instead be used to [[#writing|write]].}} | ||
Categories | Formerly, the pencil could be used to make [[doodle]] and with [[notepad]] to make [[journal]], this has since been removed. | ||
ConditionLowerChanceOneIn = 1, | {{Crafting header|ing=2}} | ||
Weight | {{Crafting|ing=2 | ||
| product_image = [[File:Notebook.png|link=Journal]] | |||
PushBackMod | | product_name = [[Journal]] | ||
| product_quantity = x20 | |||
SubCategory | | rec = | ||
AimingMod | | xp = <!-- Not present in the old template. Please fill in manually. --> | ||
ConditionMax | | m1_1 = [[File:Pen.png|20px|link=Pen]] [[Pen]] | ||
MaxHitCount | | m1_2 = [[File:Pencil.png|20px|link=Pencil]] [[Pencil]] | ||
IsAimedHandWeapon | | q1 = | ||
DoorDamage | | tag1 = (consumed) | ||
SwingAnim | | f2 = [[File:Notebook.png|link=Empty Notebook]] | ||
| i2 = [[Empty Notebook]] | |||
DisplayName | | q2 = | ||
MinRange | | tag2 = (consumed) | ||
SwingTime | | sl = ''none'' | ||
}} | |||
KnockdownMod | {{Crafting|ing=2 | ||
SplatBloodOnNoDeath | | product_image = [[File:Paper.png|link=Doodle]] | ||
Icon | | product_name = [[Doodle]] | ||
RunAnim | | 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]] | ||
[[Category:Melee | | i2 = [[Sheet of Paper]] | ||
| q2 = | |||
| tag2 = (consumed) | |||
| sl = ''none'' | |||
}} | |||
|} | |||
==Distribution== | |||
The loot distributions can be found in the table(s) below. | |||
<!--BOT FLAG|Pencil|41.78.16--> | |||
{{clear}} | |||
<div class="togglebox theme-red"> | |||
<div>Pencil distribution | |||
<span class="mw-customtoggle-togglebox-Pencil" title="{{int:show}} / {{int:hide}}" style="float:right; padding-right:30px; padding-top:4px; font-size:0.7em; font-weight:normal;">{{int:show}} / {{int:hide}}</span></div> | |||
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Pencil"> | |||
<div class="toggle-content"><div style="display: flex;"><div style="float:left;"> | |||
{| class="wikitable theme-red" style="margin-right:15px; width:95%;" | |||
|+ {{ll|Containers}} | |||
! Building / Room | |||
! Container | |||
! Rolls | |||
! Chance | |||
|- | |||
| Not referenced | |||
| {{ll|GolfLockers}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| all | |||
| {{ll|Bag_GolfBag}} | |||
| 1 | |||
| 10.0 | |||
|- | |||
| all | |||
| {{ll|Outfit_ConstructionWorker}} | |||
| 1 | |||
| 10.0 | |||
|- | |||
| all | |||
| {{ll|counter}} | |||
| 4 | |||
| 20.0 | |||
|- | |||
| all | |||
| {{ll|desk}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| all | |||
| {{ll|filingcabinet}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| all | |||
| {{ll|inventoryfemale}} | |||
| 1 | |||
| 1.0 | |||
|- | |||
| all | |||
| {{ll|locker}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| all | |||
| {{ll|officedrawers}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| all | |||
| {{ll|other}} | |||
| 1 | |||
| 10.0 | |||
|- | |||
| all | |||
| {{ll|shelves}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| all | |||
| {{ll|sidetable}} | |||
| 4 | |||
| 4.0 | |||
|- | |||
| all | |||
| {{ll|sidetable}} | |||
| 1 | |||
| 2.0 | |||
|- | |||
| artstore | |||
| {{ll|counter}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| artstore | |||
| {{ll|shelves}} | |||
| 4 | |||
| 20.0 | |||
|- | |||
| artstore | |||
| {{ll|shelves}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| bedroom | |||
| {{ll|crate}} | |||
| 1 | |||
| 1.0 | |||
|- | |||
| bedroom | |||
| {{ll|desk}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| bedroom | |||
| {{ll|sidetable}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| bookstore | |||
| {{ll|counter}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| bookstore | |||
| {{ll|counter}} | |||
| 4 | |||
| 20.0 | |||
|- | |||
| classroom | |||
| {{ll|counter}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| classroom | |||
| {{ll|desk}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| classroom | |||
| {{ll|metal_shelves}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| closet | |||
| {{ll|crate}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| daycare | |||
| {{ll|counter}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| daycare | |||
| {{ll|desk}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| daycare | |||
| {{ll|metal_shelves}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| empty | |||
| {{ll|crate}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| garagestorage | |||
| {{ll|crate}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| garagestorage | |||
| {{ll|crate}} | |||
| 4 | |||
| 20.0 | |||
|- | |||
| generalstore | |||
| {{ll|shelves}} | |||
| 4 | |||
| 20.0 | |||
|- | |||
| generalstore | |||
| {{ll|shelves}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| hall | |||
| {{ll|locker}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| kitchen | |||
| {{ll|counter}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| kitchen | |||
| {{ll|shelves}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| livingroom | |||
| {{ll|shelves}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| livingroom | |||
| {{ll|sidetable}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| office | |||
| {{ll|counter}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| office | |||
| {{ll|desk}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| office | |||
| {{ll|metal_shelves}} | |||
| 4 | |||
| 20.0 | |||
|- | |||
| office | |||
| {{ll|metal_shelves}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| post | |||
| {{ll|counter}} | |||
| 4 | |||
| 10.0 | |||
|- | |||
| post | |||
| {{ll|counter}} | |||
| 4 | |||
| 20.0 | |||
|- | |||
| prisoncells | |||
| {{ll|wardrobe}} | |||
| 4 | |||
| 10.0 | |||
|} | |||
</div> | |||
<div style="float:left;"> | |||
{| class="wikitable theme-red" style="margin-right:15px; width:95%;" | |||
|+ {{ll|Vehicles}} | |||
! Vehicle Type/Location | |||
! Rolls | |||
! Chance | |||
|- | |||
| AmbulanceGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| CarpenterGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| ConstructionWorkerGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| DistilleryGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| DoctorGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| ElectricianGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| FarmerGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| FireGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| FishermanGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| FossoilGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| GloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| GolfGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| HeraldsGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| HunterGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| MassGenFacGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| McCoyGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| MetalWelderGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| PainterGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| PoliceGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| PostalGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| RadioGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| RangerGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| SpiffoGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| SurvivalistGlovebox | |||
| 4 | |||
| 10 | |||
|- | |||
| TaxiGloveBox | |||
| 4 | |||
| 10 | |||
|- | |||
| TransitGloveBox | |||
| 4 | |||
| 10 | |||
|} | |||
</div> | |||
</div><div style="clear:both;"></div> | |||
</div></div><div class="toggle large mw-customtoggle-togglebox-Pencil" title="{{int:show}}/{{int:hide}}"></div></div> | |||
<!--END BOT FLAG|Pencil|41.78.16--> | |||
==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 16:16, 24 April 2024
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.
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
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 |
---|---|---|---|---|---|
Journal x20 |
none | (consumed) |
Empty Notebook (consumed) | ||
Doodle |
none | (consumed) |
Sheet of Paper (consumed) |
Distribution
The loot distributions can be found in the table(s) below.
Building / Room | Container | Rolls | Chance |
---|---|---|---|
Not referenced | GolfLockers | 4 | 10.0 |
all | Bag_GolfBag | 1 | 10.0 |
all | Outfit_ConstructionWorker | 1 | 10.0 |
all | counter | 4 | 20.0 |
all | desk | 4 | 10.0 |
all | filingcabinet | 4 | 10.0 |
all | inventoryfemale | 1 | 1.0 |
all | locker | 4 | 10.0 |
all | officedrawers | 4 | 10.0 |
all | other | 1 | 10.0 |
all | shelves | 4 | 10.0 |
all | sidetable | 4 | 4.0 |
all | sidetable | 1 | 2.0 |
artstore | counter | 4 | 10.0 |
artstore | shelves | 4 | 20.0 |
artstore | shelves | 4 | 10.0 |
bedroom | crate | 1 | 1.0 |
bedroom | desk | 4 | 10.0 |
bedroom | sidetable | 4 | 10.0 |
bookstore | counter | 4 | 10.0 |
bookstore | counter | 4 | 20.0 |
classroom | counter | 4 | 10.0 |
classroom | desk | 4 | 10.0 |
classroom | metal_shelves | 4 | 10.0 |
closet | crate | 4 | 10.0 |
daycare | counter | 4 | 10.0 |
daycare | desk | 4 | 10.0 |
daycare | metal_shelves | 4 | 10.0 |
empty | crate | 4 | 10.0 |
garagestorage | crate | 4 | 10.0 |
garagestorage | crate | 4 | 20.0 |
generalstore | shelves | 4 | 20.0 |
generalstore | shelves | 4 | 10.0 |
hall | locker | 4 | 10.0 |
kitchen | counter | 4 | 10.0 |
kitchen | shelves | 4 | 10.0 |
livingroom | shelves | 4 | 10.0 |
livingroom | sidetable | 4 | 10.0 |
office | counter | 4 | 10.0 |
office | desk | 4 | 10.0 |
office | metal_shelves | 4 | 20.0 |
office | metal_shelves | 4 | 10.0 |
post | counter | 4 | 10.0 |
post | counter | 4 | 20.0 |
prisoncells | wardrobe | 4 | 10.0 |
Vehicle Type/Location | Rolls | Chance |
---|---|---|
AmbulanceGloveBox | 4 | 10 |
CarpenterGloveBox | 4 | 10 |
ConstructionWorkerGloveBox | 4 | 10 |
DistilleryGloveBox | 4 | 10 |
DoctorGloveBox | 4 | 10 |
ElectricianGloveBox | 4 | 10 |
FarmerGloveBox | 4 | 10 |
FireGloveBox | 4 | 10 |
FishermanGloveBox | 4 | 10 |
FossoilGloveBox | 4 | 10 |
GloveBox | 4 | 10 |
GolfGloveBox | 4 | 10 |
HeraldsGloveBox | 4 | 10 |
HunterGloveBox | 4 | 10 |
MassGenFacGloveBox | 4 | 10 |
McCoyGloveBox | 4 | 10 |
MetalWelderGloveBox | 4 | 10 |
PainterGloveBox | 4 | 10 |
PoliceGloveBox | 4 | 10 |
PostalGloveBox | 4 | 10 |
RadioGloveBox | 4 | 10 |
RangerGloveBox | 4 | 10 |
SpiffoGloveBox | 4 | 10 |
SurvivalistGlovebox | 4 | 10 |
TaxiGloveBox | 4 | 10 |
TransitGloveBox | 4 | 10 |
Code
Source: ProjectZomboid\media\scripts\items_weapons.txt
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,
}