running multiple scripts at once

Moderator: MacroQuest Developers

User avatar
billthecat
a lesser mummy
a lesser mummy
Posts: 64
Joined: Sun Jan 30, 2005 8:58 pm

running multiple scripts at once

Post by billthecat » Fri Jun 03, 2005 2:31 pm

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?
"If you think nobody cares, try missing a couple of payments"

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Fri Jun 03, 2005 2:46 pm

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.
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: running multiple scripts at once

Post by xyilla » Fri May 23, 2025 10:53 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: running multiple scripts at once

Post by xyilla » Fri May 23, 2025 10:54 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: running multiple scripts at once

Post by xyilla » Fri May 23, 2025 11:31 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: running multiple scripts at once

Post by xyilla » Fri May 23, 2025 11:32 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: running multiple scripts at once

Post by xyilla » Fri May 23, 2025 11:33 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: running multiple scripts at once

Post by xyilla » Fri May 23, 2025 11:35 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: running multiple scripts at once

Post by xyilla » Fri May 23, 2025 11:36 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: running multiple scripts at once

Post by xyilla » Fri May 23, 2025 11:37 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: running multiple scripts at once

Post by xyilla » Fri May 23, 2025 11:38 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: running multiple scripts at once

Post by xyilla » Fri May 23, 2025 11:39 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: running multiple scripts at once

Post by xyilla » Fri May 23, 2025 11:40 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: running multiple scripts at once

Post by xyilla » Fri May 23, 2025 11:41 am


xyilla
naggy
naggy
Posts: 33673
Joined: Sun Feb 23, 2025 5:36 am

Re: running multiple scripts at once

Post by xyilla » Fri May 23, 2025 12:19 pm