RinShigure Posted November 15, 2016 Share Posted November 15, 2016 Hi everyone. I'm completely new to modding so to start off with modding i decided to create a tool item, based on how shurikens work in real life, i thought it would be easy and so, for making the mod al ittle fair for the player i thought of making the shurinken a stackable and equipable like the blow_darts, but my problem started with the materials i decided to create them from rocks using flints as catalyst (ignore the process, it just happens in my head), so it started requesting 3 flints and 2 rocks for the creation of 1 shuriken, then i thought that it was a little expensive and reduced the costs to 2 flints and 1 rock but in game it still feels expensive for something that should be useful, so i deciden later to set the materials as 3 flints and 1 rock but it should spawn 5 shurikens, the problem is i don't know how to spawn multiple items from one recipe, please i need some help, thanks in advace Link to comment https://forums.kleientertainment.com/forums/topic/71710-multiple-object-spawn/ Share on other sites More sharing options...
Lumina Posted November 15, 2016 Share Posted November 15, 2016 AddRecipe("gears", {Ingredient("steelwool", 1), Ingredient("transistor", 1), Ingredient("purplegem", 1) }, RECIPETABS.SCIENCE, TECH.SCIENCE_TWO, nil, nil, nil, 2) (The recipe is just one example) After "TECH.SCIENCE_TWO," you have nil, nil, nil, 2. 2 Is the amount of item the recipe give you. Just choose the number you want instead Link to comment https://forums.kleientertainment.com/forums/topic/71710-multiple-object-spawn/#findComment-837858 Share on other sites More sharing options...
RinShigure Posted November 15, 2016 Author Share Posted November 15, 2016 (edited) O.O Thanks a lot seriously i'll try it out and let the feedback here Thanks a lot @Lumina ^-^ It worked, thank you May i ask what are the other "nil" for?? i feel curiosity Edited November 15, 2016 by RinShigure Link to comment https://forums.kleientertainment.com/forums/topic/71710-multiple-object-spawn/#findComment-838014 Share on other sites More sharing options...
CarlZalph Posted November 16, 2016 Share Posted November 16, 2016 11 hours ago, RinShigure said: O.O Thanks a lot seriously i'll try it out and let the feedback here Thanks a lot @Lumina ^-^ It worked, thank you May i ask what are the other "nil" for?? i feel curiosity Arguments are: (name, ingredients, tab, level, placer, min_spacing, nounlock, numtogive, builder_tag, atlas, image, testfn) To see what each does check out the recipe.lua file and search the files for variable references. Link to comment https://forums.kleientertainment.com/forums/topic/71710-multiple-object-spawn/#findComment-838217 Share on other sites More sharing options...
RinShigure Posted November 16, 2016 Author Share Posted November 16, 2016 11 hours ago, CarlZalph said: Arguments are: (name, ingredients, tab, level, placer, min_spacing, nounlock, numtogive, builder_tag, atlas, image, testfn) To see what each does check out the recipe.lua file and search the files for variable references. @CarlZalph Thanks for the information, i'll check that out Link to comment https://forums.kleientertainment.com/forums/topic/71710-multiple-object-spawn/#findComment-838358 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