Leocean Posted December 27, 2014 Share Posted December 27, 2014 Hey, does somebody know how I can change sanity/insanity effects to be calculated by precise points instead of %. E. g. one of my modded character got a max.sanity of 250,but at 150 my screen already getting thouse typicall "insanity" effects i. g blurred borders and so on... So at the end it should be like this: Starting insanity effects at ~70 sanity points. I tryed to google some solutions but couldnt find anything usefull, the only thing I did find, was this: thread http://forums.kleientertainment.com/topic/33162-mod-help-sanityinsanity-changing-health-and-hunger-stats/ Link to comment Share on other sites More sharing options...
DragonDePlatino Posted December 27, 2014 Share Posted December 27, 2014 You can change insanity effects to be active at a certain percent, but not a specific value. Correct? If so, you can still pull off your sanity effects at a specific value. 70 / 250 = 0.28, so the insanity effects should become active at 28% in order for them to happen once your sanity reaches 70. Link to comment Share on other sites More sharing options...
Leocean Posted December 27, 2014 Author Share Posted December 27, 2014 First of all, thank you for responding hm k, so how do I set this up? the only thing I have related to sanity is a "if sanity low function, -> toggle night vision" local function sanitylow(inst, data) if inst.components.sanity.current <= 40 theninst.Light:Enable(false)end if inst.components.sanity.current > 110 theninst.Light:Enable(true) Link to comment Share on other sites More sharing options...
DragonDePlatino Posted December 27, 2014 Share Posted December 27, 2014 Sorry, mate! I've got some general programming knowledge but I haven't started on my lua skills yet. You'll need to wait for someone else's help if you need to get any code-related issues out of the way. Link to comment Share on other sites More sharing options...
Leocean Posted December 28, 2014 Author Share Posted December 28, 2014 Too bad, well thanks anyway, but it looks like there is nobody willing to help / or who can help me Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.