Hello
Im trying to find a word (from a list) in a phrase.
At the moment i have this example, but need to find if the words appears anywhere in the phrase:
listen(integer channel, string name, key id, string message)
{
if (llListFindList(mnuWords, [message]) != -1)
{
curEmote = llList2String(mnuEmotes, llListFindList(mnuWords, [message]));
llStartAnimation(curEmote);
}
}
How can achieve this?
O want the possibility to set my name in the list and find if anyone says my name in the middle of any phrase and then trigger some specific Emote according to some index, like in the example showed.
Thanks in advance.
!= -1)