How can I use more than 9 wildcards with LUA? I'm trying to make my prompt show on the info bar but it has 12 wildcards necessary.
More Wildcards
Posted by Rojan QDel on Thu 24 Jan 2008 02:07 AM — 2 posts, 12,172 views.
First, I don't want to nitpick, but it is Lua not LUA. See:
http://www.lua.org/about.html#name
Lua is a name, not an acronym.
When you say "with Lua", do you mean in a script file? Script files get a wildcard argument, like this:
You can simply index into the wildcards array for any wildcard number. Or you can use named wildcards and use the name.
However if you just mean in the "send" field, you can do this:
I am sure it mentions this somewhere in the help file, but can't see it right now.
Thus the wildcards would be:
Of course, wildcard 1 can also be written as %<1>.
http://www.lua.org/about.html#name
Lua is a name, not an acronym.
When you say "with Lua", do you mean in a script file? Script files get a wildcard argument, like this:
function ExampleTrigger (thename, theoutput, wildcards, line)
print ("12th wildcard is", wildcards [12])
end -- of ExampleTrigger
You can simply index into the wildcards array for any wildcard number. Or you can use named wildcards and use the name.
However if you just mean in the "send" field, you can do this:
Send: this is wildcard %<12>
I am sure it mentions this somewhere in the help file, but can't see it right now.
Thus the wildcards would be:
%1
%2
%3
%4
%5
%6
%7
%8
%9
%<10>
%<11>
%<12>
Of course, wildcard 1 can also be written as %<1>.