Originally Posted by timidobserver
I am hoping that an author that isn't going anywhere soon puts together an addon that will save champion point builds.
ClearPendingChampionPoints
AddPendingChampionPoints
SpendPendingChampionPoints
These 3 functions should/might make it possible?
|
Looked at it a bit. It's easy to get a dump of currently spent points with something like:
Lua Code:
local function storePoints()
local out = {}
for i = 1, GetNumChampionDisciplines() do
out[i] = {}
for j = 1, GetNumChampionDisciplineSkills(i) do
out[i][j] = GetNumPointsSpentOnChampionSkill(i, j)
end
end
return out
end
However, I was unable to get the map to update with those functions. Not sure if I was using it wrong or if it's broken. I was able to directly update the controls on the ui with something like this:
Lua Code:
function AddPendingPoints(i,j,num)
CHAMPION_PERKS.constellations[i]:GetStars()[j].pendingPoints = num
end
Another thing of interest with the champion system is it looks like they have a console UI prepped for it. You can switch over with CHAMPION_PERKS:ApplyGamepadStyle() though it's mainly just font changes.