dead1486 Posted February 12, 2008 Share Posted February 12, 2008 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 Link to comment Share on other sites More sharing options...
tk102 Posted February 12, 2008 Share Posted February 12, 2008 Put parentheses around nScriptNumber in the switch statment: switch (nScriptNumber) { Link to comment Share on other sites More sharing options...
dead1486 Posted February 12, 2008 Author Share Posted February 12, 2008 thanks everything is good now Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.