Jump to content

Recommended Posts

I have a problem adding a crafting item. When I try to add the character's health to the ingredient, the game closes automatically when the world starts.

 

Spoiler

local craft_1 = AddRecipe("craft_1", {Ingredient(CHARACTER_INGREDIENT.HEALTH, 40), Ingredient("spidergland", 1), Ingredient("nightmarefuel", 5)}, RECIPETABS.MAGIC, TECH.MAGIC_THREE)
craft_1.product = "shadowheart"
craft_1.image = "shadowheart.tex"
craft_1.numtogive = 1

 

Edited by jekart021
Link to comment
https://forums.kleientertainment.com/forums/topic/130603-hp-in-craft/
Share on other sites

I'm sorry, you wrote I should not tell you where to put it :D

I put it in line 67, it looks like this:

local craft_1 = AddRecipe("craft_1", {Ingredient(GLOBAL.CHARACTER_INGREDIENT.HEALTH, 40), Ingredient("spidergland", 1), Ingredient("nightmarefuel", 5)}, RECIPETABS.MAGIC, TECH.MAGIC_THREE)
craft_1.product = "shadowheart"
craft_1.image = "shadowheart.tex"
craft_1.numtogive = 1

 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...