SkylordLysander Posted January 24, 2017 Share Posted January 24, 2017 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 https://forums.kleientertainment.com/forums/topic/73571-need-help-adding-perks-to-a-mod/ Share on other sites More sharing options...
. . . Posted January 24, 2017 Share Posted January 24, 2017 Put this in YOURCHARACTER.lua inside the master_postinit for WX not a picky eater perk inst.components.eater.ignoresspoilage = true Link to comment https://forums.kleientertainment.com/forums/topic/73571-need-help-adding-perks-to-a-mod/#findComment-860820 Share on other sites More sharing options...
SkylordLysander Posted January 24, 2017 Author Share Posted January 24, 2017 51 minutes ago, SuperDavid said: Put this in YOURCHARACTER.lua inside the master_postinit for WX not a picky eater perk inst.components.eater.ignoresspoilage = true I had been looking for this for days with no luck until now! Thank you! Link to comment https://forums.kleientertainment.com/forums/topic/73571-need-help-adding-perks-to-a-mod/#findComment-860843 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