Help:Boilerplate weapon: Difference between revisions

From PZwiki
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:
__NOTOC__
{{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: 36.40'''   </div><!-- Code for Version Tag at top -->
<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><!-- Code for Navigation Bar at top, special blank char's before '''Navigation''' to give space -->
<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.


{| class="wikitable" width="100%"
 
|-
<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 -->
|<center><small> This boilerplate is used for giving a new page a standard look. Copy the code below and add it to your new page before adding the relevant content. This boilerplate is currently in an early format and we are likely to add and change sections as time goes on. If you wish to suggest improvements to this boilerplate please use the [[Help_talk:Boilerplate_weapons|Help_talk:Boilerplate_weapons discussion page]].
{{languages|Baseball Bat}}
<br>The current code and result of the code are shown below. Anything starting with !< -- and ends with --> is removable and will not affect the template.</small></center>
{{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.
<br><br>
-->{{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
__NOTOC__
|alternate_image=BaseballBatNails.png
{{languages}}
|alternate_name=Spiked Baseball Bat
{{header|The Game World|Items|Weapons|version=Version 36|incver=40}}
|alternate_link=Spiked Baseball Bat
<!--Comment: This section is for the infobox which will be positioned on the right of the page. Image.png is the default question mark image. The information can be pulled from the items/newitems.txt file in [Zomboid Folder\media\scripts] -->
|weight=2
{{Weapons
|weight_bkg=1
|image = Baseballbat.png  
|weapon_type=Blunt
|weapontype = Melee
|equipped=Two-handed
|ammo = None
|equipped_bkg=1
|mindamage = 1
|condition_max=15
|maxdamage = 2
|min_range=0.61
|condition = 1.5
|max_range=1.5
|hands=Yes
|range_bkg=1
|degrade = 10
|min_damage=0.8
|weight = 3.0
|max_damage=1.5
|id = 7828
|class_name=Base.BaseballBat
|class_name_bkg=1
}}
}}
<!--Comment: Description of Item and General Information-->
<!--Comment: General introductory for the item-->
A description of the item. Include [[Nails|links]] (example link is to Nails article) to other pages within the wiki where appropriate. Also try to mention how many uses it has and also where it was found.  
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.


With weapons, try to mention swing speed, how many zombies it can hit (see code "maxhitcount" for amount of zombies hit), durability, range and usefulness.  
===Breaking doors===
Include how effective the weapon is at breaking down doors.


== Crafting ==
===Tree chopping===
<!--Comment: Code in crafting template which uses the item. This is rare for weapons but is used on occasion. Remove if not applicable. See RecipeLookup Template for full list-->
Can the item be used to chop down trees? If so, how much damage does it do?
{| class="wikitable sortable" style="text-align:center;"
 
|-
===Recipes===
! Output
Include here which recipes this item can be used in. Remove this section if it isn't applicable to the weapon/item.
! class="unsortable" | Ingredients
{{Crafting table header}}
! class="unsortable" | Description
{{Recipe Carpentry|2011}}
! Skill Level
{{Recipe Cooking|1001}}
{{RecipeLookup|3001}}
{{Crafting table footer}}
|}


== Materials to Repair ==
==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
! 1st Repair Materials = <br> 55% Repaired, 100% Success
! 55% Repaired, 100% Success
! <br> 20% Repaired, 95% Success
! 20% Repaired, 95% Success
! <br> 10% Repaired, 95% Success
! 10% Repaired, 95% Success
! <br> 10% Repaired, 95% Success
! 10% Repaired, 95% Success
|-
|-
|[[File:Baseball Bat.png|32px]] <br>
| [[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:MATERIALScotchTape.png|32px]]<br>
[[Adhesive Tape]] <small>(4 Uses)</small>
|-
|-
|}
|}
=== Repair Code ===
<!--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,
==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
|-
|}


      Fixer : Woodglue=2; Woodwork=2,
==Vehicles==
      Fixer : DuctTape=2,
{| class="wikitable" style="text-align:center;"
      Fixer : Glue=2,
|-
      Fixer : Scotchtape=4,
!Profession
</nowiki>
!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 RoastingPan shells.-->
<!--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.-->
<nowiki>
{{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 eg: Weapons guide, construction etc-->
<!--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}}
<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 -->
{{header|The Game World|Items|Weapons|Melee Weapons|type=Weapon|version=Version 39|incver=67.5|hidecat=true}}<!--
<div style="float: right;background: #C3E4ED;border: 1px solid #9AC0CD; margin: -30pt -10.5pt">   '''Page Updated @ Version: 36.40'''   </div><!-- Code for Version Tag at top -->
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.
<div style="float: left;background: #C3E4ED;border: 1px solid #9AC0CD; margin: -30pt -10.5pt">   '''Navigation''' - [[:Category:Main|Main Index]] -> [[:Category:The Game World|The Game World]] -> [[:Category:Items|Items]] -> [[:Category:Weapons|Weapons]] -> [[Help:Boilerplate_items|Boilerplate Items]]   </div><!-- Code for Navigation Bar at top, special blank char's before '''Navigation''' to give space -->
-->{{Infobox weapon
<!--Comment: This section is for the infobox which will be positioned on the right of the page. Image.png is the default question mark image. The information can be pulled from the items/newitems.txt file in [Zomboid Folder\media\scripts] -->
|display_name=Baseball Bat
{{Weapons
|image=Baseballbat.png
|image = Baseballbat.png  
|alternate_image=BaseballBatNails.png
|weapontype = Melee
|alternate_name=Spiked Baseball Bat
|ammo = None
|alternate_link=Spiked Baseball Bat
|mindamage = 1
|weight=2
|maxdamage = 2
|weight_bkg=1
|condition = 1.5
|weapon_type=Blunt
|hands=Yes
|equipped=Two-handed
|degrade = 10
|equipped_bkg=1
|weight = 3.0
|condition_max=15
|id = 7828
|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: Description of Item and General Information-->
<!--Comment: General introductory for the item-->
A description of the item. Include [[Nails|links]] (example link is to Nails article) to other pages within the wiki where appropriate. Also try to mention how many uses it has and also where it was found.  
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.


With weapons, try to mention swing speed, how many zombies it can hit (see code "maxhitcount" for amount of zombies hit), durability, range and usefulness.
===Tree chopping===
Can the item be used to chop down trees? If so, how much damage does it do?


== Crafting ==
===Recipes===
<!--Comment: Code in crafting template which uses the item. This is rare for weapons but is used on occasion. Remove if not applicable. See RecipeLookup Template for full list-->
Include here which recipes this item can be used in. Remove this section if it isn't applicable to the weapon/item.
{| class="wikitable sortable" style="text-align:center;"
{{Crafting table header}}
|-
{{Recipe Carpentry|2011}}
! Output
{{Recipe Cooking|1001}}
! class="unsortable" | Ingredients
{{Crafting table footer}}
! class="unsortable" | Description
! Skill Level
{{RecipeLookup|3001}}
|}


== Materials to Repair ==
==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
! 1st Repair Materials = <br> 55% Repaired, 100% Success
! 55% Repaired, 100% Success
! <br> 20% Repaired, 95% Success
! 20% Repaired, 95% Success
! <br> 10% Repaired, 95% Success
! 10% Repaired, 95% Success
! <br> 10% Repaired, 95% Success
! 10% Repaired, 95% Success
|-
|-
|[[File:Baseball Bat.png|32px]] <br>
| [[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:MATERIALScotchTape.png|32px]]<br>
[[Adhesive Tape]] <small>(4 Uses)</small>
|-
|-
|}
|}
=== Repair Code ===
<!--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,
==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
|-
|}


      Fixer : Woodglue=2; Woodwork=2,
==Vehicles==
      Fixer : DuctTape=2,
{| class="wikitable" style="text-align:center;"
      Fixer : Glue=2,
|-
      Fixer : Scotchtape=4,
!Profession
</nowiki>
!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 RoastingPan shells.-->
<!--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 eg: Weapons guide, construction etc-->
<!--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 code example = {{Navbox/Construction}}, (see all current navboxs via the template section)-->
* [[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 36]]
[[Category:Help]]
[[Category:Version 39]]

Revision as of 15:18, 21 June 2018

   Page Updated @ Version: 39.67.5   
   Navigation - Main Index -> Community -> Templates -> Boilerplates -> Boilerplate Weapons   
This boilerplate is a page template for weapons. Simply copy the code below and paste it into your new page, filling in the gaps and replacing with relevant information.


<!--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:



The Game WorldItemsWeaponsMelee WeaponsBoilerplate weapon
Baseball Bat
Baseball Bat
Spiked Baseball Bat
General
Category Weapon
Encumbrance
Heavy Load
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
BaseballBat.png
Baseball Bat
Woodglue.png
Wood Glue (2 Uses)
(Requires Carpentry Level 2)
DuctTape.png
Duct Tape (2 Uses)
Glue.png
Glue (2 Uses)
Scotchtape.png
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,

See Also

Template:Navbox/Weapons