I am wondering if it's possible to run through the list of players (living and all, but for the example I chose living).
But in my head it might break if this happens:
ID = 1 NAME = BOB
ID = 3 NAME = NOT BOB
There are only two values so the for loop will never reach ID 3 would it? Would it?
It's confusing but I realized how much faster it is to NOT use pairs or ipairs: https://springrts.com/wiki/Lua_Performance#TEST_9:_for-loops
1
2
2
for id = 1, #player(0, 'tableliving') do ...