Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Script won't compile.. Little help?

Page: 1 of 1
 dead1486
02-12-2008, 12:49 PM
#1
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
 tk102
02-12-2008, 1:55 PM
#2
Put parentheses around nScriptNumber in the switch statment:

switch (nScriptNumber) {
 dead1486
02-12-2008, 2:21 PM
#3
thanks everything is good now
Page: 1 of 1