Jump to content
  • 0

I have a "link_message" event not receiving a message to it, by number, in a six prim object.


McCall Ryder
 Share

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

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

Question

As above, after being in SL for 6 years, I often find, even in simple scripting and in member sandboxes an inability for one prim to hear from another. And don't blame the coder because I've programmed for more than 40 years. "Ownersays at both the receiving end and the sending end, indicate that the message is not heard. I quote:

THIS IS IN THE RECEIVING SCRIPT OF PRIM NUMBER 6.

link_message(integer fm, integer n, string msg, key id)
{
llOwnerSay("Prim (#"+(string)llGetLinkNumber()+"heard form#"+(string)n+" and msg = \""+msg+"\" fm #"+(string)fm);

ETC

}

I'm using Firestorm's default compilrer and this sends the message::

ShowStuff()
{
string Out = "";
Out += "Roof form or style is: "+llList2String(FormNameList,FormNumber)+CR;
integer i = FormNumber * 5 + AspectNumber;
Aspect = llList2Float(AspectList,i);
Out += "Aspect (slant) is: "+(string)Aspect+CR;
Out += CR+CR+CR;
llSetText(Out,<1.0,1.0,0.0>,1.0);
DB("Sent Aspect="+(string)Aspect+" and FormID="+(string)FormNumber);
llMessageLinked(6,FormNumber,"Aspect="+(string)Aspect+" ",NULL_KEY);
}

HELP!

McCall Ryder

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

My first step, if I were debugging this script myself, would be to verify that your receiving script is actually in link #6.  Don't take Firestorm's word for it, because their Build/Edit tool seems to get link numbers wrong a lot of the time.  Try either adding a few lines in one of your scripts to identify each of your child prims by number and name or, perhaps more quickly, drop this extra script in your root prim for a minute:

default{    touch_start(integer num)    {        llOwnerSay("You have just touched link # " + (string)llDetectedLinkNumber(0));    }}

 Then click each of the child prims to map which one is which.

 

  • Like 2
Link to comment
Share on other sites

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