RARARARA Posted September 21, 2024 Share Posted September 21, 2024 I'm using a translator, so I might not be able to express my words properly. Please understand. ---- local function OnHealthDelta(inst, data) if data.amount < 0 then inst.components.sanity:DoDelta(data.amount * ((data ~= nil and data.overtime) and TUNING.WALTER_SANITY_DAMAGE_OVERTIME_RATE or TUNING.WALTER_SANITY_DAMAGE_RATE) * inst._sanity_damage_protection:Get()) end end local function master_postinit(inst) inst:ListenForEvent("healthdelta", OnHealthDelta) ---- If my custom character's health is lost, I'd like to add a feature that loses mental strength by [0.5x]. I've tried putting Walter's abilities in, but there's no response. I keep looking it up in Klei, but I can't find it. I know very little about coding. Please someone let me know... Link to comment https://forums.kleientertainment.com/forums/topic/159879-id-like-to-put-the-ability-to-lose-walters-mentality-in-a-custom-character/ Share on other sites More sharing options...
Baguettes Posted September 21, 2024 Share Posted September 21, 2024 Nothing in the code looks incorrect to me; I wonder if you can send your entire character file here? Thanks. Link to comment https://forums.kleientertainment.com/forums/topic/159879-id-like-to-put-the-ability-to-lose-walters-mentality-in-a-custom-character/#findComment-1749947 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