Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Script won't accept channel from another script

Fantasia Tripsa
Registered User
Join date: 3 Mar 2007
Posts: 1
10-11-2007 21:20
I have a master script that the owner can change the channel it listens to in open chat. I have other scripts in same prim that I would like to have listen to whatever channel the owner sets however I am unsure how to migrate the channel from master script to others so they will run off same channel and allow the owner to issue commands from that channel they set. Can anyone help please...would be much appreciated.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
10-11-2007 21:34
do I understand correctly that each script has it's own listen? and they are all your scripts?

better method:
have your "master script" do all the listening... then pas the info to the other scripts via llMessgaeLinked... if you can determine in the master script which script should recieve it, give each other script a special number.... if the incoming message doesn't match the number, don't do anything

such as master sends
llMessageLinke( LINK_THIS, code_number, text, key_of_speaker );
//assuming you need the speakers key

in the reciving script link_message section
if (number = code_number){
//do stuff
}