YourFrostyPal Posted July 25, 2018 Share Posted July 25, 2018 Does anyone know a way to make all items with the healer component more effective as a custom character? Or just make bandages and healing salves more effective with a custom character. Also first time trying to ask for help on forums, a friend suggested me to do so and I have no idea if I'm doing it right. Thanks in advance! Link to comment Share on other sites More sharing options...
ksaab Posted July 26, 2018 Share Posted July 26, 2018 (edited) You need something like this: --prefab file local MULT = 1.25 local _newHealthDoDelta(self, amount, cause, ...) if amont > 0 and cause and cause.components.healer then amount = amount * MULT end return self.inst._oldHealthDoDelta(self, amount, cause, ...) end --prefab fn inst._oldHealthDoDelta = inst.components.health.DoDelta inst.components.health.DoDelta = _newHealthDoDelta Or you can add a custom tag to a character and add PostInit to the healer component. Edited July 26, 2018 by ksaab Link to comment Share on other sites More sharing options...
YourFrostyPal Posted July 27, 2018 Author Share Posted July 27, 2018 Could you show me the best way to implement this? I'm not very experienced at this and I try my best to understand whats shown. I am using the Extended Sample Character as a base. And thank you very much for the reply! Link to comment Share on other sites More sharing options...
YourFrostyPal Posted July 29, 2018 Author Share Posted July 29, 2018 Nevermind! A friend of mine figured it out. Thank you so much for the reply! Link to comment 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