|
I figure that you should just store the leader as the first person in the table. Here's a little something I threw together:local guild = {{name="Some Guy",rank="General",_online_=true}, {name="A Dude",rank="Captain",_online_=false}} for i=1,#guild do if i==1 then print("Leader:") else print("Player-" .. (i-1) .. ":") end for v in pairs(guild[i]) do print("\t" .. v .. " = " .. tostring(guild[i][v])) end end
Is that kind of what you were going for?