TomHisagi Posted July 12, 2015 Share Posted July 12, 2015 As you can tell I am a new modder in need of some help. So I'll try to describe my character the best I can and if you have any ideas, tips, and/or advice it'll be greatly appreciated. Winter the PrincessFriends with most animalsFragile, but ladylikeInnocent and pure heart Max Health - 150Max Hunger - 100Max Sanity - 250Typical princess character, makes loads of fairy tale references. Not a hard hitter, but can make friends with neutral mobs easier (rabbits, pig men, rabbit men, beefalo, etc). Loses sanity when attacking neutral mobs. Hunger decreases slower than other characters, gains sanity during the day. Thanks in advanced! Link to comment https://forums.kleientertainment.com/forums/topic/56111-new-modder-in-need-of-help/ Share on other sites More sharing options...
TheShadeofTheNorth Posted July 13, 2015 Share Posted July 13, 2015 (edited) To manipulate hunger rate , use : inst.components.hunger:SetRate(TUNING.WILSON_HUNGER_RATE) (wilson tuning is just an example). To manipulate damage : use inst.components.combat.damagemultiplier = put the value here .To make her lose sanity when attacking mobs you can use this event listener : inst:ListenForEvent("onhitother", function(inst,data) --put all the code here end) But how to detect the mob attacked i don't know how to do it yet. I think kramped.lua can help you with that. Edited July 13, 2015 by TheShadeofTheNorth Link to comment https://forums.kleientertainment.com/forums/topic/56111-new-modder-in-need-of-help/#findComment-653870 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