Hey guys,
so far I'm making good progress on my race pack mod. But there's another problem I'm encountering when trying to add 1 extra skill point as racial trait. Unfortunately I did not find any source code related to the "skilled" trait as well, neither in the .lua's nor here in the forums. When using code like this...
Code: Select all
onRecomputeStats = function(champion, level)
if level > 0 then
champion:addStatModifier("strength", 3)
champion:addStatModifier("dexterity", -1)
champion:addStatModifier("willpower", -2)
if champion:getRace() == "customRace" and champion:getSkillPoints() < 3 then
champion:setSkillPoints(3)
else
champion:setSkillPoints(2)
end
end
end,
...there are the following problems:
1. skill points for custom race gets set to 3, but doesn't return to 2 when selecting another race
2. I need to add this code to all races in order to get them set back to 2 skill points
3. once in game, the skill points are still set to 3(respectively 2), and won't deduct when skill points are given to the champion
Is there even a way to allow for more skill points based on racial traits? I'm aware you can easily do this for character classes. Not allowing this for races confuses me?