fkaet Posted December 24, 2016 Share Posted December 24, 2016 (edited) Hey guys. I'm making a character and I wondered if there is any way to make insanity effects appear randomly even though sanity is full (I'm mostly interested in whispers and shadows). If it's possible, I would like those insanity effects: Mr. Skits Shadows watchers Lighting slightly desaturated in overworld and caves and brightening in the Ruins (this one is optional, it should be a very slight difference) Eyes appearing in the darkness (very important) Whispering (very important) I'd like everything to be purely visual, meaning that it shouldn't make the game harder (so they shouldn't attack). My character's sanity is already halved btw, I'm also using Extended Sample Character Template. I would also like it if my character was more likely to rock back and forth (let's say at 75% sanity), it would be amazing if possible. I don't even know where to start with all this lol. I really hope I could get some help from you guys Edited December 24, 2016 by fkaet Link to comment https://forums.kleientertainment.com/forums/topic/72799-i-need-help-to-make-insanity-effects-appear-randomly-custom-character/ Share on other sites More sharing options...
Mobbstar Posted December 27, 2016 Share Posted December 27, 2016 Let me give some rough guidance quickly... The best approach would probably be to just patch the sanity component using AddComponentPostInit(), so you can make it play pretend when the "self.inst" is your character (if self.inst.prefab == "wilson" then). How exactly you manipulate the numbers is up to you, but the easiest approach would be to cap using math.min(). Link to comment https://forums.kleientertainment.com/forums/topic/72799-i-need-help-to-make-insanity-effects-appear-randomly-custom-character/#findComment-853325 Share on other sites More sharing options...
fkaet Posted December 28, 2016 Author Share Posted December 28, 2016 I can't say I know how to start, but it's surely helpful as a guidance and I'm going to try reading some modding basics and attempt it for sure. I'll surely will try to follow it, thanks a lot man. It's a lot since I was at a complete zero writing the thread. I'll keep the thread open, since I'm pretty sure I'll get stuck halfway and will need further help from the forum but for now I know where to begin. Man I wish the sanity effects weren't so difficult to manipulate for a complete beginner. Link to comment https://forums.kleientertainment.com/forums/topic/72799-i-need-help-to-make-insanity-effects-appear-randomly-custom-character/#findComment-853593 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