Jump to content

Recommended Posts

evenin'

 

i really enjoy the rather large modding community, can find all kinds of cool things :grin:

and since the coding doesnt look too complicated, i can even make little adjustments (to characters for example) to better suite my needs :-)

 

with emphasis on "little"...

 

my question now is: is there a way to make a character ITSELF rainproof? for example: only get soaked at XX% the normal speed, or a "waterproofer" ability like some clothes have

 

come to think of it, there are quite a lot of furry chars out there, a function for them to "shake off" the rain and dry a certain amount instantly, like animals do, would be funny, wouldnt it?^^ (but thats far out of my league (for now))

 

greetings kaetzer

 

PS: while i'm at it, did i see that correctly, that the coding language is C or some derivative? (am not well versed in programming languages, just learned the C basics a few weeks ago)

Waterproof character?

inst.components.moisture.maxMoistureRate = 0

This would nullify rain, but you would gain wetness from waterballoons, fashion melon, and ice cube.

inst.components.moisture.DoDelta = function(self, num) return end

This makes wetness take a hike, no more wetness, at all.

thanks, looks handy, i'll look into it should i get more into modding

 

inst.components.moisture.maxMoistureRate = 0

thanks a lot, works great ;) is it a percentage or absolute value? ah, i'll just play around with it a little^^

The default maxMoistureRate is 0.75. It's used to cap how fast you can get wet while exposed to rain.

 

Depends on the mod. But most likely, no, just enable/disable it before going into the same game.

 

ah, cool, thanks, so if my char should only get 50% wet it would be 0.37, right? i just tested it a little (world settings: rain = lots) and 0.5 seems nice so far

 

it's a custom character mod i manipulated a bit, and every time i tweak something (like more health or less, fire resistance/vulnerability, damage etc.) i used to start a whole new game, but i could have tweaked it on the run?!

"It's used to cap how FAST you can get wet while exposed to rain." So no, moisture cap is still 100.

 

If by tweaked on the run you mean editing the modmain and then immediately see the changes while running the game, the answer is no. By start a whole new game, I assume you CREATE a server. You just need to RESUME one.

Edited by DarkXero

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
×
  • Create New...