Jump to content

How to edit skill (perk) effect multipliers?


Doomjoon

Recommended Posts

Hello, I'm very new to modding so I don't really know where to start, so I don't have any code to show. I've looked around various files and around the forum but I haven't found a way to change the effect multipliers of various skills (so, how much they do, not the XP gain of them).

 

Can anyone give me any pointers where to start?

 

Thanks.

Link to comment
Share on other sites

  • 1 month later...

Here are a few things I have found with a sample commands for the Strength perk.  There is probably a command to set the PerkBoost but not sure what it is.  If you look at the timed action function for reading ("media\lua\client\TimedActions\ISReadABook.lua")  you can see how the code increases the XpMultiplier for the book skill as you read the book.

local perkBoost = self.char:getXp():getPerkBoost(Perks.Strength);
local xpMult = self.char:getXp():getMultiplier(Perks.Strength);

if perkBoost == 1 then
    xpBoost = "75%";
elseif perkBoost == 2 then
    xpBoost = "100%";
elseif perkBoost == 3 then
    xpBoost = "125%";
end

-- Add 5X XP Multiplier to Strength for lvl 0 - 10
self.character:getXp():addXpMultiplier(Perks.Strength, 5, 0, 10);

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...