Jump to content

I made a mistake but I dont know what is it


Recommended Posts

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
Share on other sites

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
 Share

×
  • Create New...