Jump to content

Need Help Adding Perks to a Mod


Recommended Posts

So I found this thread in the forum and I'm not sure where to put this coding (or really any coding) into the modmain.lua for my mod:

AddPrefabPostInit("nightmarefuel", function(inst)    inst:AddComponent("edible")    inst.components.edible.foodtype = GLOBAL.FOODTYPE.HORRIBLE    inst.components.edible.healthvalue = x    inst.components.edible.sanityvalue = y    inst.components.edible.hungervalue = zend

I also kinda want to see if you could make dark petals give a character sanity(when you pick evil flowers) and health like how the normal petals do and I wanna know how to add WX-78's "not a picky eater" perk since the character I'm modding is a robot

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...