Kurohimiko Posted December 16, 2016 Share Posted December 16, 2016 Hello, This is my first time working on a mod and I am not sure how to set this up right. I am editing the Illyasviel Von Einzbern character mod by Silhh and Arcade for my own game. I am only doing it to tailor it more to what I want and scale back the characters OPness a bit, I will not upload it so as to keep to the authors rules. I am giving Berserker (the giant she can summon) a sanity aura, which I already have gotten done and working, but I want the aura just to effect her. I doubt others would gain sanity from being near a killer giant. Does anyone know how I would edit the Sanity Aura to do that? -- Sanity Aura inst:AddComponent("sanityaura") inst.components.sanityaura.aura = 2 This is the code I use for the Aura. Any help would be very much appreciated. Link to comment https://forums.kleientertainment.com/forums/topic/72570-help-with-sanity-aura/ Share on other sites More sharing options...
Ryuushu Posted December 17, 2016 Share Posted December 17, 2016 You'll need to set sanityaura's aurafn to make it return a value higher than 0 only when the player is illya, like so: local function CalcSanityAura(inst, observer) return observer.prefab == "illya" and 2 or 0 end ... inst.components.sanityaura.aurafn = CalcSanityAura Link to comment https://forums.kleientertainment.com/forums/topic/72570-help-with-sanity-aura/#findComment-849604 Share on other sites More sharing options...
Kurohimiko Posted December 17, 2016 Author Share Posted December 17, 2016 Thank you Ryuushu for the help. I was able to get it to work. Link to comment https://forums.kleientertainment.com/forums/topic/72570-help-with-sanity-aura/#findComment-849787 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