RainTheDemoham Posted February 23, 2015 Share Posted February 23, 2015 'Ello lads, I'm here asking for any and all of your help with effect/item coding. What I need help with is the planned features tab on my mod, Wakana The Adventurous. I would love the help as I've been working hard enough on this mod and I really don't need the stress that comes with coding bugs and issues. If any of you do help with my mod you will be added into the contributors list on the mod page. Link to comment https://forums.kleientertainment.com/forums/topic/51369-coding-help-i-need-help-coding-a-few-things-for-my-mod-character/ Share on other sites More sharing options...
Jjmarco Posted February 24, 2015 Share Posted February 24, 2015 I would love the help as I've been working hard enough on this mod and I really don't need the stress that comes with coding bugs and issues. So you want other people to deal with that stress? Anyway, some of the features on that list aren't that hard, like gaining sanity from walking: use custom_rate_fn from the sanity component. It's a function that you must define yourself that returns a dapperness bonus depending on custom conditions.In this case, you want to return a bonus when the character is moving, which can be done with Locomotor.isrunning, like this:inst.components.sanity.custom_rate_fn = function(inst) if inst.components.locomotor.isrunning then return TUNING.DAPPERNESS_SMALL -- 2 units of sanity per minute else return 0 endendTo be put in master_postinit. Link to comment https://forums.kleientertainment.com/forums/topic/51369-coding-help-i-need-help-coding-a-few-things-for-my-mod-character/#findComment-615977 Share on other sites More sharing options...
RainTheDemoham Posted February 24, 2015 Author Share Posted February 24, 2015 Holy heck, thanks! Do you know if any of the sheet music would be doable? Link to comment https://forums.kleientertainment.com/forums/topic/51369-coding-help-i-need-help-coding-a-few-things-for-my-mod-character/#findComment-615991 Share on other sites More sharing options...
Jjmarco Posted February 24, 2015 Share Posted February 24, 2015 @RainTheDemoham, Yeah, "The Lamb" and "A Deathly composition" are relatively easy.The harder one is "A Calm Serenade", but I think it's still doable. Link to comment https://forums.kleientertainment.com/forums/topic/51369-coding-help-i-need-help-coding-a-few-things-for-my-mod-character/#findComment-616140 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