Zasp Posted October 22, 2016 Share Posted October 22, 2016 So I want to add a feature for my character in which when he goes into the caves, he will not have a sanity drain even tho he has sanity drain on the surface (both in day and night). I already coded the surface part but when looking for the no sanity drain for the caves, i was not able to find any other mods with a similiar perk. Can i have a little help pls? P.S- Terrible english Link to comment https://forums.kleientertainment.com/forums/topic/71044-help-with-mod/ Share on other sites More sharing options...
Lumina Posted October 22, 2016 Share Posted October 22, 2016 I'm not familiar with this part of the code, but there is a caveday, cavedusk and cavenight. So maybe you could make your character gain a sanity boost during caveday, cavedusk and cavenight, enough to exceed the malus ? There are probably better (and cleaner) ways to do this, but if it could help... Link to comment https://forums.kleientertainment.com/forums/topic/71044-help-with-mod/#findComment-828153 Share on other sites More sharing options...
Zasp Posted October 23, 2016 Author Share Posted October 23, 2016 Just to know, where is the script for the caveday, night and dusk? (for reference purposes) Link to comment https://forums.kleientertainment.com/forums/topic/71044-help-with-mod/#findComment-828443 Share on other sites More sharing options...
Lumina Posted October 23, 2016 Share Posted October 23, 2016 You could find them in the worldstate.lua component. Some prefabs use them too. Link to comment https://forums.kleientertainment.com/forums/topic/71044-help-with-mod/#findComment-828540 Share on other sites More sharing options...
Zasp Posted October 24, 2016 Author Share Posted October 24, 2016 (edited) lol this is really tough, its the first time I have to attempt to write a code in component. >_< Can I have a little more help on how to start the code? Thanks! Edited October 24, 2016 by Zasp Link to comment https://forums.kleientertainment.com/forums/topic/71044-help-with-mod/#findComment-828937 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