When sending the command "who here" on the MUD I'm playing, I get a list of players in the room. It looks something like: "Player1, Player2, Player3" or just "Player1". What I want to do is replace this with: "(1) Player1 (2) Player2 (3) Player3", for example. But my trigger doesn't seem to be sending all the parameters it should, or atleast that's what I believe is the problem.
I have:
And the whohere() function:
When I checked it with "Tyfor, Jherok, Nicanee", all I got was:
Anyone have any idea why it's behaving like this? Doesn't make much sense to me.
I have:
<trigger name="whohere" enabled="n" keep_evaluating="y" match="^(\w+)(?:\, (\w+))*" regexp="y" omit_from_output="y" omit_from_log="y" send_to="12" script="whohere"></trigger>And the whohere() function:
function whohere(name, line, wildcards)
EnableTrigger("whohere", false)
for k in wildcards do
ColourTell("silver", "", "(", "lightskyblue", "", tostring(k), "silver", "", ")", "royalblue", "", " " .. tostring(wildcards[k]) .. " ")
end
ColourNote("", "", "")
endWhen I checked it with "Tyfor, Jherok, Nicanee", all I got was:
1 = Tyfor
2 = Jherok
0 = Tyfor, Jherok, NicaneeAnyone have any idea why it's behaving like this? Doesn't make much sense to me.