|
Jennifer Ida
Registered User
Join date: 5 Nov 2006
Posts: 3
|
12-16-2007 13:00
*solved*
|
|
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
|
12-16-2007 13:37
The easiest way is to just define com_channel in the new script. The, in the mainscript you will llSay(com_channel). The newscript will be listening on that channel. When mainscript says something, the listen() handler in the newscript will be called. In there, you will have to parse the string that the main said, to pick out the name of the new item. mainscript : string item_name = "demo hud"; integer com_channel = -32555; integer hud_channel = -32556; newscript : *global* integer com_channel = -32555; *in one of the states of the script* llListen (com_channel,"","",""  ; listen() { item_name = <some part of what main said here>; }
_____________________
So many monkeys, so little Shakespeare.
|
|
Xhawkx Holden
Registered User
Join date: 1 Nov 2006
Posts: 86
|
12-16-2007 13:38
Use linked_messages... not say and listen..
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
12-16-2007 15:49
what hawk said...
your script that holds all your variables will get messages from sub scripts to change them, so you aren't duplicating storage, they can send different messages to change different variables, and can send different request to get valuse sent back to them
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|