I'm trying to make my WHO LIST look simplier..
So far I have it looking like this
'1' - North ledge (8209) ( Area is: Bloodloch. )
Chyme
'1' is counting how many people is in that room with concat..
ROOM = north ledge (8209)
AREA = Bloodloch
people = Chyme
the script I have for it is this
function WhoList(room, name, area)
system.who = system.who or {}
system.who[room] = system.who[room] or {}
system.who[room].area = area
system.who[room].people = system.who[room].people or {}
table.insert(system.who[room].people,name)
end
I am wondering Does anyone know a way to make it look like
Area: Bloodloch
Room: North ledge (8029)
Chyme (1)
Room: another room shows if another person is in area
Area: a different area if different from the top..
Basically to list per AREA then rooms in area with people in it?
The output im using for the above is
echo("\nWho List:")
for id,rooms in pairs(system.who) do
echo("\n")
echo("\n")
cecho("<grey> '" .. #rooms.people .. "' - ")
setFgColor(255,255,255)
echoLink(id, [[expandAlias("wList ]] ..id.. [[")]], "Who's in "..id, true)
cecho("<grey> ( Area is:<OrangeRed> " .. rooms.area .. " <grey>)\n")
echo(" ")
cecho("<aquamarine>" .. table.concat(rooms.people, ", ") )
end