Order Config Set (price/exp/recipe)

Each recipe in the script has a price and an exp value. Recipes are generated randomly, and correctly delivered orders earn the worker money and experience based on the order contents.

Change price information

  1. Open the config folder inside the ak4y-aquapark_restaurant file and start editing the order_config.lua file.

  2. We will make changes to the RECIPES = {} table, which begins with the code on line 160; all recipes and contents are located within this table.

Find the recipe you want to change in the Recipes table (e.g., pizza_margherita)


Example of changing the recipe's monetary gain and experience gain;

RECIPES = {
    pizza_margherita = {
        type = "pizza",
        name = "Margherita Pizza", 
        label = "Margherita Pizza", 
        ----
        ----
        , -- The change you make in this section will apply if any order contains this recipe. If the order delivered to the customer is correct, the amount will be added to the preparer's earnings.
        ----
        ----
        , -- Any changes made in this section will apply to orders containing this recipe. If the order is correct when delivered to the customer, the preparer will receive additional experience.
        ----
        ----
        image = "./pizza.png",
        category = "pizza",
        recipe = {
            sos = 1,         
            peynir = 1,      
        }
    },
}

Example of changing the requirements of the recipe;

RECIPES = {
    pizza_margherita = {
        type = "pizza",
        name = "Margherita Pizza", 
        label = "Margherita Pizza", 
        price = 25,
        exp = 15,
        category = "pizza",
        ----
        ----
        recipe = {
            sos = 1, -- How many of these ingredients should be on the pizza for this recipe?       
            peynir = 1, -- How many of these ingredients should be on the pizza for this recipe? 
            -- you can add more here...
        }
        ----
        ----
    },
}

Add new ingredients to the recipe;

Place the appropriate ingredient from the ingredients below into the recipe = {} table for the item you selected, and write the amount of that ingredient you want to add to the recipe next to it!

Ingredient List

  • Pizza: sos - peynir - mushroom - pepper - olive - onion - salam - corn - tomato - pastirma

  • Burger: meat_cooked - chicken_cooked - lettuce - tomato - cheese - onion


Modify the contents of the recipe book in the game

  1. To modify the contents of the recipe book in the game, we will make changes to the RECIPE_BOOK_CONFIG = {} table within the order_config.lua file.

  2. The items = {} table within RECIPE_BOOK_CONFIG is the part we need!

  3. You can apply the recipe changes you've made to the Necessary Ingredients and Prep Steps shown in the table below. You can also make them visible to your players on the game tablet!

RECIPE_BOOK_CONFIG = {
    ...
    ...
    items = {
            -- ๐Ÿ• PIZZA RECIPES
            {
                uniqueId = 1,
                recipeKey = "pizza_margherita", -- Link to RECIPES
                label = "Margherita Pizza",
                difficulty = "Easy",
                cookTime = "8 Min",
                categoryId = 1, -- pizza
                img = "pizza.png",
                selected = false,
                ----
                ----
                neccesaryIngredients = {
                    "Pizza Dough",
                    "Tomato Sauce",
                    "Mozzarella Cheese"
                },
                prepSteps = {
                    { step = 1, label = "Roll out pizza dough" },
                    { step = 2, label = "Take dough to preparation counter" },
                    { step = 3, label = "Spread tomato sauce evenly" },
                    { step = 4, label = "Add mozzarella cheese" },
                    { step = 5, label = "Bake in oven for 3 minutes" },
                    { step = 6, label = "Remove from oven and serve" }
                }
                ----
                ----
            },
        },
    }

Last updated

Was this helpful?