So I'm trying something which i think should be very easy, but I just can't get it to work...
Basically what I'm trying to do is:
myTable = {
a = 1,
b = a + 1
}
This is not working, I get the error that "a" is nil. Reasonable. What i have already tried is
myTable = {
a = 1,
b = myTable.a + 1
}
and
myTable = {
a = 1,
b = self.a + 1
}
But it gives me the error me that "myTable"/"self" is nil.
I got the feeling that the solution is rather simple but i couldn't find it out by myself and google wasn't that helpful as well.