From e4d5f9cc73fd525776af93dc74b8e7c1480e0831 Mon Sep 17 00:00:00 2001 From: Kent Edoloverio <69900896+kents00@users.noreply.github.com> Date: Sun, 24 Jul 2022 12:27:37 +0800 Subject: [PATCH] Adding Evolved Recipe | Build 41.72 --- scripts/README.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/scripts/README.md b/scripts/README.md index 0c6399d..1bb6fa5 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -117,10 +117,62 @@ Here you can see the ingredients are a knife and a fish. `keep` is declared befo ---------------------------------------- ### The evolvedrecipe block +The evolved recipe is divided into two parts: the ```thing to be transformed``` and the ```result of the transformation```; we need to create 2 items to do that. + +Example, making sandwich using breadslices: +``` +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, +} + +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, +} +``` + +Evolved into Sandwich: + +``` +evolvedrecipe Sandwich +{ + BaseItem:BreadSlices, + MaxItems:4, + ResultItem:Sandwich, + Name:Make 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: +When fixing an item in Project Zomboid Build 41.72, you just need the ```repair item``` and the ```fixer```; the template example as follows: ``` fixing Fix Baseball Bat {