Gokiburi Posted January 1, 2016 Share Posted January 1, 2016 I'm trying to create a custom recipe for my custom character but can't seem to make it work. I have been trying all sorts of things I found in topics on the forum but non seem to work. I basically have a custom tool: fryingpan and want only my character to be able to craft it. I know it has to do something with a builder tag but cannot seem to make it work. This is what I tried last in modmain.lua:local fryingpanRecipe = Recipe("fryingpan", { Ingredient("cutgrass", 2)}, RECIPETABS.TOOLS, TECH.NONE,nil, nil, nil, nil, "fryingpan_builder") Could any one please help me out? Link to comment https://forums.kleientertainment.com/forums/topic/61689-helpneeded-recipe-for-custom-character-only/ Share on other sites More sharing options...
greenglacier Posted January 1, 2016 Share Posted January 1, 2016 (edited) I see you've dug yourself into modding quite much. I'm a former modder myself although I never could do the coding myself. I summon thee @. Edited January 1, 2016 by greenglacier Link to comment https://forums.kleientertainment.com/forums/topic/61689-helpneeded-recipe-for-custom-character-only/#findComment-704160 Share on other sites More sharing options...
Gokiburi Posted January 1, 2016 Author Share Posted January 1, 2016 Found it out. I put the following in modmain: Asset("ATLAS", "images/inventoryimages/fryingpan.xml"), Asset("IMAGE", "images/inventoryimages/fryingpan.tex"), --Frying pan GLOBAL.STRINGS.NAMES.FRYINGPAN = "Frying Pan" GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.FRYINGPAN = "Frying pans... who knew, right? " GLOBAL.STRINGS.RECIPE_DESC.FRYINGPAN = "A multi chop and mine tool."And in my character:local fryingpanRecipe = Recipe("fryingpan", { Ingredient("twigs", 3), Ingredient("flint", 2), Ingredient("goldnugget", 1)}, RECIPETABS.TOOLS, TECH.NONE)fryingpanRecipe.atlas = "images/inventoryimages/fryingpan.xml"Weirdest thing is that I am sure I tried it before. Link to comment https://forums.kleientertainment.com/forums/topic/61689-helpneeded-recipe-for-custom-character-only/#findComment-704209 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now