View Single Post
01/29/15, 02:29 AM   #12
Sasky
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 231
I wasn't able to get the main API functions to work for setting pending points or adjusting them. ClearPendingChampionPoints doesn't take any arguments, but wouldn't work from /script. I could get a dump of the points in each skill but feeding those same indices back in didn't do anything.

However, 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

What's the correct syntax for AddPendingChampionPoints and such? Does it need to be prefixed by particular calls or is it just not working?
  Reply With Quote