Help:Boilerplate weapon: Difference between revisions
m (Changed protection level for "Help:Boilerplate weapon" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only administrators] (indefinite))) |
(New weapon boilerplate. CHANGES: Added TOC, usage, condition, item distribution sections. Removed/moved materials to repair, crafting. Changed header/background colour.) |
||
Line 1: | Line 1: | ||
{{languages}} | {{languages}} | ||
<div class="header" style="margin: 5px; align: right; background: #C3E4ED; padding: 13px; text-align: left; font-size: 100%; color:#000000; border: 1px solid #9AC0CD"> <!-- Code for Background Colour --> | <div class="header" style="margin: 5px; align: right; background: #C3E4ED; padding: 13px; text-align: left; font-size: 100%; color:#000000; border: 1px solid #9AC0CD"> <!-- Code for Background Colour --> | ||
<div style="float: right;background: #C3E4ED;border: 1px solid #9AC0CD; margin: -30pt -10.5pt"> '''Page Updated @ Version: | <div style="float: right;background: #C3E4ED;border: 1px solid #9AC0CD; margin: -30pt -10.5pt"> '''Page Updated @ Version: 39.67.5''' </div><!-- Code for Version Tag at top --> | ||
<div style="float: left;background: #C3E4ED;border: 1px solid #9AC0CD; margin: -30pt -10.5pt"> '''Navigation''' - [[:Category:Main|Main Index]] -> [[:Category:Community|Community]] -> [[:Category:Templates|Templates]] -> [[:Category:Boilerplates|Boilerplates]] -> [[Help:Boilerplate_weapons|Boilerplate Weapons]] </div> | <div style="float: left;background: #C3E4ED;border: 1px solid #9AC0CD; margin: -30pt -10.5pt"> '''Navigation''' - [[:Category:Main|Main Index]] -> [[:Category:Community|Community]] -> [[:Category:Templates|Templates]] -> [[:Category:Boilerplates|Boilerplates]] -> [[Help:Boilerplate_weapons|Boilerplate Weapons]] </div>This boilerplate is a page template for [[:Category:Weapons|weapons]]. Simply copy the code below and paste it into your new page, filling in the gaps and replacing with relevant information. | ||
<pre><!--Comment: This section is for the language and the format of the page. The languages section is used for linking pages. So a example might be {{languages|Nails}} in which every page is connected with a /## on the end will link to that specific page. Eg: Nails/es Nails/fr even if there contain redirects. The header format can be seen in the header template with working explanation. The header connects categories and Version no. PLEASE ENTER THE VERSION AND INCREMENT No. WHEN YOU MAKE A PAGE. It helps everyone else know how old the page is versionwise --> | |||
{{languages|Baseball Bat}} | |||
{{header|The Game World|Items|Weapons|Melee Weapons|type=Weapon|version=Version 39|incver=67.5}}<!-- | |||
Comment: This section is for the infobox which will be positioned on the right of the page. The information can be pulled from the items/newitems.txt file in [Zomboid Folder\media\scripts]. For more info on how to use the infobox, see: https://pzwiki.net/wiki/Template:Infobox_weapon. | |||
-->{{Infobox weapon | |||
<pre> | |display_name=Baseball Bat | ||
<!--Comment: This section is for the language and the format of the page. The languages section is used for linking pages. So a example might be {{languages|Nails}} in which every page is connected with a /## on the end will link to that specific page. Eg: Nails/es Nails/fr even if there contain redirects. The header format can be seen in the header template with working explanation. The header connects categories and Version no. PLEASE ENTER THE VERSION AND INCREMENT No. WHEN YOU MAKE A PAGE. It helps everyone else know how old the page is versionwise --> | |image=Baseballbat.png | ||
|alternate_image=BaseballBatNails.png | |||
{{languages}} | |alternate_name=Spiked Baseball Bat | ||
{{header|The Game World|Items|Weapons|version=Version | |alternate_link=Spiked Baseball Bat | ||
<!--Comment: This section is for the infobox which will be positioned on the right of the page | |weight=2 | ||
{{ | |weight_bkg=1 | ||
|image = Baseballbat.png | |weapon_type=Blunt | ||
| | |equipped=Two-handed | ||
| | |equipped_bkg=1 | ||
| | |condition_max=15 | ||
| | |min_range=0.61 | ||
| | |max_range=1.5 | ||
| | |range_bkg=1 | ||
| | |min_damage=0.8 | ||
| | |max_damage=1.5 | ||
| | |class_name=Base.BaseballBat | ||
|class_name_bkg=1 | |||
}} | }} | ||
<!--Comment: | <!--Comment: General introductory for the item--> | ||
An introduction to the item. Include [[Nails|links]] (example link is to Nails article) to other pages within the wiki where appropriate. | |||
__TOC__ | |||
<!--Comment: This is where the 'Table Of Contents' will go if it is needed--> | |||
==Usage== | |||
<!--Comment: This section contains how the item can be used, weather it be as a weapon, tool or in recipes. --> | |||
===Weapon=== | |||
This subsection is about the item's usage as a weapon. You may want to include how many enemies can be hit with a single strike, damage, range and effectiveness. | |||
===Breaking doors=== | |||
Include how effective the weapon is at breaking down doors. | |||
== | ===Tree chopping=== | ||
Can the item be used to chop down trees? If so, how much damage does it do? | |||
{ | |||
| | ===Recipes=== | ||
Include here which recipes this item can be used in. Remove this section if it isn't applicable to the weapon/item. | |||
{{Crafting table header}} | |||
{{Recipe Carpentry|2011}} | |||
{{Recipe Cooking|1001}} | |||
{{ | {{Crafting table footer}} | ||
== | ==Condition== | ||
<!--Comment: This section contains all the info about the condition of the weapon. --> | |||
What weapon skill does this weapon apply to? Is it [[Skills#Blunt|blunt]], [[Skills#Blade|blade]] or [[Skills#Firearm|firearm]]? The maintenance skill relates to how often the weapon will take damage from being used. The following equation should be used replacing <ConditionLowerChanceOneIn> with the value for the given item: <code>1 in (<ConditionLowerChanceOneIn> + maintenance x 2)</code> | |||
===Repairing=== | |||
<!--Comment: This uses the code found in the repair file [Zomboid Folder\media\scripts\fixing.txt] which defines what it costs to repair the weapon. The table below is a graphical representation of what is required to repair. --> | <!--Comment: This uses the code found in the repair file [Zomboid Folder\media\scripts\fixing.txt] which defines what it costs to repair the weapon. The table below is a graphical representation of what is required to repair. --> | ||
Materials that can be used to repair the baseball bat, based on first time repairing. | |||
{| class="wikitable" style="text-align:center;" | {| class="wikitable" style="text-align:center;" | ||
|- | |- | ||
! Item Repaired | ! Item Repaired | ||
! | ! 55% Repaired, 100% Success | ||
! | ! 20% Repaired, 95% Success | ||
! | ! 10% Repaired, 95% Success | ||
! | ! 10% Repaired, 95% Success | ||
|- | |- | ||
|[[File: | | [[File:BaseballBat.png|32px]] <br> [[Baseball Bat]] | ||
[[Baseball Bat]] | | [[File:Woodglue.png|32px]]<br>[[Wood Glue]] <small>(2 Uses)</small><br><small>(Requires Carpentry Level 2)</small> | ||
| [[File:Woodglue.png|32px]]<br> | | [[File:DuctTape.png|32px]]<br>[[Duct Tape]] <small>(2 Uses)</small> | ||
[[Wood Glue]] <small>(2 Uses)</small><br> | | [[File:Glue.png|32px]]<br>[[Glue]] <small>(2 Uses)</small> | ||
<small>(Requires Carpentry Level 2)</small> | | [[File:Scotchtape.png|32px]]<br>[[Adhesive Tape]] <small>(4 Uses)</small> | ||
| [[File:DuctTape.png|32px]]<br> | |||
[[Duct Tape]] <small>(2 Uses)</small> | |||
| [[File:Glue.png|32px]]<br> | |||
[[Glue]] <small>(2 Uses)</small> | |||
| [[File: | |||
[[Adhesive Tape]] <small>(4 Uses)</small> | |||
|- | |- | ||
|} | |} | ||
==Item Distribution== | |||
<!--Comment: The locations this item can be found she be placed here. Precise values that can be put into tables can be found in the distribution.lua and vehicledistribution.lua files. --> | |||
===Buildings=== | |||
{| class="wikitable" style="text-align:center;" | |||
|- | |||
!Building/Room | |||
!Container | |||
!Rolls | |||
!Chance | |||
|- | |||
|Fossoil | |||
|[[Containers#Counters|Counter]] | |||
|4 | |||
|5 | |||
|- | |||
|Grocery Store | |||
|[[Containers#Counters|Counter]] | |||
|4 | |||
|5 | |||
|- | |||
|Storage Unit | |||
|[[Containers|All]] | |||
|3 | |||
|5 | |||
|- | |||
|Zippee Store | |||
|[[Containers#Counters|Counter]] | |||
|1 | |||
|5 | |||
|- | |||
|} | |||
==Vehicles== | |||
{| class="wikitable" style="text-align:center;" | |||
|- | |||
!Profession | |||
!Container | |||
!Rolls | |||
!Chance | |||
|- | |||
|Golf | |||
|[[Trunk]] | |||
|2 | |||
|3 | |||
|- | |||
|Police | |||
|[[Trunk]] | |||
|4 | |||
|1 | |||
|- | |||
|Taxi | |||
|[[Trunk]] | |||
|3 | |||
|2 | |||
|- | |||
|} | |||
== Code == | ==Code== | ||
<!--Comment: all the code related to the item found in txt files should be placed here--> | |||
===Item=== | |||
<!--Comment: Current location of Code in directory for updating purposes. Example below shows how to lay it out. ''''' is for bold italic.--> | <!--Comment: Current location of Code in directory for updating purposes. Example below shows how to lay it out. ''''' is for bold italic.--> | ||
'''''From items.txt (Project Zomboid directory/media/scripts/)''''' | '''''From items.txt (Project Zomboid directory/media/scripts/)''''' | ||
<!--Comment: Example code taken from file. Items.txt and Newitems.txt are usually the source of the information at this time for basic items. Nowiki is used to display the text only, example used is | <!--Comment: Add the retrieved template so both visitors and editors can tell how old the code is and whether or not it may need to be updated.--> | ||
{{Retrieved|version=39|incver=67.5}} | |||
<!--Comment: Example code taken from file. Items.txt and Newitems.txt are usually the source of the information at this time for basic items. Nowiki is used to display the text only, example used is BaseballBat.--> | |||
<nowiki> | <nowiki> | ||
item BaseballBat | item BaseballBat | ||
Line 120: | Line 174: | ||
TwoHandWeapon = TRUE, | TwoHandWeapon = TRUE, | ||
BreakSound = PZ_WoodSnap, | BreakSound = PZ_WoodSnap, | ||
TreeDamage = 1, | TreeDamage = 1,</nowiki> | ||
</nowiki> | |||
</nowiki> | ===Repair=== | ||
<!--Comment: Current location of Code in directory for updating purposes. Example below shows how to lay it out. ''''' is for bold italic.--> | |||
'''''From fixing.txt (Project Zomboid directory/media/scripts/)''''' | |||
<!--Comment: Add the retrieved template so both visitors and editors can tell how old the code is and whether or not it may need to be updated.--> | |||
{{Retrieved|version=39|incver=67.5}} | |||
<!--Comment: This is the code found in the repair file [Zomboid Folder\media\scripts\fixing.txt] which defines what it costs to repair the weapon. --> | |||
<nowiki> | |||
fixing Fix Baseball Bat | |||
Require : BaseballBat, | |||
Fixer : Woodglue=2; Woodwork=2, | |||
Fixer : DuctTape=2, | |||
Fixer : Glue=2, | |||
Fixer : Scotchtape=4,</nowiki> | |||
==See Also== | ==See Also== | ||
<!--Comment: Location of links to relevant guides | <!--Comment: Location of links to relevant guides or other pages that may not have been mentioned on this page but still relate to the item in some way. --> | ||
* [[Carpentry Guide]] | |||
<!--Comment: Navbox placement here code example = {{Navbox/Construction}}, (see all current navboxs via the template section)--> | <!--Comment: Navbox placement here code example = {{Navbox/Construction}}, (see all current navboxs via the template section)--> | ||
{{Navbox/Weapons}} | {{Navbox/Weapons}}</pre></div> | ||
</pre> | |||
</div> | |||
Line 141: | Line 206: | ||
<!--Comment: This section is for the language and the format of the page. The languages section is used for linking pages. So a example might be {{languages|Nails}} in which every page is connected with a /## on the end will link to that specific page. Eg: Nails/es Nails/fr even if there contain redirects. The header format can be seen in the header template with working explanation. The header connects categories and Version no. PLEASE ENTER THE VERSION AND INCREMENT No. WHEN YOU MAKE A PAGE. It helps everyone else know how old the page is versionwise --> | <!--Comment: This section is for the language and the format of the page. The languages section is used for linking pages. So a example might be {{languages|Nails}} in which every page is connected with a /## on the end will link to that specific page. Eg: Nails/es Nails/fr even if there contain redirects. The header format can be seen in the header template with working explanation. The header connects categories and Version no. PLEASE ENTER THE VERSION AND INCREMENT No. WHEN YOU MAKE A PAGE. It helps everyone else know how old the page is versionwise --> | ||
{{languages}} | {{languages}} | ||
{{header|The Game World|Items|Weapons|Melee Weapons|type=Weapon|version=Version 39|incver=67.5|hidecat=true}}<!-- | |||
Comment: This section is for the infobox which will be positioned on the right of the page. The information can be pulled from the items/newitems.txt file in [Zomboid Folder\media\scripts]. For more info on how to use the infobox, see: https://pzwiki.net/wiki/Template:Infobox_weapon. | |||
-->{{Infobox weapon | |||
|display_name=Baseball Bat | |||
{{ | |image=Baseballbat.png | ||
|image = Baseballbat.png | |alternate_image=BaseballBatNails.png | ||
| | |alternate_name=Spiked Baseball Bat | ||
| | |alternate_link=Spiked Baseball Bat | ||
| | |weight=2 | ||
| | |weight_bkg=1 | ||
| | |weapon_type=Blunt | ||
| | |equipped=Two-handed | ||
| | |equipped_bkg=1 | ||
| | |condition_max=15 | ||
| | |min_range=0.61 | ||
|max_range=1.5 | |||
|range_bkg=1 | |||
|min_damage=0.8 | |||
|max_damage=1.5 | |||
|class_name=Base.BaseballBat | |||
|class_name_bkg=1 | |||
}} | }} | ||
<!--Comment: | <!--Comment: General introductory for the item--> | ||
An introduction to the item. Include [[Nails|links]] (example link is to Nails article) to other pages within the wiki where appropriate. | |||
__TOC__ | |||
<!--Comment: This is where the 'Table Of Contents' will go if it is needed--> | |||
==Usage== | |||
<!--Comment: This section contains how the item can be used, weather it be as a weapon, tool or in recipes. --> | |||
===Weapon=== | |||
This subsection is about the item's usage as a weapon. You may want to include how many enemies can be hit with a single strike, damage, range and effectiveness. | |||
===Breaking doors=== | |||
Include how effective the weapon is at breaking down doors. | |||
===Tree chopping=== | |||
Can the item be used to chop down trees? If so, how much damage does it do? | |||
== | ===Recipes=== | ||
Include here which recipes this item can be used in. Remove this section if it isn't applicable to the weapon/item. | |||
{ | {{Crafting table header}} | ||
| | {{Recipe Carpentry|2011}} | ||
{{Recipe Cooking|1001}} | |||
{{Crafting table footer}} | |||
{{ | |||
== | ==Condition== | ||
<!--Comment: This section contains all the info about the condition of the weapon. --> | |||
What weapon skill does this weapon apply to? Is it [[Skills#Blunt|blunt]], [[Skills#Blade|blade]] or [[Skills#Firearm|firearm]]? The maintenance skill relates to how often the weapon will take damage from being used. The following equation should be used replacing <ConditionLowerChanceOneIn> with the value for the given item: <code>1 in (<ConditionLowerChanceOneIn> + maintenance x 2)</code> | |||
===Repairing=== | |||
<!--Comment: This uses the code found in the repair file [Zomboid Folder\media\scripts\fixing.txt] which defines what it costs to repair the weapon. The table below is a graphical representation of what is required to repair. --> | <!--Comment: This uses the code found in the repair file [Zomboid Folder\media\scripts\fixing.txt] which defines what it costs to repair the weapon. The table below is a graphical representation of what is required to repair. --> | ||
Materials that can be used to repair the baseball bat, based on first time repairing. | |||
{| class="wikitable" style="text-align:center;" | {| class="wikitable" style="text-align:center;" | ||
|- | |- | ||
! Item Repaired | ! Item Repaired | ||
! | ! 55% Repaired, 100% Success | ||
! | ! 20% Repaired, 95% Success | ||
! | ! 10% Repaired, 95% Success | ||
! | ! 10% Repaired, 95% Success | ||
|- | |- | ||
|[[File: | | [[File:BaseballBat.png|32px]] <br> [[Baseball Bat]] | ||
[[Baseball Bat]] | | [[File:Woodglue.png|32px]]<br>[[Wood Glue]] <small>(2 Uses)</small><br><small>(Requires Carpentry Level 2)</small> | ||
| [[File:Woodglue.png|32px]]<br> | | [[File:DuctTape.png|32px]]<br>[[Duct Tape]] <small>(2 Uses)</small> | ||
[[Wood Glue]] <small>(2 Uses)</small><br> | | [[File:Glue.png|32px]]<br>[[Glue]] <small>(2 Uses)</small> | ||
<small>(Requires Carpentry Level 2)</small> | | [[File:Scotchtape.png|32px]]<br>[[Adhesive Tape]] <small>(4 Uses)</small> | ||
| [[File:DuctTape.png|32px]]<br> | |||
[[Duct Tape]] <small>(2 Uses)</small> | |||
| [[File:Glue.png|32px]]<br> | |||
[[Glue]] <small>(2 Uses)</small> | |||
| [[File: | |||
[[Adhesive Tape]] <small>(4 Uses)</small> | |||
|- | |- | ||
|} | |} | ||
==Item Distribution== | |||
<!--Comment: The locations this item can be found she be placed here. Precise values that can be put into tables can be found in the distribution.lua and vehicledistribution.lua files. --> | |||
===Buildings=== | |||
{| class="wikitable" style="text-align:center;" | |||
|- | |||
!Building/Room | |||
!Container | |||
!Rolls | |||
!Chance | |||
|- | |||
|Fossoil | |||
|[[Containers#Counters|Counter]] | |||
|4 | |||
|5 | |||
|- | |||
|Grocery Store | |||
|[[Containers#Counters|Counter]] | |||
|4 | |||
|5 | |||
|- | |||
|Storage Unit | |||
|[[Containers|All]] | |||
|3 | |||
|5 | |||
|- | |||
|Zippee Store | |||
|[[Containers#Counters|Counter]] | |||
|1 | |||
|5 | |||
|- | |||
|} | |||
==Vehicles== | |||
{| class="wikitable" style="text-align:center;" | |||
|- | |||
!Profession | |||
!Container | |||
!Rolls | |||
!Chance | |||
|- | |||
|Golf | |||
|[[Trunk]] | |||
|2 | |||
|3 | |||
|- | |||
|Police | |||
|[[Trunk]] | |||
|4 | |||
|1 | |||
|- | |||
|Taxi | |||
|[[Trunk]] | |||
|3 | |||
|2 | |||
|- | |||
|} | |||
== Code == | ==Code== | ||
<!--Comment: all the code related to the item found in txt files should be placed here--> | |||
===Item=== | |||
<!--Comment: Current location of Code in directory for updating purposes. Example below shows how to lay it out. ''''' is for bold italic.--> | <!--Comment: Current location of Code in directory for updating purposes. Example below shows how to lay it out. ''''' is for bold italic.--> | ||
'''''From items.txt (Project Zomboid directory/media/scripts/)''''' | '''''From items.txt (Project Zomboid directory/media/scripts/)''''' | ||
<!--Comment: Example code taken from file. Items.txt and Newitems.txt are usually the source of the information at this time for basic items. Nowiki is used to display the text only, example used is | <!--Comment: Add the retrieved template so both visitors and editors can tell how old the code is and whether or not it may need to be updated.--> | ||
{{Retrieved|version=39|incver=67.5}} | |||
<!--Comment: Example code taken from file. Items.txt and Newitems.txt are usually the source of the information at this time for basic items. Nowiki is used to display the text only, example used is BaseballBat.--> | |||
<nowiki> | <nowiki> | ||
item BaseballBat | item BaseballBat | ||
Line 248: | Line 373: | ||
TwoHandWeapon = TRUE, | TwoHandWeapon = TRUE, | ||
BreakSound = PZ_WoodSnap, | BreakSound = PZ_WoodSnap, | ||
TreeDamage = 1, | TreeDamage = 1,</nowiki> | ||
</nowiki> | |||
===Repair=== | |||
<!--Comment: Current location of Code in directory for updating purposes. Example below shows how to lay it out. ''''' is for bold italic.--> | |||
'''''From fixing.txt (Project Zomboid directory/media/scripts/)''''' | |||
<!--Comment: Add the retrieved template so both visitors and editors can tell how old the code is and whether or not it may need to be updated.--> | |||
{{Retrieved|version=39|incver=67.5}} | |||
<!--Comment: This is the code found in the repair file [Zomboid Folder\media\scripts\fixing.txt] which defines what it costs to repair the weapon. --> | |||
<nowiki> | |||
fixing Fix Baseball Bat | |||
Require : BaseballBat, | |||
Fixer : Woodglue=2; Woodwork=2, | |||
Fixer : DuctTape=2, | |||
Fixer : Glue=2, | |||
Fixer : Scotchtape=4,</nowiki> | |||
==See Also== | ==See Also== | ||
<!--Comment: Location of links to relevant guides | <!--Comment: Location of links to relevant guides or other pages that may not have been mentioned on this page but still relate to the item in some way. --> | ||
<!--Comment: Navbox placement here | * [[Carpentry Guide]] | ||
<!--Comment: Navbox placement goes here. Code example = {{Navbox/Weapons}}, (see all current navboxs via the template section)--> | |||
{{Navbox/Weapons}} | {{Navbox/Weapons}} | ||
</div> | |||
[[Category:Boilerplates]] | [[Category:Boilerplates]] | ||
[[Category:Community]] | [[Category:Community]] | ||
[[Category:Templates]] | [[Category:Templates]] | ||
[[Category:Version | [[Category:Help]] | ||
[[Category:Version 39]] |
Revision as of 15:18, 21 June 2018
<!--Comment: This section is for the language and the format of the page. The languages section is used for linking pages. So a example might be {{languages|Nails}} in which every page is connected with a /## on the end will link to that specific page. Eg: Nails/es Nails/fr even if there contain redirects. The header format can be seen in the header template with working explanation. The header connects categories and Version no. PLEASE ENTER THE VERSION AND INCREMENT No. WHEN YOU MAKE A PAGE. It helps everyone else know how old the page is versionwise --> {{languages|Baseball Bat}} {{header|The Game World|Items|Weapons|Melee Weapons|type=Weapon|version=Version 39|incver=67.5}}<!-- Comment: This section is for the infobox which will be positioned on the right of the page. The information can be pulled from the items/newitems.txt file in [Zomboid Folder\media\scripts]. For more info on how to use the infobox, see: https://pzwiki.net/wiki/Template:Infobox_weapon. -->{{Infobox weapon |display_name=Baseball Bat |image=Baseballbat.png |alternate_image=BaseballBatNails.png |alternate_name=Spiked Baseball Bat |alternate_link=Spiked Baseball Bat |weight=2 |weight_bkg=1 |weapon_type=Blunt |equipped=Two-handed |equipped_bkg=1 |condition_max=15 |min_range=0.61 |max_range=1.5 |range_bkg=1 |min_damage=0.8 |max_damage=1.5 |class_name=Base.BaseballBat |class_name_bkg=1 }} <!--Comment: General introductory for the item--> An introduction to the item. Include [[Nails|links]] (example link is to Nails article) to other pages within the wiki where appropriate. __TOC__ <!--Comment: This is where the 'Table Of Contents' will go if it is needed--> ==Usage== <!--Comment: This section contains how the item can be used, weather it be as a weapon, tool or in recipes. --> ===Weapon=== This subsection is about the item's usage as a weapon. You may want to include how many enemies can be hit with a single strike, damage, range and effectiveness. ===Breaking doors=== Include how effective the weapon is at breaking down doors. ===Tree chopping=== Can the item be used to chop down trees? If so, how much damage does it do? ===Recipes=== Include here which recipes this item can be used in. Remove this section if it isn't applicable to the weapon/item. {{Crafting table header}} {{Recipe Carpentry|2011}} {{Recipe Cooking|1001}} {{Crafting table footer}} ==Condition== <!--Comment: This section contains all the info about the condition of the weapon. --> What weapon skill does this weapon apply to? Is it [[Skills#Blunt|blunt]], [[Skills#Blade|blade]] or [[Skills#Firearm|firearm]]? The maintenance skill relates to how often the weapon will take damage from being used. The following equation should be used replacing <ConditionLowerChanceOneIn> with the value for the given item: <code>1 in (<ConditionLowerChanceOneIn> + maintenance x 2)</code> ===Repairing=== <!--Comment: This uses the code found in the repair file [Zomboid Folder\media\scripts\fixing.txt] which defines what it costs to repair the weapon. The table below is a graphical representation of what is required to repair. --> Materials that can be used to repair the baseball bat, based on first time repairing. {| class="wikitable" style="text-align:center;" |- ! Item Repaired ! 55% Repaired, 100% Success ! 20% Repaired, 95% Success ! 10% Repaired, 95% Success ! 10% Repaired, 95% Success |- | [[File:BaseballBat.png|32px]] <br> [[Baseball Bat]] | [[File:Woodglue.png|32px]]<br>[[Wood Glue]] <small>(2 Uses)</small><br><small>(Requires Carpentry Level 2)</small> | [[File:DuctTape.png|32px]]<br>[[Duct Tape]] <small>(2 Uses)</small> | [[File:Glue.png|32px]]<br>[[Glue]] <small>(2 Uses)</small> | [[File:Scotchtape.png|32px]]<br>[[Adhesive Tape]] <small>(4 Uses)</small> |- |} ==Item Distribution== <!--Comment: The locations this item can be found she be placed here. Precise values that can be put into tables can be found in the distribution.lua and vehicledistribution.lua files. --> ===Buildings=== {| class="wikitable" style="text-align:center;" |- !Building/Room !Container !Rolls !Chance |- |Fossoil |[[Containers#Counters|Counter]] |4 |5 |- |Grocery Store |[[Containers#Counters|Counter]] |4 |5 |- |Storage Unit |[[Containers|All]] |3 |5 |- |Zippee Store |[[Containers#Counters|Counter]] |1 |5 |- |} ==Vehicles== {| class="wikitable" style="text-align:center;" |- !Profession !Container !Rolls !Chance |- |Golf |[[Trunk]] |2 |3 |- |Police |[[Trunk]] |4 |1 |- |Taxi |[[Trunk]] |3 |2 |- |} ==Code== <!--Comment: all the code related to the item found in txt files should be placed here--> ===Item=== <!--Comment: Current location of Code in directory for updating purposes. Example below shows how to lay it out. ''''' is for bold italic.--> '''''From items.txt (Project Zomboid directory/media/scripts/)''''' <!--Comment: Add the retrieved template so both visitors and editors can tell how old the code is and whether or not it may need to be updated.--> {{Retrieved|version=39|incver=67.5}} <!--Comment: Example code taken from file. Items.txt and Newitems.txt are usually the source of the information at this time for basic items. Nowiki is used to display the text only, example used is BaseballBat.--> item BaseballBat MaxRange = 1.5, WeaponSprite = Baseballbat, MinAngle = 0.2, Type = Weapon, MinimumSwingTime = 3, KnockBackOnNoDeath = TRUE, SwingAmountBeforeImpact = 0.02, Categories = Blunt, ConditionLowerChanceOneIn = 20, Weight = 2, SplatN.umber = 1, PushBackMod = 0.5, MaxDamage = 1.2, SubCategory = Swinging, ConditionMax = 15, MaxHitCount = 2, DoorDamage = 7, IdleAnim = Idle_Weapon2, SwingAnim = Bat, CriticalChance = 10, WeaponWeight = 2, DisplayName = Baseball Bat, MinRange = 0.61, SwingTime = 3, HitAngleMod = -30, MinDamage = 0.8, KnockdownMod = 2, SplatBloodOnNoDeath = FALSE, Icon = BaseballBat, RunAnim = Run_Weapon2, TwoHandWeapon = TRUE, BreakSound = PZ_WoodSnap, TreeDamage = 1, ===Repair=== <!--Comment: Current location of Code in directory for updating purposes. Example below shows how to lay it out. ''''' is for bold italic.--> '''''From fixing.txt (Project Zomboid directory/media/scripts/)''''' <!--Comment: Add the retrieved template so both visitors and editors can tell how old the code is and whether or not it may need to be updated.--> {{Retrieved|version=39|incver=67.5}} <!--Comment: This is the code found in the repair file [Zomboid Folder\media\scripts\fixing.txt] which defines what it costs to repair the weapon. --> fixing Fix Baseball Bat Require : BaseballBat, Fixer : Woodglue=2; Woodwork=2, Fixer : DuctTape=2, Fixer : Glue=2, Fixer : Scotchtape=4, ==See Also== <!--Comment: Location of links to relevant guides or other pages that may not have been mentioned on this page but still relate to the item in some way. --> * [[Carpentry Guide]] <!--Comment: Navbox placement here code example = {{Navbox/Construction}}, (see all current navboxs via the template section)--> {{Navbox/Weapons}}
This code would produce the following:
Baseball Bat | ||
---|---|---|
Baseball Bat | ||
| ||
General | ||
Category | Weapon | |
Encumbrance | 2 | |
Equipped | Two-handed | |
Condition max. | 15 | |
Damage | ||
Range | 0.61–1.5 tiles | |
Damage | 0.8–1.5 | |
Technical details | ||
Base ID | Base.BaseballBat | |
An introduction to the item. Include links (example link is to Nails article) to other pages within the wiki where appropriate.
Usage
Weapon
This subsection is about the item's usage as a weapon. You may want to include how many enemies can be hit with a single strike, damage, range and effectiveness.
Breaking doors
Include how effective the weapon is at breaking down doors.
Tree chopping
Can the item be used to chop down trees? If so, how much damage does it do?
Recipes
Include here which recipes this item can be used in. Remove this section if it isn't applicable to the weapon/item. Template:Crafting table header Template:Recipe Carpentry Template:Recipe Cooking Template:Crafting table footer
Condition
What weapon skill does this weapon apply to? Is it blunt, blade or firearm? The maintenance skill relates to how often the weapon will take damage from being used. The following equation should be used replacing <ConditionLowerChanceOneIn> with the value for the given item: 1 in (<ConditionLowerChanceOneIn> + maintenance x 2)
Repairing
Materials that can be used to repair the baseball bat, based on first time repairing.
Item Repaired | 55% Repaired, 100% Success | 20% Repaired, 95% Success | 10% Repaired, 95% Success | 10% Repaired, 95% Success |
---|---|---|---|---|
Baseball Bat |
Wood Glue (2 Uses) (Requires Carpentry Level 2) |
Duct Tape (2 Uses) |
Glue (2 Uses) |
Adhesive Tape (4 Uses) |
Item Distribution
Buildings
Building/Room | Container | Rolls | Chance |
---|---|---|---|
Fossoil | Counter | 4 | 5 |
Grocery Store | Counter | 4 | 5 |
Storage Unit | All | 3 | 5 |
Zippee Store | Counter | 1 | 5 |
Vehicles
Profession | Container | Rolls | Chance |
---|---|---|---|
Golf | Trunk | 2 | 3 |
Police | Trunk | 4 | 1 |
Taxi | Trunk | 3 | 2 |
Code
Item
From items.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 39.67.5
item BaseballBat MaxRange = 1.5, WeaponSprite = Baseballbat, MinAngle = 0.2, Type = Weapon, MinimumSwingTime = 3, KnockBackOnNoDeath = TRUE, SwingAmountBeforeImpact = 0.02, Categories = Blunt, ConditionLowerChanceOneIn = 20, Weight = 2, SplatN.umber = 1, PushBackMod = 0.5, MaxDamage = 1.2, SubCategory = Swinging, ConditionMax = 15, MaxHitCount = 2, DoorDamage = 7, IdleAnim = Idle_Weapon2, SwingAnim = Bat, CriticalChance = 10, WeaponWeight = 2, DisplayName = Baseball Bat, MinRange = 0.61, SwingTime = 3, HitAngleMod = -30, MinDamage = 0.8, KnockdownMod = 2, SplatBloodOnNoDeath = FALSE, Icon = BaseballBat, RunAnim = Run_Weapon2, TwoHandWeapon = TRUE, BreakSound = PZ_WoodSnap, TreeDamage = 1,
Repair
From fixing.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 39.67.5
fixing Fix Baseball Bat Require : BaseballBat, Fixer : Woodglue=2; Woodwork=2, Fixer : DuctTape=2, Fixer : Glue=2, Fixer : Scotchtape=4,