All they do is send a message from the first to the second,
and llOwnerSay the message. It uses LINK_THIS as the
sender, since the receiving script is in the same prim.
When I run it in LSLEditor (2.39), it says the message is
sent, i.e., llMessageLinked is called, but the other script
doesn't receive a link_message call. If I manually fill in the
parameters to the second script, and click the link_message
button, it displays the message. And, it correctly displays
the "ignore" message when my parameters are not what
it's expecting.
Does this editor support the llMessageLinked/link_message
execution with the LINK_THIS parameter? If I change the code
to use LINK_SET, it works in the editor and SL. I'm not sure
which is the "right" way, but regardless, I thought I'm mention
the discrepancy between the editor's and SL's behavior.
Thanks,
mm
p.s.
Here is the first script, named llMessageLinked.lsl:
- Code: Select all
default
{
state_entry()
{
llMessageLinked(LINK_THIS, 90210, "Hey, buddy!", NULL_KEY);
}
touch_start(integer n)
{
llMessageLinked(LINK_THIS, 90210, "Hey, buddy!", NULL_KEY);
}
}
Here is the second script, named link_message.lsl:
- Code: Select all
default
{
link_message(integer sender_number, integer number, string message, key id)
{
if (number == 90210) {
llOwnerSay(message);
} else {
llOwnerSay("Ignoring message from "+(string)sender_number);
}
}
}
