Hi, I have created two huds, one is the Controller (Hud 1) and the other is the one being controlled (hud2).
Hud 1 and Hud 2 I pass messages using llRegionSayTo and listen on a negative channel.
Hud 1 and Hud 2 have more than one script in them.
Hud 1 and Hud 2 also the same "Dialog Script" in them to communicate with the Users.
Now my problem:
When the "Dialog Script" in Hud 1 sends a reply using llMessageLinked to another script,
then Hud2 receives them also ?? (Debug() is a function I can turn on or off from showing debug messages)
Here is a shortened version of the script that is having this problem:
JS_Dialog( string dMode, string dTitle, list dData )
{ llMessageLinked( LINK_THIS, DLG_TIMEOUT, llDumpList2String(dData,"|"),"JS:"+dMode+"|"+dTitle);
}
default
{ state_entry()
{ //Debug( "state ready" );
integer listener = llListen( COMM, "", "", "" );
}
listen(integer channel,string name,key id,string message)
{ if (channel == COMM)
{ if ( message == "READY" )
{ JS_Dialog( "want_something", "Would you like to do it?", ["Yes", "No"] );
}
}
link_message( integer sender, integer num, string str, key id)
{ if ( (string)id == "want_something")
{ Debug( (string)id+" "+str ); //<----showing me other messages using a different id than "want_something" ???
}
}
}
I would be grateful for any constructive ideas before all of my hair turns grey!
Regards Mac aka Jak Scribe