long AddTriggerEx(BSTR TriggerName, BSTR MatchText, BSTR ResponseText, long Flags, short Colour, short Wildcard, BSTR SoundFileName, BSTR ScriptName, short SendTo, short Sequence);
the parameter ScriptName is work well in lua but fail in j(ava)script.
lua:
function testaa(name, line, wilds)
Note("Name -- " .. name)
Note("Line -- " .. line)
Note("wild-0 " .. wilds[0])
Note("wild-1 " .. wilds[1])
end
jscript:
function testaa(_n,_l,_w){
world.note ("_n="+_n);
world.note ("_l="+_l);
world.note ("typeof(_w)="+typeof(_w));
world.note ("_w="+_w);
world.note ("_w[0]"+_w[0]);
world.note ("_w[1]="+_w[1]);
}
and then i create a trigger by UI,and set pattern as "^you say:(.*)$"
,also set scriptName by "testaa",choise diffrent language,and get diffrent result
lua:
Name -- *trigger97
Line -- you say:ffasdf
wild-0 you say:ffasdf
wild-1 ffasdf
jscript:
_n=*trigger97
_l=you say:ffasdf
typeof(_w)=unknown
_w=
_w[0]undefined
_w[1]=undefined
i doubt that it is a bug . and i guess it is same to alias and triggle .
so i don't know how to solver the problem.
by the way ,i test above in ver 4.83 and v4.73,and get the same result.