Lvl14Potato Posted September 4, 2016 Share Posted September 4, 2016 I need help coding traits for my custom character. As an either or situation, I need him to be able to have more movement speed if his health falls to 30 or below if he doesn't have a weapon wielded at the cost of sanity or he can receive a damage boost when his health falls to 30 or below (with a defense bonus if that's possible) and I also would like for him to do more damage to all boss monsters (not much more than normal, but just a bit more). The main problem is that I don't know the coding for any of these traits and I also don't know where to put the coding. Any help is appreciated. Link to comment https://forums.kleientertainment.com/forums/topic/69966-i-need-help-trying-to-make-my-custom-character-have-traits/ Share on other sites More sharing options...
Lvl14Potato Posted September 4, 2016 Author Share Posted September 4, 2016 On an unrelated note to the topic, I also need help with adding custom dialogue. Not the descriptions of items, but the battle cry speech or announcing incoming hounds or crafting failure as some examples. Just like my original post, I don't know what the coding is or where to put it. Like I said before, any help is appreciated. Link to comment https://forums.kleientertainment.com/forums/topic/69966-i-need-help-trying-to-make-my-custom-character-have-traits/#findComment-810287 Share on other sites More sharing options...
Mobbstar Posted September 4, 2016 Share Posted September 4, 2016 inst:ListenForEvent("healthdelta",function(inst,data) if data and data.newpercent and data.newpercent < 0.2 then --Insert Buffs else --Undo Buffs end end You can attach a speech file using "require", check other character mods for examples. Link to comment https://forums.kleientertainment.com/forums/topic/69966-i-need-help-trying-to-make-my-custom-character-have-traits/#findComment-810384 Share on other sites More sharing options...
Lvl14Potato Posted September 4, 2016 Author Share Posted September 4, 2016 Thank you very much for the code. Do I put this in the scripts/prefabs notepad file? Link to comment https://forums.kleientertainment.com/forums/topic/69966-i-need-help-trying-to-make-my-custom-character-have-traits/#findComment-810566 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