Stoplesses Posted February 1, 2020 Share Posted February 1, 2020 I have this working perfectly but what i'm trying to do is create multiple items instead of just one, what do I do with this code to make it so I create multiple anememy traps? local dug_trap_starfish = Recipe("dug_trap_starfish", { Ingredient("redgem", 4), Ingredient("trap_teeth", 2)}, RECIPETABS.WAR, TECH.SCIENCE_TWO) I thought it was num = * but I don't know. Link to comment Share on other sites More sharing options...
Yakuzashi Posted February 2, 2020 Share Posted February 2, 2020 Hi. I am using something (disclaimer: I didn't discover it on my own, I am just using it) like this: GLOBAL.STRINGS.NAMES.ITASNACC = "Onigiri" GLOBAL.STRINGS.RECIPE_DESC.ITASNACC = "Tasty treat made of rice and seaweed" GLOBAL.STRINGS.CHARACTERS.GENERIC.DESCRIBE.ITASNACC = "That's some yummy stuff!" local itasnacc = Ingredient( "itasnacc", 3 ) itasnacc.atlas = "images/inventoryimages/itasnacc.xml" local itasnacc = AddRecipe("itasnacc", { Ingredient("fish", 1), Ingredient("seeds", 3), Ingredient("cutgrass", 1)}, shinobi, TECH.NONE, nil, nil, nil, 3, "shinobi", "images/inventoryimages/itasnacc.xml") and the fourth "nil" represents amount of crafted items, (in my case it's "3"). Quote TECH.NONE, nil, nil, nil, 3, I don't know how to implement this into your method. Link to comment Share on other sites More sharing options...
Stoplesses Posted February 2, 2020 Author Share Posted February 2, 2020 (edited) I see, thank you, it works! local dug_trap_starfish = Recipe("dug_trap_starfish", { Ingredient("redgem", 4), Ingredient("trap_teeth", 2)}, RECIPETABS.WAR, TECH.SCIENCE_TWO, nil, nil, nil, 2, nil) Edited February 2, 2020 by Stoplesses 1 Link to comment Share on other sites More sharing options...
Argonium Posted February 2, 2020 Share Posted February 2, 2020 Recipe() function is deprecated in DST, use AddRecipe() 1 Link to comment 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