Jump to content

real easy ll Listen problem


Malix Orfan
 Share

You are about to reply to a thread that has been inactive for 4080 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

hello can anyone help? this is an easy one I know! I have two scripts. one says something on channel ), one listens. Now, it works when I say the magic word in chat, but not when the script says it!

default
{
    state_entry()
    {
        llSetTimerEvent(10);
    }

    timer() {
        llSay(0,"plus");
    }
}

 

and the listener is:

default
{
    state_entry()
    {
        llListen(0, "", NULL_KEY, "" );
    }
    listen( integer channel, string name, key id, string message )
    {
            if ( message == "plus" )
            {
                llWhisper( 0, "more!" );
            }      
    }
}

 

what am I doing wrong?

(yes I know its a basic question, couldn't find anything in any docs!

thanks!

Link to comment
Share on other sites

Can't imagine why you would need a scriptset like that, but if you do, here's a way to do it:

 

default{    state_entry()    {         llSetTimerEvent(10);    }
timer() { llMessageLinked(LINK_SET, 1, "", NULL_KEY) }}and the "listener" is:default{ link_message(integer src, integer num, string str, key id) { if(num) { llWhisper( 0, "more!" ); } }}

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4080 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...