Modding: Difference between revisions

From PZwiki
Line 24: Line 24:
|-
|-
|Type
|Type
|Item-type, describes how the item behaves.
|Item-type, describes how the item behaves. Includes 'Food', 'Weapon', 'Drainable', 'Literature', 'Clothing' and 'Normal'.
|Food
|Food ([[steak]])
|-
|-
|Display Name
|Display Name
|The item's name as it appears displayed to the player.
|The item's name as it appears displayed to the player.
|Axe
|Axe ([[axe]])
|-
|-
|Icon
|Icon
|The item's icon as it appears displayed to the player. This parameter looks inside "media/texturepacks/ui.txt" and will call any sprite with the prefix "Item_".
|The item's icon as it appears displayed to the player. This parameter looks inside "media/texturepacks/ui.txt" and will call any sprite with the prefix "Item_".
|IckySticks
|Molotov ([[molotov cocktail]])
|-
|-
|Weight
|Weight
|Item's weight, used for encumbrance.
|Item's weight, used for encumbrance.
|0.1
|0.1 ([[painkillers]])
|-
|-
!colspan=3|Consumables
!colspan=3|Consumables
Line 47: Line 47:
|MinutesToCook
|MinutesToCook
|How many in-game minutes the item must be in an oven for it to cook.
|How many in-game minutes the item must be in an oven for it to cook.
|5
|50 ([[pot of soup]])
|-
|-
|MinutesToBurn
|MinutesToBurn
|Length of time the item must be in an oven for it to be burnt. Usually double the value of 'MinutesToCook'.
|Length of time the item must be in an oven for it to be burnt. Usually double the value of 'MinutesToCook'.
|10
|150 ([[steak]])
|-
|-
|HungerChange
|HungerChange
|Value applied to player's current hunger points. Positive increases hunger.
|Value applied to player's current hunger points. Positive increases hunger.
|<nowiki>-</nowiki>30
|<nowiki>-</nowiki>20 ([[crisps]])
|-
|-
|DaysFresh
|DaysFresh
|How many days it takes for a food item to begin rotting.
|How many days it takes for a food item to begin rotting.
|5
|2 ([[steak]])
|-
|-
|DaysTotallyRotten
|DaysTotallyRotten
|How many days it takes for a food item to become entirely rotten.
|How many days it takes for a food item to become entirely rotten.
|12
|7 ([[carrots]])
|-
|-
|DangerousUncooked
|DangerousUncooked
Line 71: Line 71:
|RequireInHandOrInventory
|RequireInHandOrInventory
|Requires a specified item to be inside the player's inventory before the item may be used.
|Requires a specified item to be inside the player's inventory before the item may be used.
|CanOpener
|CanOpener ([[canned soup]])
|-
|-
|Alcoholic
|Alcoholic
Line 83: Line 83:
|OtherHandRequire
|OtherHandRequire
|Requires a specified item to be held by the player in their second quick-slot before the item may be used.
|Requires a specified item to be held by the player in their second quick-slot before the item may be used.
|Lighter
|Lighter ([[molotov cocktail]])
|-
|-
!colspan=3|Weapons
!colspan=3|Weapons
Line 89: Line 89:
|MinDamage
|MinDamage
|Minimum damage the weapon will inflict.
|Minimum damage the weapon will inflict.
|1
|0.7 ([[baseball bat]])
|-
|-
|MaxDamage
|MaxDamage
|Maximum damage the weapon may ever inflict.
|Maximum damage the weapon may ever inflict.
|100
|1.0 ([[baseball bat]])
|-
|-
|MaxRange
|MaxRange
|Maximum range the weapon is effective.
|Maximum range the weapon is effective.
|5
|1.5 ([[spiked baseball bat]])
|-
|-
|MaxHitCount
|MaxHitCount
|Maximum amount of enemies the weapon will hit at one time.
|Maximum amount of enemies the weapon will hit at one time.
|1
|1 ([[hammer]])
|-
|-
|PhysicsObject
|PhysicsObject
|Requires more research.
|Physics object used as a projectile.
|Boolean (0 or 1)
|MolotovCocktail ([[molotov cocktail]])
|-
|-
|SwingAnim
|SwingAnim
|Name of animation which is ran when the weapon is fired/swung.
|Name of animation which is ran when the weapon is fired/swung.
|Fill in
|Bat ([[baseball bat]])
|-
|-
|WeaponSprite
|WeaponSprite
|Name of sprite, the image used to display the weapon.
|Name of sprite, the image used to display the weapon.
|Fill in
|axe ([[axe]])
|-
|-
|DoorDamage
|DoorDamage
|Damage inflicted by the item on doors.
|Damage inflicted by the item on doors.
|20
|10 ([[spiked baseball bat]])
|-
|-
|MinimumSwingTime
|MinimumSwingTime
|Requires more research.
|Requires more research.
|10
|15 ([[baseball bat]])
|-
|-
|SwingAmountBeforeImpact
|SwingAmountBeforeImpact
|Requires more research.
|Requires more research.
|5
|0.2 ([[spiked baseball bat]])
|-
|-
|PushBackMod
|PushBackMod
|Distance that enemies are pushed back.
|Distance that enemies are pushed back.
|10
|4.5 ([[wood planks]])
|-
|KnockBackOnNoDeath
|Whether enemies are pushed back if they are not killed.
|Boolean (0 or 1)
|-
|-
|SplatNumber
|SplatNumber
|Blood effects used when an enemy is injured by the weapon.
|Blood effects used when an enemy is injured by the weapon.
|2
|5 ([[shotgun]])
|-
|SplatBloodOnNoDeath
|Whether an enemy injured by the weapon will bleed if they are not killed
|Boolean (0 or 1)
|-
|-
|ImpactSound
|ImpactSound
|Name of sound used on impact.
|Name of sound used on impact.
|Fill in
|splat1 ([[axe]])
|-
|-
|SwingSound
|SwingSound
|Name of sound used when firing/swinging weapon.
|Name of sound used when firing/swinging weapon.
|Fill in
|shotgun ([[shotgun]])
|-
|-
|SoundVolume
|SoundVolume
|Defines the volume of a chosen sound.
|Defines the volume of a chosen sound.
|Fill in
|40 ([[shotgun]])
|-
|-
|SoundRadius
|SoundRadius
|Radius in which the sound may be heard in the game world from it's point of origin.
|Radius in which the sound may be heard in the game world from it's point of origin.
|6
|50 ([[shotgun]])
|-
|-
|ToHitModifier
|ToHitModifier
|Requires more research.
|Requires more research.
|Fill in
|1.5 ([[shotgun]])
|-
|-
|NPCSoundBoost
|NPCSoundBoost
|Requires more research.
|Requires more research.
|Fill in
|1.5 ([[shotgun]])
|-
|-
|RangeFalloff
|RangeFalloff
|Requires more research.
|Requires more research.
|Fill in
|Boolean (0 or 1)
|-
|-
|UseEndurance
|UseEndurance
|Whether the weapon causes exhaustion.
|Whether the weapon causes exhaustion.
|Boolean (0 or 1)
|Boolean (0 or 1)
|-
|ShareDamage
|Requires more research.
|Boolean (0 or 1)
|-
|AmmoType
|Item required to fire the weapon.
|ShotgunShells ([[shotgun]])
|}
|}



