this has given me headaches for the last 7 hours. I'm trying to create A-life and decided to use multiple scripts for each behaviour type; ex: script for idle movement, script for fleeing preadators, script for reproduction, script for seeking food. The use a different script for each behaviour works out very well in letting the behaviours "fight it out" depending on the situation to let the A-life decide what's going on.
***The problems I'm having***
Using multiple scripts has been a real issue in passing on gene information that is "mutated" (to allow for some evolution through the generations). in using the llRezObject to pass a randomly generated chat channel which is then passed to the "Baby" A-life using the on_rez command, I've found that even with using a short llSleep() command before passing the info on the appropriate channel the scripts in the "baby" will sometimes miss the message that's been sent. I think my problem is that I have the on_rez event for each script and each script sorts out the info, which may be causing a short delay in processing time to where one of the scripts that processes slower misses the message entirely.
is there another way around passing multiple pieces of information to multiple scripts in a single prim when it's rezzed? right now I'm experimenting with only one of the scripts recieving the information and then the other scripts have a listen call for the "baby's" unique key on a specified channel to sort out the information for themselves. with the way my A-life works using repeating sensors to determine behaviour based on the environment, I'd like to cut down on listeners as much as possible.