Page 1 of 4
running multiple scripts at once
Posted: Fri Jun 03, 2005 2:31 pm
by billthecat
Can someone point me at an example of 2 scripts interacting?
I need to be able to send signals and values back and forth beween the two.
I know there is a communication method between sessions, but what I'm looking for here is the way scripts running in the same session can talk.
This would be something like having a separate spell routine running while the main bot control routine is also running.
Can they just write to global variables?
Posted: Fri Jun 03, 2005 2:46 pm
by Lax
Sure, or you can use the recently modified "variable" datatype with the recently added variable script.Variable[name] member to modify script variables
Script-scope variables only:
Script[OtherScript].Variable[ScriptScopeVariable]:Set[1]
Global variables:
GlobalVariable:Set[1]
Ideally, right now, if your scripts have to actually interact, it would be best to munge them into one instead of having them acting separately.. Inter-script synchronization will probably always be teh sux0r, but I could of course implement all the goodies with locks, signals, etc.
Re: running multiple scripts at once
Posted: Fri May 23, 2025 10:53 am
by xyilla
Re: running multiple scripts at once
Posted: Fri May 23, 2025 10:54 am
by xyilla
Re: running multiple scripts at once
Posted: Fri May 23, 2025 11:31 am
by xyilla
Re: running multiple scripts at once
Posted: Fri May 23, 2025 11:32 am
by xyilla
Re: running multiple scripts at once
Posted: Fri May 23, 2025 11:33 am
by xyilla
Re: running multiple scripts at once
Posted: Fri May 23, 2025 11:35 am
by xyilla
Re: running multiple scripts at once
Posted: Fri May 23, 2025 11:36 am
by xyilla
Re: running multiple scripts at once
Posted: Fri May 23, 2025 11:37 am
by xyilla
Re: running multiple scripts at once
Posted: Fri May 23, 2025 11:38 am
by xyilla
Re: running multiple scripts at once
Posted: Fri May 23, 2025 11:39 am
by xyilla
Re: running multiple scripts at once
Posted: Fri May 23, 2025 11:40 am
by xyilla
Re: running multiple scripts at once
Posted: Fri May 23, 2025 11:41 am
by xyilla
Re: running multiple scripts at once
Posted: Fri May 23, 2025 12:19 pm
by xyilla