I looked as thoroughly as I can, but nothing works to get this to work, but, as I've mentioned, my inexperience could be the reason I'm faulting.
Example :
temp1 = "%1"
temp2 = "%2"
who.place[temp1] = temp2
That works. But it overwrites all information that was on who.place.whereever.name and rewrites the latest information. I scoured over that page, and the page it links to, and couldn't find how to add in any information.
I later tried :
table.insert (who.place[temp1], temp2)
but I don't even think that can be used in such a situation. I could be mistaken, and am simply using it incorrectly.
tprint for example, on the example above, prints out :
(only using four lines rather than the full 40-ish)
"Centre Crossing"="-removed-"
"Bard's Way north of Centre Street"="-removed-"
"Fire and Spice"="-removed-"
"North of New Thera"="-removed-"
I know for certain there are four or five, (probably more), people in those specific areas, and the names that shown through were only the latest on the list.
The problem I'm having is getting it go "Centre Crossing"="-removed-,-removed-,-removed-".
Where am I going wrong with this?
-edit-
Keldar has given me a way to gather the names of the people in a specific room :
places["%2"] = places["%2"] or {}
places["%2"]["%1"] = true
and a function:
function getPeopleInRoom(room_name)
local t = {}
if places[room_name] then
for p,_ in pairs(places[room_name]) do
table.insert(t, p)
end
return t
end
return nil
end
How exactly would I be able to call this function via alias?
Example
DWHO (room_name)
I can't find any information on calling functions via aliases triggers with arguments. |