Well-met Posted March 18, 2020 Share Posted March 18, 2020 Hi Each character uses a block that decides what the penalties are for drowning via tuning.lua DROWNING_DAMAGE = { DEFAULT = { HEALTH_PENALTY = 0.25, HUNGER = 25, SANITY = 25, WETNESS = 100, }, WX78 = { HEALTH_PENALTY = 0.4, HUNGER = 25, SANITY = 50, WETNESS = 100, }, WOODIE = { HEALTH_PENALTY = 0.25, HUNGER = 50, SANITY = 25, WETNESS = 100, }, WEREWOODIE = { WERENESS = 100, WETNESS = 100, }, WURT = { HEALTH_PENALTY = 0, HUNGER = 0, SANITY = 0, WETNESS = 50, } }, The format is unusual and so my question is how can I add my own block in modmain.lua, and how can I set it up in my character.lua? 1 Link to comment https://forums.kleientertainment.com/forums/topic/116510-drown-damage/ Share on other sites More sharing options...
Hornete Posted March 18, 2020 Share Posted March 18, 2020 2 minutes ago, Well-met said: [snip] All you simply have to do is, GLOBAL.TUNING.DROWNING_DAMAGE.CHARACTER = { HEALTH_PENALTY = 0, HUNGER = 0, SANITY = 0, WETNESS = 50, } 1 1 Link to comment https://forums.kleientertainment.com/forums/topic/116510-drown-damage/#findComment-1316365 Share on other sites More sharing options...
Well-met Posted March 18, 2020 Author Share Posted March 18, 2020 (edited) 8 minutes ago, Hornete said: All you simply have to do is, GLOBAL.TUNING.DROWNING_DAMAGE.CHARACTER = { HEALTH_PENALTY = 0, HUNGER = 0, SANITY = 0, WETNESS = 50, } Thank you, but will my character automatically use it or will it go for Default? Edited March 18, 2020 by Well-met 1 Link to comment https://forums.kleientertainment.com/forums/topic/116510-drown-damage/#findComment-1316369 Share on other sites More sharing options...
Hornete Posted March 18, 2020 Share Posted March 18, 2020 23 minutes ago, Well-met said: Thank you, but will my character automatically use it or will it go for Default? Your character should use that yes, the game checks if the player has a custom tuning and if it doesnt it goes to default. 1 Link to comment https://forums.kleientertainment.com/forums/topic/116510-drown-damage/#findComment-1316376 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