AetherRaptor Posted January 23, 2014 Share Posted January 23, 2014 Hi there, I've been working on a custom character that gets a higher total sanity, a slightly higher rate of sanity loss, an increase in damage and new dialogue while fully insane, and while in the area between sane and insane (I call this "unsettled") he gets a slight decrease in the damage he deals.I easily managed to raise his total sanity and sanity loss rate, but adjusting his damage to his sanity and changing his dialogue set has proven a bit more difficult than I thought. I've tried using Wolfgang's Mightiness status as a reference for my character's sanity-damage status, but I get the feeling there is an easier way to do it. Perhaps a much simpler way would be to take the current sanity level and create a function describing what to do if the sanity level is within the proper ranges? But how? For the sanity dependent dialogue I have a few ways I can solve this problem. I guess I should start solving this problem by asking, "Is this even possible?". I've looked around on other threads and I've seen that it's possible to create multiple lines of dialogue for different conditions like the Nightmare Timepiece does, but that will take far longer than I'd like. What I'm trying to do is make the character actively switch between speech.lua files depending on his sanity level. If that is impossible then maybe I can create two sets of dialogue within the same file and have the character return a certain set depending on sanity. I just realized that's well over 1500 lines I'll have to change... Oh god... As you may be able to tell, I'm new to Lua, however I do have a little bit of experience with coding in general. So please, be gentle, be specific, and most importantly, be simple. Link to comment https://forums.kleientertainment.com/forums/topic/31092-need-help-with-sanity-dependent-dialogue-and-damage/ Share on other sites More sharing options...
AetherRaptor Posted January 24, 2014 Author Share Posted January 24, 2014 Okay, made some progress since my last post. I've managed to create a crude solution to the strength-sanity problem. I just went the easy way I didn't want to go and have the code check for current sanity and set the values accordingly. I wanted to do something more akin to Wolfgang's mightiness ability and have the strength gradually increase or decrease with sanity and have some visual indications of when my character changes status from sane to insane. Unfortunately that's over my head right now, so any help in understanding how Mightiness works would be greatly appreciated. Still haven't made progress on the dual speech file thing, but I'm still working on it. Link to comment https://forums.kleientertainment.com/forums/topic/31092-need-help-with-sanity-dependent-dialogue-and-damage/#findComment-408103 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