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? |
i'm not a coder, but i have some ideas:
- hamstring is an example or a real buff Name? if it's a real buffname, please don't hardcode the Name - s'rendarr used this for fake stuff: fake procs: Code:
local fakeProcs = { Code:
local procAbilityNames = { Code:
local fakeAuras = { |
Quote:
You need something more like: Lua Code:
PS - use the Lua BBCode when posting code snippets -- not screenshots |
Quote:
Quote:
|
All times are GMT -6. The time now is 12:11 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI