Unless you *need* them joined to the NPC you could do something along the lines of:
PHP Code:
this.classes = {"control"}
for (temp.curClass: this.classes)
{
this.(@ temp.curClass) = new TStaticVar();
with (this.(@ temp.curClass)) {
join(temp.curClass);
start();
}
}