These forums are CLOSED. Please visit the new forums HERE
mutmultiple script question |
|
|
Monkey Carbetta
Registered User
Join date: 4 Feb 2007
Posts: 3
|
02-12-2007 09:08
Hi, is it possible to have to script that can communicate with each other, i.e variables from one script beeing sent to another script? if so, does anyone have any advice on how to do this?
|
|
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
|
02-12-2007 09:16
Yes, very easily. It is quite often done for anything more than the simplest projects.
Look through the wiki for information on llMessageLinked(). This will be your new best friend. http://rpgstats.com/wiki/index.php?title=LlMessageLinked Generally, you can set it to send a message to LINK_THIS, assuming the scripts are in the same prim. Then, the messages are not likely to be intercepted by a script in another prim. This should at least give you a good place to start. Baron H. |
|
Learjeff Innis
musician & coder
Join date: 27 Nov 2006
Posts: 817
|
02-12-2007 12:36
Baron's suggestions are for scripts in the same object (including in different prims in the same object). Objects can also communicate by email and by using chat (ideally on a high channel number and with other protections to keep other objects from interfereing and vice versa).
|