Revision as of 02:40, 5 September 2011

License Info

By purchasing Project Zomboid, you are permitted to:

  • Change the base files in any way you like, provided that those changes do not result in the game being playable without purchasing.
  • Distribute the files in any way as you like, providing the files you distribute are not useable by themselves, or accompanied with freely available downloadable files, to play the game without purchasing.
  • Use art, music, video footage or intellectual property of Project Zomboid for creative purposes in any way you like, providing the end result is related in some way to Project Zomboid, states Project Zomboid as its influence and origin, and is for non-commercial use only.

You are not permitted to:

  • Modify the demo in any way beyond cosmetic graphical/sound/musical changes.
  • Modify the base files to include malicious code.

Specifics

List of Item Parameters

Many contributions made by forum member InnocentSam.[1]

Parameter Name Effect / Description Example
General
Type Item-type, describes how the item behaves. Includes 'Food', 'Weapon', 'Drainable', 'Literature', 'Clothing' and 'Normal'. Food (steak)
Display Name The item's name as it appears displayed to the player. Axe (axe)
Icon The item's icon as it appears displayed to the player. This parameter looks inside "media/texturepacks/ui.txt" and will call any sprite with the prefix "Item_". Molotov (molotov cocktail)
Weight Item's weight, used for encumbrance. 0.1 (painkillers)
Consumables
IsCookable Whether the item can be cooked. Boolean (0 or 1)
MinutesToCook How many in-game minutes the item must be in an oven for it to cook. 50 (pot of soup)
MinutesToBurn Length of time the item must be in an oven for it to be burnt. Usually double the value of 'MinutesToCook'. 150 (steak)
HungerChange Value applied to player's current hunger points. Positive increases hunger. -20 (crisps)
DaysFresh How many days it takes for a food item to begin rotting. 2 (steak)
DaysTotallyRotten How many days it takes for a food item to become entirely rotten. 7 (carrots)
DangerousUncooked Whether the food item will negatively affect the player in an uncooked state. Boolean (0 or 1)
RequireInHandOrInventory Requires a specified item to be inside the player's inventory before the item may be used. CanOpener (canned soup)
Alcoholic Whether the item effects the player in a similar way to Bourbon. Boolean (0 or 1)
UseSelf Whether the item is consumed after use. Boolean (0 or 1)
OtherHandRequire Requires a specified item to be held by the player in their second quick-slot before the item may be used. Lighter (molotov cocktail)
Weapons
MinDamage Minimum damage the weapon will inflict. 0.7 (baseball bat)
MaxDamage Maximum damage the weapon may ever inflict. 1.0 (baseball bat)
MaxRange Maximum range the weapon is effective. 1.5 (spiked baseball bat)
MaxHitCount Maximum amount of enemies the weapon will hit at one time. 1 (hammer)
PhysicsObject Physics object used as a projectile. MolotovCocktail (molotov cocktail)
SwingAnim Name of animation which is ran when the weapon is fired/swung. Bat (baseball bat)
WeaponSprite Name of sprite, the image used to display the weapon. axe (axe)
DoorDamage Damage inflicted by the item on doors. 10 (spiked baseball bat)
MinimumSwingTime Requires more research. 15 (baseball bat)
SwingAmountBeforeImpact Requires more research. 0.2 (spiked baseball bat)
PushBackMod Distance that enemies are pushed back. 4.5 (wood planks)
KnockBackOnNoDeath Whether enemies are pushed back if they are not killed. Boolean (0 or 1)
SplatNumber Blood effects used when an enemy is injured by the weapon. 5 (shotgun)
SplatBloodOnNoDeath Whether an enemy injured by the weapon will bleed if they are not killed Boolean (0 or 1)
ImpactSound Name of sound used on impact. splat1 (axe)
SwingSound Name of sound used when firing/swinging weapon. shotgun (shotgun)
SoundVolume Defines the volume of a chosen sound. 40 (shotgun)
SoundRadius Radius in which the sound may be heard in the game world from it's point of origin. 50 (shotgun)
ToHitModifier Requires more research. 1.5 (shotgun)
NPCSoundBoost Requires more research. 1.5 (shotgun)
RangeFalloff Requires more research. Boolean (0 or 1)
UseEndurance Whether the weapon causes exhaustion. Boolean (0 or 1)
ShareDamage Requires more research. Boolean (0 or 1)
AmmoType Item required to fire the weapon. ShotgunShells (shotgun)

References