Well, not really. It's nearly midnight, so I'll do it tomorrow or so, I guess, but I thought I'd give you what I found out!
BEHOLD! As this will probably change your life!
We'll need two spells :
orb.setVelocity( 50 );
orb.i = 2;
orb.setVelocity( 0 );
orb.createOrb("Master", 0, 0, 0, 0, orb);
What does it do? Pretty simple : makes a red orb, goes forward, stops on the ground, casts another spell (below).
See how there is no other setVelocity anywhere in the code? This is pretty important
orb.setVelocity( 10 );
slave.setVelocity( 5 );
slave.i = 18;
And this, my fellow wizards, is where magic happens. When the slave casts its master, it passes ITSELF as an argument. When the master is cast, it can then control the slave!
And even more amazing : the master can alter variables belonging to the slave!
I cast the slave spell, waited a bit, then pressed F. You can see how the slave (in red) is going up, even though according to its code, it's supposed to not move anymore.
You can also see how the master changed the "i" variable tied to the slave orb.
My suggestions :
If you're willing to do a "Master controls lots of slaves" spell, I suggest you cast the Master first, and when casting the slaves, you pass them an array. In the onCreate function of the slaves, make them put themselves in the array they were passed. Thus, the master will have access to an array of all its slaves, and it is more logical than a slave calling for its master.