Ivanotus Posted April 5, 2023 Share Posted April 5, 2023 I've been beating my head against a wall for a while to introduce the next perks to a custom character: faster sanity loss when wet, increased damage when punching (no weapons) and increased movement speed while in combat. I've tried looking up other mods that include similar perks but after trying to implement them in mine, they crash. Could I get some help? My LUA knowledge is zero, though I do have some very minor experience with HTML, CSS and C#. Link to comment https://forums.kleientertainment.com/forums/topic/146915-help-with-coding-a-few-perks/ Share on other sites More sharing options...
Boogiepop210 Posted May 16, 2023 Share Posted May 16, 2023 On 4/5/2023 at 8:42 AM, Ivanotus said: I've been beating my head against a wall for a while to introduce the next perks to a custom character: faster sanity loss when wet, increased damage when punching (no weapons) and increased movement speed while in combat. I've tried looking up other mods that include similar perks but after trying to implement them in mine, they crash. Could I get some help? My LUA knowledge is zero, though I do have some very minor experience with HTML, CSS and C#. inst.components.combat:SetDefaultDamage(Damage)(in master postint) for the increased punch damage. As for the Faster sanity loss when wet, I recommend raising the TUNING.MOISTURE_SANITY_PENALTY_MAX but only for your character or changing the Sanity:Recalc function. As for the Increased movement speed in combat. You could make a local function that Happens every frame local function OnUpdate(inst) if inst.components.combat and inst.components.combat:HasTarget() then inst.components.locomotor:SetExternalSpeedMultiplier(inst, "combat_speed_mod", 1.25) else inst.components.locomotor:SetExternalSpeedMultiplier(inst, "combat_speed_mod", 1.25) end end I'm not a expert at modding myself so if this doesn't work then I reccomand looking at scripts. Link to comment https://forums.kleientertainment.com/forums/topic/146915-help-with-coding-a-few-perks/#findComment-1635118 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