LeeS
Imperator
I think you're going backwards here. It's becoming convoluted enough that I can't see my way clear to parsing what you are looking at any more.I drew an overly complicated diagram to figure this out...
Would it be:
This way I'm at least comparing two variables of the same type, although I may have missed a logical step here somewhere...Code:if not (GameInfo.Builds{Type=GameInfo.Unit_Builds{UnitType=GameInfo.Units{ID=pUnit:GetUnitType()}.Type}.ID == GameInfoTypes.BUILD_AW_SECRETSECRECY) then return end
And also maybe function calls. Do I need more parens?
It would help to see the context within which this line is 'living' in order to understand what, where, when, who you need to have or look at in that segment of your lua. Also a non-code description of what you are trying to accomplish in that portion of your code and why.
hint: I find it is sometimes easier to understand what I am actually telling the game to do by breaking things into smaller elements that are easier for me to understand, and only after a complex construction is working 'roll' it all into one line.