Thread: 1.6 update
View Single Post
01/28/15, 07:40 PM   #12
Sasky
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 231
Originally Posted by timidobserver View Post
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:
  1. local function storePoints()
  2.     local out = {}
  3.     for i = 1, GetNumChampionDisciplines() do
  4.         out[i] = {}
  5.         for j = 1, GetNumChampionDisciplineSkills(i) do
  6.             out[i][j] = GetNumPointsSpentOnChampionSkill(i, j)
  7.         end
  8.     end
  9.     return out
  10. 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:
  1. function AddPendingPoints(i,j,num)
  2.     CHAMPION_PERKS.constellations[i]:GetStars()[j].pendingPoints = num
  3. 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.
  Reply With Quote