Hello.
To get straight into what I'm trying to do, I'll start by throwing my script :
^(\w+)(?:(\s+))(?:\(|\(house\))(.+)\)$
script :
who.name.%1 = "%1"
who.name.%1.where = "%3"
Mind you, the RegEx is sloppy, and the tables aren't precisely what I'd like, but I have to stick with it. (Can't get %3 to get a table named after itself because it sometimes consists of more than one word and/or other characters).
Essentially, this is just a script to gather everyone from a WHO list and their location, and place them altogether. With that, I'm hoping with enough time, that I can output location names (will show example below) and everyone who is in that specific room.
-Roomname1- : Name1, Name2, Name3, Name4
-Roomname2- : Name5
Et cetera. This is going to take some work on my part, understandably, but, I think it's good practice, and upon finding an answer, should better my skills with Lua.
I'll be in debt to whomever can help me.
Thanks in advance,
BDKL |