Jump to content

How Can I Make value to other script?


Wang Novelli
 Share

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

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

Recommended Posts

If the two objects are linked use:

http://wiki.secondlife.com/wiki/LlMessageLinked

If they are seperate completely (but in same region) then send a regionsay on a negative channel. Avatars won't hear the message:

http://wiki.secondlife.com/wiki/LlRegionSay

To use regionsay you'll need the other prim to be listening to the negative channel on the other side. Otherwise it won't receive your message.

If they are in diferent sims use email function:

http://wiki.secondlife.com/wiki/Llemail

Link to comment
Share on other sites

llRegioSayTo it's newer and slightly better but either will work. As was started, the object has to have an open listen created by llListen and the script will hear the data in the llListen event.

 

You will need to do any type casting or other conversion from string type to whatever you need.

Link to comment
Share on other sites

i try it  like this

AScript:

llRegionSay(-12345,animation_name);
llRegionSay(-12345,(string)llGetPos());
llRegionSay(-12345,(string)llGetRot());

 

BScript:

List MyList;

listen(integer channel, string name, key id, string message)
{
MyList = MyList+[message]; 
}

Data can be sent in the past, but the result format is wrong

Link to comment
Share on other sites

Try this:

llRegionSay( -12345, animation_name+", "+(string)llGetPos()+", "+(string)llGetRot());

 and this

List MyList;listen(integer channel, string name, key id, string message){	list L = llCSV2List( message);	MyList = MyList + [llList2String( L, 0), (vector)llList2String( L, 1), (rotation)llList2String( L, 2)];}

If you don't care about the element types you may prefer:

List MyList;listen(integer channel, string name, key id, string message){	MyList = MyList + llCSV2List( message);}

In this last example all list elements are of type string

 :smileysurprised::):smileyvery-happy:

Link to comment
Share on other sites

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