Thread: 1.6 update
View Single Post
01/28/15, 09:13 PM   #13
timidobserver
Join Date: Mar 2014
Posts: 37
Originally Posted by Sasky View Post
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.
I don't know enough about it to discuss it intelligently, but you should go here (http://www.esoui.com/forums/showthread.php?t=4243) and ask ZOS. They are asking for feedback about the API changes in that thread. It would be nice to know if you should be able to update the map using that function.
  Reply With Quote