Here is the script
void main()
{
int nScriptNumber = GetScriptParameter( 1 );
object oWho;
switch nScriptNumber {
case 0:
oWho = GetObjectByTag ("Atton");
break;
case 1:
oWho = GetObjectByTag ("BaoDur");
break;
case 4:
oWho = GetObjectByTag ("Handmaiden");
break;
case 7:
oWho = GetObjectByTag ("Mira");
break;
case 11:
oWho = GetObjectByTag ("Disciple");
break;
default:
return;
}
AddMultiClass (CLASS_TYPE_JEDICONSULAR, oWho);
CreateItemOnObject("g_w_lghtsbr04", oWho); // on the char not the main PC
}
Anyone have any insights?
Oh and it says something about nScriptNumber when it won't compile
Put parentheses around nScriptNumber in the switch statment:
switch (nScriptNumber) {
thanks everything is good now