Ferc Kast

01-01-2008, 06:31 PM

I'm trying to make three Jedi scripts work, but it's not working. Here's one of 'em: void main() {

int maimpar = GetScriptParameter( 1 );

int subparam = GetScriptParameter( 2 );

int nValue = GetScriptParameter( 3 );

string sTag = GetScriptStringParameter();

if ( maimpar == 1 ) {

if ( subparam == 1 ) { AddMultiClass( CLASS_TYPE_JEDICONSULAR, GetObjectByTag("mand")); }

if ( subparam == 2 ) { AddMultiClass( CLASS_TYPE_JEDIGUARDIAN, GetObjectByTag("mand")); }

if ( subparam == 3 ) { AddMultiClass( CLASS_TYPE_JEDISENTINEL, GetObjectByTag("mand")); }

}

if ( maimpar == 2 ) {

if ( subparam == 1 ) { AddMultiClass( CLASS_TYPE_JEDIMASTER, GetObjectByTag("mand")); }

if ( subparam == 2 ) { AddMultiClass( CLASS_TYPE_JEDIWATCHMAN, GetObjectByTag("mand")); }

if ( subparam == 3 ) { AddMultiClass( CLASS_TYPE_JEDIWEAPONMASTER, GetObjectByTag("mand")); }

}

if ( maimpar == 3 ) {

if ( subparam == 1 ) { AddMultiClass( CLASS_TYPE_SITHASSASSIN, GetObjectByTag("mand")); }

if ( subparam == 2 ) { AddMultiClass( CLASS_TYPE_SITHLORD, GetObjectByTag("mand")); }

if ( subparam == 3 ) { AddMultiClass( CLASS_TYPE_SITHMARAUDER, GetObjectByTag("mand")); }

}

}The other two that I'm having trouble with are Handmaiden and Disciple. My other 6 scripts of this nature for K2 are working, but not these three. Any ideas what I did wrong?

int maimpar = GetScriptParameter( 1 );

int subparam = GetScriptParameter( 2 );

int nValue = GetScriptParameter( 3 );

string sTag = GetScriptStringParameter();

if ( maimpar == 1 ) {

if ( subparam == 1 ) { AddMultiClass( CLASS_TYPE_JEDICONSULAR, GetObjectByTag("mand")); }

if ( subparam == 2 ) { AddMultiClass( CLASS_TYPE_JEDIGUARDIAN, GetObjectByTag("mand")); }

if ( subparam == 3 ) { AddMultiClass( CLASS_TYPE_JEDISENTINEL, GetObjectByTag("mand")); }

}

if ( maimpar == 2 ) {

if ( subparam == 1 ) { AddMultiClass( CLASS_TYPE_JEDIMASTER, GetObjectByTag("mand")); }

if ( subparam == 2 ) { AddMultiClass( CLASS_TYPE_JEDIWATCHMAN, GetObjectByTag("mand")); }

if ( subparam == 3 ) { AddMultiClass( CLASS_TYPE_JEDIWEAPONMASTER, GetObjectByTag("mand")); }

}

if ( maimpar == 3 ) {

if ( subparam == 1 ) { AddMultiClass( CLASS_TYPE_SITHASSASSIN, GetObjectByTag("mand")); }

if ( subparam == 2 ) { AddMultiClass( CLASS_TYPE_SITHLORD, GetObjectByTag("mand")); }

if ( subparam == 3 ) { AddMultiClass( CLASS_TYPE_SITHMARAUDER, GetObjectByTag("mand")); }

}

}The other two that I'm having trouble with are Handmaiden and Disciple. My other 6 scripts of this nature for K2 are working, but not these three. Any ideas what I did wrong?