View Single Post
09/14/16, 08:32 PM   #1
ArtOfShred
 
ArtOfShred's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 103
Referencing values in list?

I'm having an issue with this segment of code I'm adding for LUIE's buff tracker.

Currently, I'm adding a fake buff tracking component to track abilities with no active effect applied on the player:

Right now, in its current form I'm using 3 variables to discern information and fill the fields for each buff created. This all works just fine, but I have to list the ability ID under 3 separate lists for this to function:


I want to just consolidate it to one entry for each ability, so I made this list:


And tried to reference the values here:


However when I attempt to reference the values in the list I'm getting an error that it's returning a nil value for each of these lines:
iconName = FakeBuffs[abilityId].icon
effectName = FakeBuffs[abilityId].name
duration = FakeBuffs[abilityId].duration
I'm pretty new to LUA: Am I just messing up the syntax here or misunderstanding it entirely?
  Reply With Quote