Skip to content

Commit

Permalink
Finishing Touches Evolved and Fixing | Build 41.72
Browse files Browse the repository at this point in the history
  • Loading branch information
kents00 authored Jul 24, 2022
1 parent e4d5f9c commit dc6e4b3
Showing 1 changed file with 48 additions and 36 deletions.
84 changes: 48 additions & 36 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,55 +121,64 @@ The evolved recipe is divided into two parts: the ```thing to be transformed```

Example, making sandwich using breadslices:
```
module Base {
item BreadSlices
{
DisplayName = Bread Slices,
DisplayCategory = Food,
Type = Food,
Weight = 0.1,
Icon = BreadSlices,
DaysFresh = 3,
DaysTotallyRotten = 6,
HungerChange = -10,
Calories = 177,
Carbohydrates = 33,
Lipids = 2.22,
Proteins = 5.9,
WorldStaticModel = BreadSlices,
}
{
DisplayName = Bread Slices,
DisplayCategory = Food,
Type = Food,
Weight = 0.1,
Icon = BreadSlices,
DaysFresh = 3,
DaysTotallyRotten = 6,
HungerChange = -10,
Calories = 177,
Carbohydrates = 33,
Lipids = 2.22,
Proteins = 5.9,
WorldStaticModel = BreadSlices,
}
item Sandwich
{
DisplayName = Sandwich,
DisplayCategory = Food,
Type = Food,
Weight = 0.2,
Icon = Sandwich,
DaysFresh = 3,
DaysTotallyRotten = 6,
HungerChange = -10,
Calories = 360,
Carbohydrates = 42,
Lipids = 8.5,
Proteins = 5.8,
StaticModel = Sandwich,
WorldStaticModel = CheeseSandwich,
{
DisplayName = Sandwich,
DisplayCategory = Food,
Type = Food,
Weight = 0.2,
Icon = Sandwich,
DaysFresh = 3,
DaysTotallyRotten = 6,
HungerChange = -10,
Calories = 360,
Carbohydrates = 42,
Lipids = 8.5,
Proteins = 5.8,
StaticModel = Sandwich,
WorldStaticModel = CheeseSandwich,
}
}
```

Evolved into Sandwich:

```
module Base {
evolvedrecipe Sandwich
{
BaseItem:BreadSlices,
MaxItems:4,
ResultItem:Sandwich,
Name:Make Sandwich,
}
{
BaseItem:BreadSlices,
MaxItems:4,
ResultItem:Sandwich,
Name:Make Sandwich,
}
}
```

The ```ResultItem``` is the outcome of constructing Sandwiches with BreadSlices, and ```MaxItems``` is the total number of items made. ```BaseItem``` is the require item ( BreadSlice ) to make an Sandwich.

----------------------------------------
### The fixing block
When fixing an item in Project Zomboid Build 41.72, you just need the ```repair item``` and the ```fixer```; the template example as follows:
Expand All @@ -184,6 +193,9 @@ fixing Fix Baseball Bat
Fixer : Scotchtape=4,
}
```

```Require``` an item needs to repair. ```Fixer``` requirements to fix your item

----------------------------------------
### The sound block
PZ build 40 introduced new audio code to deal with issues in multiplayer. All sounds now need to be defined in a `sound` block to have them heard by players farther then 20 tiles. Defining a sound here also includes it in PZ's options advanced audio tab.
Expand Down

0 comments on commit dc6e4b3

Please sign in to comment.