BadEddy Posted June 2, 2012 Share Posted June 2, 2012 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 More sharing options...
Darkie Minotaur Posted June 2, 2012 Share Posted June 2, 2012 In your examole, the parameter message would contain the script's name and the ID would be "shootmenu" - you have the parameters that get sent sraight 1 Link to comment Share on other sites More sharing options...
Dora Gustafson Posted June 2, 2012 Share Posted June 2, 2012 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); } 1 Link to comment Share on other sites More sharing options...
BadEddy Posted June 2, 2012 Author Share Posted June 2, 2012 llMessageLinked(LINK_SET, 0, "shootmenu", id); Ha! that was it! wow. thank you so much Link to comment Share on other sites More sharing options...
Recommended Posts
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