Zeklo Posted June 17, 2016 Share Posted June 17, 2016 It's become apparent that I'm not going to figure these answers out on my own, so I come with some questions. If they get answered, great. If they don't, at least I asked. So.... right on to it then. How can I stop passive wetness drain altogether? (Not the sanity drain, losing wetness aka drying off. I've only managed to slow it) *I'm trying to make it so wetness will take the damage instead of HP if available, but if no wetness is available then damage is taken normally. (The method I tried kind of worked, but revolved around giving back lost health, so it didn't work for critical blows) Is it possible to craft with wetness, and if so how? (similar to with HP & sanity) I have a few more questions, but those can wait. I don't want to over do it anymore than I already have xD Anyway, thanks for your time whether you could help or not. ^^ Link to comment Share on other sites More sharing options...
. . . Posted June 17, 2016 Share Posted June 17, 2016 I think putting this in your character.lua masterpostinit should stop you from losing wetness, I think. inst.components.moisture.baseDryingRate = 0 Link to comment Share on other sites More sharing options...
Zeklo Posted June 17, 2016 Author Share Posted June 17, 2016 (edited) 11 minutes ago, SuperDavid said: I think putting this in your character.lua masterpostinit should stop you from losing wetness, I think. inst.components.moisture.baseDryingRate = 0 Unfortunately I've tried this with no luck. EDIT: Though -1 seems to work! Sweet! nevermind I guess. welp EDIT2: I think... -100 works. Will require more testing. Edited June 18, 2016 by Zeklo Link to comment Share on other sites More sharing options...
DarkXero Posted June 18, 2016 Share Posted June 18, 2016 MoistureStuff.zip Link to comment Share on other sites More sharing options...
Zeklo Posted June 18, 2016 Author Share Posted June 18, 2016 (edited) Woah, yeah that all works like a charm. That's really freaking cool. I also have another question to whom ever. How can I make an item character specific (ie. not able to be picked up by others)? Please and thank you. Edited June 18, 2016 by Zeklo Link to comment Share on other sites More sharing options...
DarkXero Posted June 19, 2016 Share Posted June 19, 2016 inst.components.inventoryitem.onputininventoryfn = function(inst, owner) if owner.prefab ~= "wilson" then owner:DoTaskInTime(0, function(owner) owner.components.inventory:DropItem(inst, true, true) end) end end Link to comment 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