asperg Posted June 23, 2025 Share Posted June 23, 2025 my character has 90% natural defense like the weremoose, and i also want her to not gain defense from armor as thatd be too overpowered. I just can't figure it out though, ive been trying for a entire day. I couldnt do it, id very much so appreciate it if someone could lend me a hand. Link to comment https://forums.kleientertainment.com/forums/topic/166661-how-can-i-make-my-character-not-gain-defense-from-armor/ Share on other sites More sharing options...
Haruhi Kawaii Posted June 26, 2025 Share Posted June 26, 2025 On 6/23/2025 at 8:56 PM, asperg said: my character has 90% natural defense like the weremoose, and i also want her to not gain defense from armor as thatd be too overpowered. I just can't figure it out though, ive been trying for a entire day. I couldnt do it, id very much so appreciate it if someone could lend me a hand. It might work, add the ignore_armor tag to your character AddComponentPostInit("inventory", function(self) local _ApplyDamage = self.ApplyDamage function self:ApplyDamage(damage, attacker, weapon, spdamage, ...) if self.inst ~= nil and self.inst:HasTag("ignore_armor") then return damage * (spdamage == nil and 1 or 0), spdamage end return _ApplyDamage(self, damage, attacker, weapon, spdamage, ...) end end) Link to comment https://forums.kleientertainment.com/forums/topic/166661-how-can-i-make-my-character-not-gain-defense-from-armor/#findComment-1824305 Share on other sites More sharing options...
asperg Posted June 26, 2025 Author Share Posted June 26, 2025 thanks, but someone already helped me through it. Instead we just made her unable to equip armor. Link to comment https://forums.kleientertainment.com/forums/topic/166661-how-can-i-make-my-character-not-gain-defense-from-armor/#findComment-1824366 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