Jump to content

llMessageLinked help please


BadEddy
 Share

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

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

Recommended Posts

Hello, 

I am trying to use llMessageLinked in an object and so far I am having a hard time. Basically I have 2 scripts. The 1s takes care of managing the password people have to use the object and send a command to trigger the 2nd script when the password is right. 

So in my first script I have those lines here:

 

listen(integer channel, string name, key id, string text)
    {
    if (text=="1234")
    {
        llSay(0,">>Password Accepted<< The Box Is Open");
        llMessageLinked(LINK_SET, 0, llGetScriptName(), "shootmenu");        
    }   
     else llSay(0,"Wrong password");         
    }

 And in the 2nd script I have those lines here:

 

    link_message(integer Sender, integer Number, string message, key ID)
    {
      if (message == "shootmenu")  
      {
        touched = ID;
        if (touched)
        {
            DisplayMenu(0);
        }    
      }
    }

 

Any idea where I made a mistake between those two scripts? looks like the 2nd does not listen to the first or its the first that do not say anything. Any help is appreciated. 

 

Thank you

Link to comment
Share on other sites

your parameters are screwed up

You can fix the sender script;

llMessageLinked(LINK_SET, 0, "shootmenu", id);   

 I don't know what you want to do with this in the reciever:

        touched = ID;        if (touched)        {            DisplayMenu(0);        }

 I am guessing:

        if (touched==ID)        {            DisplayMenu(0);        }

 

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4353 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...