dois raios Posted January 13, 2023 Share Posted January 13, 2023 I put local itenss = {"armor_sanity","nightsword",} inst.components.builder:UnlockRecipe[itenss] into the master_postinit function but it wont work in-game. However if I put inst.components.builder:UnlockRecipe("armor_sanity") and inst.components.builder:UnlockRecipe("nightsword") into the master_postinit function, it will work. Since I am just testing somethings, I would like to know how could I create a table to the itens I would like my character have unlocked since the beggining wihtout needing to write X times the same thig over and over again. observation: I also tried inst.components.builder:UnlockRecipe(itenss) instead of inst.components.builder:UnlockRecipe[itenss] I am also new into modding Link to comment https://forums.kleientertainment.com/forums/topic/145555-i-made-a-mistake-but-i-dont-know-what-is-it/ Share on other sites More sharing options...
dois raios Posted January 13, 2023 Author Share Posted January 13, 2023 local itenss = {"armor_sanity","nightsword"} for k, v in pairs (itenss) do inst.components.builder:UnlockRecipe(v) end a friend helped me. Link to comment https://forums.kleientertainment.com/forums/topic/145555-i-made-a-mistake-but-i-dont-know-what-is-it/#findComment-1617530 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