Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Underlying process model in scripts

Jon Marlin
Builder, Coder, RL & SL
Join date: 10 Mar 2005
Posts: 297
06-08-2005 09:46
Hi everyone,

I'm trying to debug a communications problem, and I need to make sure my understanding of the internal process model for scripts is correct.

I'm assuming that each script gets its own virtual machine process. I'm assuming that when a script triggers a linked message, that message goes into the event handling queue for itself and other scripts in the prim (assuming an object with one prim with multiple scripts).

If the first script triggers the same linked message again before the second script is done processing the first message, I assume the message just goes into the queue and is processed when the first one is done.

Is that correct?

Thanks,
Jon
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
06-08-2005 10:48
Yep sounds right.
Also you should know that the script can receive linked messages from it self (that is a script can loopback on it self).
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey