Sign in to follow this  
Zeklo

Wetness Questions & Shenanigans

Recommended Posts

Zeklo    20325

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.

  1. How can I stop passive wetness drain altogether? (Not the sanity drain, losing wetness aka drying off. I've only managed to slow it)
  2. *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.
    1. (The method I tried kind of worked, but revolved around giving back lost health, so it didn't work for critical blows)
  3. 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. ^^

Share this post


Link to post
Share on other sites
. . .    4138

I think putting this in your character.lua masterpostinit should stop you from losing wetness, I think.

inst.components.moisture.baseDryingRate = 0

Share this post


Link to post
Share on other sites
Zeklo    20325
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 by Zeklo

Share this post


Link to post
Share on other sites
Zeklo    20325

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 by Zeklo

Share this post


Link to post
Share on other sites
DarkXero    2892
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

 

Share this post


Link to post
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
Sign in to follow this